diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2020-12-04 11:27:47 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2020-12-22 10:53:00 +0100 |
commit | 21262e98fe6ccb397f7d8af0fca6c8b8c0de2794 (patch) | |
tree | d1406112da5040ec90801aa98bbe875f31ce9069 /org.eclipse.jgit.junit.ssh/findBugs | |
parent | 0132666d5aa668455a2a45d82bc1f62bd1365998 (diff) | |
download | jgit-21262e98fe6ccb397f7d8af0fca6c8b8c0de2794.tar.gz jgit-21262e98fe6ccb397f7d8af0fca6c8b8c0de2794.zip |
[spotbugs] Silence NP_BOOLEAN_RETURN_NULL in FakeUserAuthGSS#doAuth
Also mark the return value @Nullable to enable null analysis in Eclipse.
Change-Id: Ib954b231d743da6ea122adb2cc4880b5f99824cc
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.junit.ssh/findBugs')
-rw-r--r-- | org.eclipse.jgit.junit.ssh/findBugs/FindBugsExcludeFilter.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/org.eclipse.jgit.junit.ssh/findBugs/FindBugsExcludeFilter.xml b/org.eclipse.jgit.junit.ssh/findBugs/FindBugsExcludeFilter.xml new file mode 100644 index 0000000000..999cb71f7c --- /dev/null +++ b/org.eclipse.jgit.junit.ssh/findBugs/FindBugsExcludeFilter.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<FindBugsFilter> + <!-- Silence returning null for Boolean return type --> + <Match> + <Class name="org.eclipse.jgit.junit.ssh.SshTestGitServer$FakeUserAuthGSS" /> + <Method name="doAuth" /> + <Bug pattern="NP_BOOLEAN_RETURN_NULL" /> + </Match> +</FindBugsFilter> |