-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Apply staticanalysis.RemoveUnused*
#10964
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
608fda4
7fde36f
b00e7be
3638351
34da377
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 |
|---|---|---|
|
|
@@ -58,9 +58,6 @@ public class JenkinsLocationConfiguration extends GlobalConfiguration implements | |
| private String adminAddress; | ||
| private String jenkinsUrl; | ||
|
|
||
| // just to suppress warnings | ||
| private transient String charset, useSsl; | ||
|
|
||
|
Comment on lines
-61
to
-63
Member
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. Introduced in 526c788 to not have warnings during deserialization. Probably reasonable to remove at this point, but only because of age.
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. considered obsolete right from the beginning. Perfect example what this project needs. @NotMyFault Therefore treaded as Technical depth. use or loose. You can use silly PMD to fix it all manually or just apply rewrite to get auto fixes. PMD could still benefit as no tool is perfect.
Member
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.
The behavior of the software changes depending on whether this field is defined or not. If the fields did not exist, administrators are shown warnings from deserialization (in this case of backward-compatibility supporting code), usually indicative of a configuration issue close to data loss. These fields existing prevents that. So if you think this project needs less backwards compatibility and more administrator confusion, you're exactly right.
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.
Did not know that, right. Thanks for explaining to me. Then need simple ignore for this case, as its important. |
||
| public static @NonNull JenkinsLocationConfiguration get() { | ||
| return GlobalConfiguration.all().getInstance(JenkinsLocationConfiguration.class); | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.