From 4424c425a664b06cdefbc82d7d38dcc120ceebad Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 7 May 2014 08:15:31 -0300 Subject: [PATCH] Redundant initialization --- core/src/main/java/org/keycloak/RSATokenVerifier.java | 2 +- core/src/main/java/org/keycloak/util/StreamUtil.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/keycloak/RSATokenVerifier.java b/core/src/main/java/org/keycloak/RSATokenVerifier.java index 9530442a7a..b4cb1cf390 100755 --- a/core/src/main/java/org/keycloak/RSATokenVerifier.java +++ b/core/src/main/java/org/keycloak/RSATokenVerifier.java @@ -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) { diff --git a/core/src/main/java/org/keycloak/util/StreamUtil.java b/core/src/main/java/org/keycloak/util/StreamUtil.java index 67cd8d71a8..4d382df562 100755 --- a/core/src/main/java/org/keycloak/util/StreamUtil.java +++ b/core/src/main/java/org/keycloak/util/StreamUtil.java @@ -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);