This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved fix for [JENKINS-15526][FIXED JENKINS-16107].
- Loading branch information
Showing
2 changed files
with
26 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Note that FindBugs will probably not grok that
description.getParser()
is guaranteed non-null in this case. I intentionally obtained theparser
and checked for null to avoid any chance of confusion in flow analysis; if you prefer to callisValid
then you may need to makegetParser
be marked@Nullable
(i.e. “I know better so shut up”) rather than@CheckForNull
.