Skip to content

Commit

Permalink
make constrcutor of TypeCheckResult private
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-fan committed Jun 1, 2015
1 parent 3bee157 commit 0808fd2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ package org.apache.spark.sql.catalyst.analysis
/**
* Represents the result of `Expression.checkInputDataTypes`.
* We will throw `AnalysisException` in `CheckAnalysis` if error message is not null.
* Use [[TypeCheckResult.success]] and [[TypeCheckResult.fail]] to instantiate this.
*
*/
class TypeCheckResult(val errorMessage: String) extends AnyVal {
class TypeCheckResult private (val errorMessage: String) extends AnyVal {
def hasError: Boolean = errorMessage != null
}

Expand Down

0 comments on commit 0808fd2

Please sign in to comment.