Browse Source

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

Change-Id: Ib6967ad4deb5cf233d1f1d714cd094da5fad48e3
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v5.11.0.202102031030-m2
Matthias Sohn 3 years ago
parent
commit
15998622fa
1 changed files with 20 additions and 2 deletions
  1. 20
    2
      org.eclipse.jgit/findBugs/FindBugsExcludeFilter.xml

+ 20
- 2
org.eclipse.jgit/findBugs/FindBugsExcludeFilter.xml 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

Loading…
Cancel
Save