Redundant initialization

This commit is contained in:
Bruno Oliveira 2014-05-07 08:15:31 -03:00
parent 5f7b0aae06
commit 4424c425a6
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ public class RSATokenVerifier {
}
if (!verified) throw new VerificationException("Token signature not validated");
AccessToken token = null;
AccessToken token;
try {
token = input.readJsonContent(AccessToken.class);
} catch (IOException e) {

View file

@ -19,7 +19,7 @@ public final class StreamUtil {
char[] buffer = new char[1024];
StringBuilder builder = new StringBuilder();
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
int wasRead = 0;
int wasRead;
do
{
wasRead = reader.read(buffer, 0, 1024);