diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2020-11-29 22:03:42 +0100 |
---|---|---|
committer | Christian Halstrick <christian.halstrick@sap.com> | 2020-12-17 17:18:11 +0100 |
commit | 15998622fabadf3931658d9cf359ed28c36fed23 (patch) | |
tree | eca769398b76ac40a39225fbf051dd4375f59506 /org.eclipse.jgit/findBugs | |
parent | a56624349e5994989ae60623a0537e14b5d68141 (diff) | |
download | jgit-15998622fabadf3931658d9cf359ed28c36fed23.tar.gz jgit-15998622fabadf3931658d9cf359ed28c36fed23.zip |
[spotbugs] silence warnings for intended use of == to compare strings
Change-Id: Ib6967ad4deb5cf233d1f1d714cd094da5fad48e3
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/findBugs')
-rw-r--r-- | org.eclipse.jgit/findBugs/FindBugsExcludeFilter.xml | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/org.eclipse.jgit/findBugs/FindBugsExcludeFilter.xml b/org.eclipse.jgit/findBugs/FindBugsExcludeFilter.xml index a04b0a7299..686843f302 100644 --- a/org.eclipse.jgit/findBugs/FindBugsExcludeFilter.xml +++ b/org.eclipse.jgit/findBugs/FindBugsExcludeFilter.xml @@ -25,8 +25,26 @@ <!-- Silence the construction of our magic String instance. --> <Match> - <Class name="org.eclipse.jgit.lib.Config" /> - <Bug pattern="DM_STRING_VOID_CTOR"/> + <Class name="org.eclipse.jgit.lib.Config" /> + <Bug pattern="DM_STRING_VOID_CTOR"/> + </Match> + + <Match> + <Class name="org.eclipse.jgit.lib.Config" /> + <Method name="isMissing" /> + <Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ"/> + </Match> + + <Match> + <Class name="org.eclipse.jgit.transport.PacketLineIn" /> + <Method name="isDelimiter" /> + <Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ"/> + </Match> + + <Match> + <Class name="org.eclipse.jgit.transport.PacketLineIn" /> + <Method name="isEnd" /> + <Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ"/> </Match> <!-- Silence comparison of string by == or !=. This class is built |