Skip to content

Commit 61876a4

Browse files
wangmiao1981srowen
authored andcommitted
[CORE][DOC] Fix errors in comments
## What changes were proposed in this pull request? While reading source code of CORE and SQL core, I found some minor errors in comments such as extra space, missing blank line and grammar error. I fixed these minor errors and might find more during my source code study. ## How was this patch tested? Manually build Author: [email protected] <[email protected]> Closes #15151 from wangmiao1981/mem.
1 parent e48ebc4 commit 61876a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/main/scala/org/apache/spark/storage/BlockManagerId.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import org.apache.spark.util.Utils
2828
* :: DeveloperApi ::
2929
* This class represent an unique identifier for a BlockManager.
3030
*
31-
* The first 2 constructors of this class is made private to ensure that BlockManagerId objects
31+
* The first 2 constructors of this class are made private to ensure that BlockManagerId objects
3232
* can be created only using the apply method in the companion object. This allows de-duplication
3333
* of ID objects. Also, constructor parameters are private to ensure that parameters cannot be
3434
* modified from outside this class.

sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ object SparkSession {
937937
}
938938

939939
/**
940-
* Return true if Hive classes can be loaded, otherwise false.
940+
* @return true if Hive classes can be loaded, otherwise false.
941941
*/
942942
private[spark] def hiveClassesArePresent: Boolean = {
943943
try {

0 commit comments

Comments
 (0)