diff options
author | Andy Clement <aclement@pivotal.io> | 2021-12-13 22:04:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-13 22:04:21 -0800 |
commit | 4021ffcbfe320a1b91bb2bcee7a112f7122ef82d (patch) | |
tree | 2203d74dac02b0dab81c3c3ab94b59da7f4e3c69 /org.aspectj.ajdt.core | |
parent | 3f6f25d6a1dd41632dcdfeb98f455aea2737cb7f (diff) | |
parent | bfd6fee99d2685751a6d49eb29a0173c3f825c09 (diff) | |
download | aspectj-4021ffcbfe320a1b91bb2bcee7a112f7122ef82d.tar.gz aspectj-4021ffcbfe320a1b91bb2bcee7a112f7122ef82d.zip |
Merge pull request #103 from turbanoff/redundant_boxing
Cleanup redundant boxing.
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/test/java/org/aspectj/ajdt/internal/compiler/batch/IncrementalCase.java | 2 | ||||
-rw-r--r-- | org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjcTestCase.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/org.aspectj.ajdt.core/src/test/java/org/aspectj/ajdt/internal/compiler/batch/IncrementalCase.java b/org.aspectj.ajdt.core/src/test/java/org/aspectj/ajdt/internal/compiler/batch/IncrementalCase.java index dd3bf2bc2..d0862b980 100644 --- a/org.aspectj.ajdt.core/src/test/java/org/aspectj/ajdt/internal/compiler/batch/IncrementalCase.java +++ b/org.aspectj.ajdt.core/src/test/java/org/aspectj/ajdt/internal/compiler/batch/IncrementalCase.java @@ -311,7 +311,7 @@ public class IncrementalCase { // XXX NOT bound to junit - bridge tests? if (-1 != loc) s = s.substring(loc + 1); try { - exp[i] = Integer.valueOf(s); + exp[i] = Integer.parseInt(s); sb.append(exp[i] + ((i < (exp.length - 1)) ? ", " : "")); } catch (NumberFormatException e) { info(handler, "bad " + label + ":" + expected[i]); diff --git a/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjcTestCase.java b/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjcTestCase.java index 8337970e7..0bf08886c 100644 --- a/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjcTestCase.java +++ b/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjcTestCase.java @@ -1041,7 +1041,7 @@ public abstract class AjcTestCase extends TestCase { private static boolean getBoolean(String name, boolean def) { String defaultValue = String.valueOf(def); String value = System.getProperty(name, defaultValue); - return Boolean.valueOf(value); + return Boolean.parseBoolean(value); } /* |