diff options
author | Denny <dennybritz@gmail.com> | 2012-10-02 20:02:53 -0700 |
---|---|---|
committer | Denny <dennybritz@gmail.com> | 2012-10-02 20:02:53 -0700 |
commit | 0361353a70b6ed9916a034614aa8ff81293f4912 (patch) | |
tree | 9d9b2e6dfc9c2bdef0cbae3675a564fa871fc395 /core/src/main | |
parent | b9badcd5bdd888049afea76c330b01d61d4f4c80 (diff) | |
download | spark-0361353a70b6ed9916a034614aa8ff81293f4912.tar.gz spark-0361353a70b6ed9916a034614aa8ff81293f4912.tar.bz2 spark-0361353a70b6ed9916a034614aa8ff81293f4912.zip |
Make Java API abstract wrapped functions private
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/scala/spark/api/java/function/WrappedFunction1.scala | 2 | ||||
-rw-r--r-- | core/src/main/scala/spark/api/java/function/WrappedFunction2.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/scala/spark/api/java/function/WrappedFunction1.scala b/core/src/main/scala/spark/api/java/function/WrappedFunction1.scala index d08e1e9fbf..923f5cdf4f 100644 --- a/core/src/main/scala/spark/api/java/function/WrappedFunction1.scala +++ b/core/src/main/scala/spark/api/java/function/WrappedFunction1.scala @@ -7,7 +7,7 @@ import scala.runtime.AbstractFunction1 * apply() method as call() and declare that it can throw Exception (since AbstractFunction1.apply * isn't marked to allow that). */ -abstract class WrappedFunction1[T, R] extends AbstractFunction1[T, R] { +private[spark] abstract class WrappedFunction1[T, R] extends AbstractFunction1[T, R] { @throws(classOf[Exception]) def call(t: T): R diff --git a/core/src/main/scala/spark/api/java/function/WrappedFunction2.scala b/core/src/main/scala/spark/api/java/function/WrappedFunction2.scala index c9d67d9771..2c6e9b1571 100644 --- a/core/src/main/scala/spark/api/java/function/WrappedFunction2.scala +++ b/core/src/main/scala/spark/api/java/function/WrappedFunction2.scala @@ -7,7 +7,7 @@ import scala.runtime.AbstractFunction2 * apply() method as call() and declare that it can throw Exception (since AbstractFunction2.apply * isn't marked to allow that). */ -abstract class WrappedFunction2[T1, T2, R] extends AbstractFunction2[T1, T2, R] { +private[spark] abstract class WrappedFunction2[T1, T2, R] extends AbstractFunction2[T1, T2, R] { @throws(classOf[Exception]) def call(t1: T1, t2: T2): R |