Skip to content

Commit 5d88c95

Browse files
dansanduleacrobert3005
authored andcommitted
[SPARK-23795][LAUNCHER] Make AbstractLauncher#self() protected (apache-spark-on-k8s#341)
1 parent 1aeaf27 commit 5d88c95

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

launcher/src/main/java/org/apache/spark/launcher/AbstractLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public T setVerbose(boolean verbose) {
274274
public abstract SparkAppHandle startApplication(SparkAppHandle.Listener... listeners)
275275
throws IOException;
276276

277-
abstract T self();
277+
protected abstract T self();
278278

279279
private static class ArgumentValidator extends SparkSubmitOptionParser {
280280

launcher/src/main/java/org/apache/spark/launcher/InProcessLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public SparkAppHandle startApplication(SparkAppHandle.Listener... listeners) thr
7777
}
7878

7979
@Override
80-
InProcessLauncher self() {
80+
protected InProcessLauncher self() {
8181
return this;
8282
}
8383

launcher/src/main/java/org/apache/spark/launcher/SparkLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ private ProcessBuilder createBuilder() throws IOException {
453453
}
454454

455455
@Override
456-
SparkLauncher self() {
456+
protected SparkLauncher self() {
457457
return this;
458458
}
459459

0 commit comments

Comments
 (0)