-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-14868][BUILD] Enable NewLineAtEofChecker in checkstyle and fix lint-java errors #12632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,4 +18,4 @@ | |
| /** | ||
| * Spark Java programming APIs. | ||
| */ | ||
| package org.apache.spark.api.java; | ||
| package org.apache.spark.api.java; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,4 +18,4 @@ | |
| /** | ||
| * IO codecs used for compression. | ||
| */ | ||
| package org.apache.spark.io; | ||
| package org.apache.spark.io; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,4 +18,4 @@ | |
| /** | ||
| * Provides implementation's of various RDDs. | ||
| */ | ||
| package org.apache.spark.rdd; | ||
| package org.apache.spark.rdd; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,4 +18,4 @@ | |
| /** | ||
| * Spark's DAG scheduler. | ||
| */ | ||
| package org.apache.spark.scheduler; | ||
| package org.apache.spark.scheduler; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,4 +18,4 @@ | |
| /** | ||
| * Spark utilities. | ||
| */ | ||
| package org.apache.spark.util; | ||
| package org.apache.spark.util; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,4 +18,4 @@ | |
| /** | ||
| * Spark's machine learning library. | ||
| */ | ||
| package org.apache.spark.mllib; | ||
| package org.apache.spark.mllib; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,15 +81,15 @@ public void runDT() { | |
| for (String featureSubsetStrategy: RandomForestClassifier.supportedFeatureSubsetStrategies()) { | ||
| rf.setFeatureSubsetStrategy(featureSubsetStrategy); | ||
| } | ||
| String realStrategies[] = {".1", ".10", "0.10", "0.1", "0.9", "1.0"}; | ||
| String[] realStrategies = {".1", ".10", "0.10", "0.1", "0.9", "1.0"}; | ||
|
||
| for (String strategy: realStrategies) { | ||
| rf.setFeatureSubsetStrategy(strategy); | ||
| } | ||
| String integerStrategies[] = {"1", "10", "100", "1000", "10000"}; | ||
| String[] integerStrategies = {"1", "10", "100", "1000", "10000"}; | ||
| for (String strategy: integerStrategies) { | ||
| rf.setFeatureSubsetStrategy(strategy); | ||
| } | ||
| String invalidStrategies[] = {"-.1", "-.10", "-0.10", ".0", "0.0", "1.1", "0"}; | ||
| String[] invalidStrategies = {"-.1", "-.10", "-0.10", ".0", "0.0", "1.1", "0"}; | ||
| for (String strategy: invalidStrategies) { | ||
| try { | ||
| rf.setFeatureSubsetStrategy(strategy); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why can't this be final?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, it's definitely final. It's just
RedundantModifiererror since the classSignedPrefixComparatoris alreadyfinal.