Apply staticanalysis.RemoveUnused*#10964
Conversation
|
Missing required label for changelog. Requires at least 1 of: bug, developer, dependencies, internal, localization, major-bug, major-rfe, rfe, regression-fix, removed, skip-changelog. Found: . You can add the required label by adding a comment with the following text: |
| // JEP-200 whitelist changes prevent this field (and thus instances of this class) from being serialized. | ||
| private ClassLoader cl = InvalidNode.class.getClassLoader(); |
There was a problem hiding this comment.
This is needed to pass the tests in this class. It's not unused, it (intentionally) breaks the serialization, hence the class name and comment.
| // just to suppress warnings | ||
| private transient String charset, useSsl; | ||
|
|
There was a problem hiding this comment.
Introduced in 526c788 to not have warnings during deserialization.
Probably reasonable to remove at this point, but only because of age.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
considered obsolete right from the beginning. Perfect example what this project needs.
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.
There was a problem hiding this comment.
These fields existing prevents that.
Did not know that, right. Thanks for explaining to me. Then need simple ignore for this case, as its important.
|
first need to fix current project setup: |
apply:
See JENKINS-XXXXX.
Testing done
Proposed changelog entries
Proposed changelog category
/label
Proposed upgrade guidelines
N/A
Submitter checklist
@Restrictedor have@since TODOJavadocs, as appropriate.@Deprecated(since = "TODO")or@Deprecated(forRemoval = true, since = "TODO"), if applicable.evalto ease future introduction of Content Security Policy (CSP) directives (see documentation).Desired reviewers
@mention
Before the changes are marked as
ready-for-merge:Maintainer checklist
upgrade-guide-neededlabel is set and there is a Proposed upgrade guidelines section in the pull request title (see example).lts-candidateto be considered (see query).