aboutsummaryrefslogtreecommitdiffstats
path: root/testing-drivers/src/test/java/org/aspectj/testing/drivers
diff options
context:
space:
mode:
authorLars Grefer <eclipse@larsgrefer.de>2020-08-08 03:16:40 +0200
committerLars Grefer <eclipse@larsgrefer.de>2020-08-08 03:16:40 +0200
commit93ce335dc0dad2f420d1b7b1d426ad7bfa3574ad (patch)
treee37a88693a2de065eb8c6c56f35b053bcf951c4a /testing-drivers/src/test/java/org/aspectj/testing/drivers
parentf33600d4d5507f3aa02d7cacfc34fe910d6b858f (diff)
downloadaspectj-93ce335dc0dad2f420d1b7b1d426ad7bfa3574ad.tar.gz
aspectj-93ce335dc0dad2f420d1b7b1d426ad7bfa3574ad.zip
Unnecessary unboxing
Reports "unboxing", e.g. explicit unwrapping of wrapped primitive values. Unboxing is unnecessary under Java 5 and newer, and can be safely removed. Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Diffstat (limited to 'testing-drivers/src/test/java/org/aspectj/testing/drivers')
-rw-r--r--testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java b/testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java
index 6c0a84fe9..55295568a 100644
--- a/testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java
+++ b/testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java
@@ -306,7 +306,7 @@ public class Harness {
}
Object value = result.status.getResult();
if ((value instanceof Boolean)
- && !((Boolean) value).booleanValue()) {
+ && !(Boolean) value) {
System.exit(-1);
}
}