[spotbugs] silence warnings for intended use of == to compare strings

Change-Id: Ib6967ad4deb5cf233d1f1d714cd094da5fad48e3
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Matthias Sohn 2020-11-29 22:03:42 +01:00 committed by Christian Halstrick
parent a56624349e
commit 15998622fa
1 changed files with 20 additions and 2 deletions

View File

@ -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