Removing redundant local variable

This commit is contained in:
Bruno Oliveira 2014-05-07 07:49:45 -03:00
parent f5ac81db41
commit 1ea1f0af96
2 changed files with 2 additions and 4 deletions

View file

@ -448,8 +448,7 @@ public class KeycloakUriBuilder {
}
public static Matcher createUriParamMatcher(String string) {
Matcher matcher = PathHelper.URI_PARAM_PATTERN.matcher(PathHelper.replaceEnclosedCurlyBraces(string));
return matcher;
return PathHelper.URI_PARAM_PATTERN.matcher(PathHelper.replaceEnclosedCurlyBraces(string));
}
protected StringBuffer replaceParameter(Map<String, ?> paramMap, boolean fromEncodedMap, boolean isTemplate, String string, StringBuffer buffer, boolean encodeSlash) {

View file

@ -76,8 +76,7 @@ public final class PemUtils {
*/
public static byte[] pemToDer(InputStream is) throws IOException {
String pem = pemFromStream(is);
byte[] der = pemToDer(pem);
return der;
return pemToDer(pem);
}
/**