Skip to content

Commit

Permalink
Use +=
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jan 15, 2024
1 parent 2d42221 commit afa15ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/apache/bcel/classfile/Utility.java
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ public static String signatureToString(final String signature, final boolean cho
type = typeParams + typeSignaturesToString(signature.substring(index), chopit, ')');
index += unwrap(CONSUMER_CHARS); // update position
// add return type
type = type + typeSignatureToString(signature.substring(index), chopit);
type += typeSignatureToString(signature.substring(index), chopit);
index += unwrap(CONSUMER_CHARS); // update position
// ignore any throws information in the signature
return type;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/apache/bcel/util/Class2HTML.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static void main(final String[] argv) throws IOException {
if (argv[i].equals("-d")) { // Specify target directory, default '.'
dir = argv[++i];
if (!dir.endsWith("" + sep)) {
dir = dir + sep;
dir += sep;
}
final File store = new File(dir);
if (!store.isDirectory()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class JvmOpCodes {
* Tests {@link DUP2}.
*/
long dup2(long a) {
return a = a + 1;
return a++;
}

/**
Expand Down

0 comments on commit afa15ea

Please sign in to comment.