Merge "Revert "[findBugs] Silence DM_STRING_CTOR on PacketLineIn""
This commit is contained in:
commit
ab7d08ec96
|
@ -38,12 +38,4 @@
|
|||
<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="<clinit>" />
|
||||
<Bug pattern="DM_STRING_CTOR" />
|
||||
</Match>
|
||||
</FindBugsFilter>
|
||||
|
|
|
@ -57,7 +57,8 @@
|
|||
import org.eclipse.jgit.util.RawParseUtils;
|
||||
|
||||
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 {
|
||||
/** NAK */
|
||||
|
|
Loading…
Reference in New Issue