Findbugs all over

This commit is contained in:
zzz
2015-07-12 14:02:55 +00:00
parent 631a0674ab
commit 914cc120ad
13 changed files with 119 additions and 53 deletions

View File

@@ -66,7 +66,7 @@ public class HeaderLine implements Encoding {
boolean quoting = false;
boolean quote = false;
boolean linebreak = false;
String quotedSequence = null;
StringBuilder quotedSequence = null;
int rest = in.length;
int index = 0;
while( true ) {
@@ -102,14 +102,15 @@ public class HeaderLine implements Encoding {
}
if( quote ) {
if( ! quoting ) {
quotedSequence = "=?utf-8?Q?";
quotedSequence = new StringBuilder(64);
quotedSequence.append("=?utf-8?Q?");
quoting = true;
}
quotedSequence += HexTable.table[ c < 0 ? 256 + c : c ];
quotedSequence.append(HexTable.table[ c < 0 ? 256 + c : c ]);
}
else {
if( quoting ) {
quotedSequence += "?=";
quotedSequence.append("?=");
int sl = quotedSequence.length();
if( l + sl > 76 ) {
/*
@@ -138,7 +139,7 @@ public class HeaderLine implements Encoding {
}
}
if( quoting ) {
quotedSequence += "?=";
quotedSequence.append("?=");
int sl = quotedSequence.length();
if( l + sl > 76 ) {
/*