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 /testing | |
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 'testing')
4 files changed, 5 insertions, 5 deletions
diff --git a/testing/src/test/java/org/aspectj/testing/harness/bridge/FlatSuiteReader.java b/testing/src/test/java/org/aspectj/testing/harness/bridge/FlatSuiteReader.java index 0b9d6910e..5c2ec2ae3 100644 --- a/testing/src/test/java/org/aspectj/testing/harness/bridge/FlatSuiteReader.java +++ b/testing/src/test/java/org/aspectj/testing/harness/bridge/FlatSuiteReader.java @@ -267,7 +267,7 @@ public class FlatSuiteReader implements SFileReader.Maker { description.setLength(0); description.append((prefix + " " + suffix).trim()); try { - result.setBugId(Integer.valueOf(pr)); + result.setBugId(Integer.parseInt(pr)); } catch (NumberFormatException e) { throw new Error("unable to convert " + pr + " for " + result + " at " + lineReader); diff --git a/testing/src/test/java/org/aspectj/testing/harness/bridge/ParseTestCase.java b/testing/src/test/java/org/aspectj/testing/harness/bridge/ParseTestCase.java index 85cdd38f1..e6f1ab918 100644 --- a/testing/src/test/java/org/aspectj/testing/harness/bridge/ParseTestCase.java +++ b/testing/src/test/java/org/aspectj/testing/harness/bridge/ParseTestCase.java @@ -105,7 +105,7 @@ public class ParseTestCase extends TestCase { AjcTest.Spec test = new AjcTest.Spec(); test.setDescription(title); test.setTestDirOffset(dir); - test.setBugId(Integer.valueOf(pr)); + test.setBugId(Integer.parseInt(pr)); test.setSourceLocation(sourceLocation); //AjcTest test = new AjcTest(title, dir, pr, sourceLocation); @@ -174,7 +174,7 @@ public class ParseTestCase extends TestCase { file = new File("XXX"); //XXX } - int line = Integer.valueOf(getAttributeString(child, "line")); + int line = Integer.parseInt(getAttributeString(child, "line")); ISourceLocation sourceLocation = new SourceLocation(file, line, line, 0); diff --git a/testing/src/test/java/org/aspectj/testing/xml/SoftMessage.java b/testing/src/test/java/org/aspectj/testing/xml/SoftMessage.java index 82c0843c1..ae08ec389 100644 --- a/testing/src/test/java/org/aspectj/testing/xml/SoftMessage.java +++ b/testing/src/test/java/org/aspectj/testing/xml/SoftMessage.java @@ -300,7 +300,7 @@ public class SoftMessage implements IMessage { if (null != sourceLocation) { throw new IllegalStateException("cannot set line after creating source location"); } - this.line = Integer.valueOf(line); + this.line = Integer.parseInt(line); SourceLocation.validLine(this.line); } diff --git a/testing/src/test/java/org/aspectj/testing/xml/SoftSourceLocation.java b/testing/src/test/java/org/aspectj/testing/xml/SoftSourceLocation.java index 305047d31..f0329d653 100644 --- a/testing/src/test/java/org/aspectj/testing/xml/SoftSourceLocation.java +++ b/testing/src/test/java/org/aspectj/testing/xml/SoftSourceLocation.java @@ -109,7 +109,7 @@ public class SoftSourceLocation implements ISourceLocation { } private int convert(String in) { - return Integer.valueOf(in); + return Integer.parseInt(in); } public String getLocationContext() { |