-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-24529][Build][test-maven] Add spotbugs into maven build process #21542
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
4075f6f
4441499
02bbeb1
86ef42c
f79e542
1330fa6
8ffd23b
1250a92
b027d62
191f135
6b747c3
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 |
|---|---|---|
|
|
@@ -42,9 +42,11 @@ private object RecursiveFlag { | |
| val old = Option(hadoopConf.get(flagName)) | ||
| hadoopConf.set(flagName, value.toString) | ||
| try f finally { | ||
| old match { | ||
| case Some(v) => hadoopConf.set(flagName, v) | ||
| case None => hadoopConf.unset(flagName) | ||
| // avoid false positive of DLS_DEAD_LOCAL_STORE_IN_RETURN by SpotBugs | ||
|
||
| if (old.isDefined) { | ||
| hadoopConf.set(flagName, old.get) | ||
| } else { | ||
| hadoopConf.unset(flagName) | ||
| } | ||
| } | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,6 +47,12 @@ | |
| <scope>test</scope> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change is derived from the previous PR |
||
| <groupId>org.apache.spark</groupId> | ||
| <artifactId>spark-tags_${scala.binary.version}</artifactId> | ||
| <type>test-jar</type> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>io.fabric8</groupId> | ||
| <artifactId>kubernetes-client</artifactId> | ||
|
|
||
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.
shall we keep this comment? we still use reverse order here.
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.
Maybe:
Use the reverse order because PriorityQueue dequeues the max.