garydgregory commented on a change in pull request #76: URL: https://github.com/apache/commons-bcel/pull/76#discussion_r571025073
########## File path: src/main/java/org/apache/bcel/classfile/Utility.java ########## @@ -831,7 +831,7 @@ public static String signatureToString( final String signature, final boolean ch // Could be Class or Type... type = typeSignatureToString(signature.substring(index), chopit); index += unwrap(CONSUMER_CHARS); // update position - if ((typeParams.isEmpty()) && (index == signature.length())) { + if ((typeParams.length() == 0) && (index == signature.length())) { Review comment: -1: Don't in-line `isEmpty()` calls. ########## File path: src/main/java/org/apache/bcel/classfile/Utility.java ########## @@ -1014,71 +1014,71 @@ public static String typeSignatureToString( final String signature, final boolea // we have TypeArguments; build up partial result // as we recurse for each TypeArgument final StringBuilder type = new StringBuilder(compactClassName(signature.substring(1, bracketIndex), chopit)).append("<"); - int consumed_chars = bracketIndex + 1; // Shadows global var + int CONSUMER_CHARS = bracketIndex + 1; // Shadows global var Review comment: -1: don't upper case local vars. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org