-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[MINOR][BUILD] Fix build warnings and Java lint errors #19051
Conversation
@@ -31,7 +32,7 @@ | |||
* </p> | |||
*/ | |||
@Private | |||
public interface KVStoreIterator<T> extends Iterator<T>, AutoCloseable { | |||
public interface KVStoreIterator<T> extends Iterator<T>, Closeable { |
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.
Weird one, but it warns on extending AutoCloseable
without explicitly narrowing the exceptions that close()
throws to not include InterruptedException
.
@@ -187,14 +187,13 @@ class CrossValidatorSuite | |||
cv2.getEstimator match { | |||
case ova2: OneVsRest => | |||
assert(ova.uid === ova2.uid) | |||
val classifier = ova2.getClassifier | |||
classifier match { | |||
ova2.getClassifier match { |
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.
Another weird one where the construct is equivalent but ended up causing scalac to construe this as an existential type
@@ -2058,7 +2058,7 @@ | |||
<javacArg>${java.version}</javacArg> | |||
<javacArg>-target</javacArg> | |||
<javacArg>${java.version}</javacArg> | |||
<javacArg>-Xlint:all,-serial,-path</javacArg> | |||
<javacArg>-Xlint:all,-serial,-path,-try</javacArg> |
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.
Avoids many harmless warnings about not referencing the variable define in try-with-resources
Test build #81120 has finished for PR 19051 at commit
|
Test build #3901 has finished for PR 19051 at commit
|
Test build #3902 has finished for PR 19051 at commit
|
Merged to master |
## What changes were proposed in this pull request? Fix build warnings and Java lint errors. This just helps a bit in evaluating (new) warnings in another PR I have open. ## How was this patch tested? Existing tests Author: Sean Owen <sowen@cloudera.com> Closes #19051 from srowen/JavaWarnings.
What changes were proposed in this pull request?
Fix build warnings and Java lint errors. This just helps a bit in evaluating (new) warnings in another PR I have open.
How was this patch tested?
Existing tests