Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 9b858ea

Browse files
authored
Merge pull request #208 from mathworks/2.7.1-SNAPSHOT-Qualification
Add spotbugs false positive warning suppresion
2 parents 71b16bd + f9841fc commit 9b858ea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/com/mathworks/ci/MatlabReleaseInfo.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ public boolean verLessThan(double version) throws MatlabVersionNotFoundException
7272
}
7373
}
7474

75-
@SuppressFBWarnings(value = "REC_CATCH_EXCEPTION",
76-
justification = "Irrespective of exception type, intention is to handle it in same way. Also, there is no intention to propagate any runtime exception up in the hierarchy.")
75+
@SuppressFBWarnings(value = {"REC_CATCH_EXCEPTION", "RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"},
76+
justification = "REC_CATCH_EXCEPTION: Irrespective of exception type, intention is to handle it in same way." +
77+
" Also, there is no intention to propagate any runtime exception up in the hierarchy." +
78+
"RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE: This is a false positive reported by spotbugs for JDK 11 for try-with-resources block.")
7779
private Map<String, String> getVersionInfoFromFile() throws MatlabVersionNotFoundException {
7880
if (MapUtils.isEmpty(versionInfoCache)) {
7981
try {

0 commit comments

Comments
 (0)