]> source.dussan.org Git - jgit.git/commitdiff
[findBugs] Silence DM_STRING_CTOR on PacketLineIn 61/1861/2
authorMatthias Sohn <matthias.sohn@sap.com>
Sun, 7 Nov 2010 20:22:23 +0000 (21:22 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Sun, 7 Nov 2010 20:22:23 +0000 (21:22 +0100)
We don't want to pool this String.

Change-Id: I68bb1c57fac2e138eece4503ca5bda8f69261083
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/findBugs/FindBugsExcludeFilter.xml

index 948308e778df14dd97311afdbd4c112f184342d2..f93c8f3027d3a0db0766cabb12be2ddb4751d6a9 100644 (file)
        <Class name="org.eclipse.jgit.util.TemporaryBuffer$BlockInputStream" />
        <Bug pattern="UR_UNINIT_READ" />
      </Match>
+
+       <!-- Silence invoke inefficient String constructor, we do not want to pool
+               here -->
+     <Match>
+       <Class name="org.eclipse.jgit.transport.PacketLineIn" />
+       <Method name="&lt;clinit&gt;" />
+       <Bug pattern="DM_STRING_CTOR" />
+     </Match>
 </FindBugsFilter>