Browse Source

Merge "Revert "[findBugs] Silence DM_STRING_CTOR on PacketLineIn""

stable-0.10
Matthias Sohn 14 years ago committed by Code Review
parent
commit
ab7d08ec96
  1. 8
      org.eclipse.jgit/findBugs/FindBugsExcludeFilter.xml
  2. 3
      org.eclipse.jgit/src/org/eclipse/jgit/transport/PacketLineIn.java

8
org.eclipse.jgit/findBugs/FindBugsExcludeFilter.xml

@ -38,12 +38,4 @@
<Class name="org.eclipse.jgit.util.TemporaryBuffer$BlockInputStream" /> <Class name="org.eclipse.jgit.util.TemporaryBuffer$BlockInputStream" />
<Bug pattern="UR_UNINIT_READ" /> <Bug pattern="UR_UNINIT_READ" />
</Match> </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> </FindBugsFilter>

3
org.eclipse.jgit/src/org/eclipse/jgit/transport/PacketLineIn.java

@ -57,7 +57,8 @@ import org.eclipse.jgit.util.IO;
import org.eclipse.jgit.util.RawParseUtils; import org.eclipse.jgit.util.RawParseUtils;
class PacketLineIn { class PacketLineIn {
static final String END = new String("") /* must not string pool */; /* must not string pool */
static final String END = new StringBuilder(0).toString();
static enum AckNackResult { static enum AckNackResult {
/** NAK */ /** NAK */

Loading…
Cancel
Save