SPARK-2636: fix method name & javadoc