aboutsummaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorLars Grefer <eclipse@larsgrefer.de>2020-08-08 03:14:13 +0200
committerLars Grefer <eclipse@larsgrefer.de>2020-08-08 03:14:13 +0200
commitf33600d4d5507f3aa02d7cacfc34fe910d6b858f (patch)
tree797427a7536d5e9fc927faceec4963754ab0133b /runtime
parentc1c373f4278426308689db61f7758185e8f0401b (diff)
downloadaspectj-f33600d4d5507f3aa02d7cacfc34fe910d6b858f.tar.gz
aspectj-f33600d4d5507f3aa02d7cacfc34fe910d6b858f.zip
Unnecessary boxing
Reports explicit boxing, i.e. wrapping of primitive values in objects. Explicit manual boxing is unnecessary under Java 5 and newer, and can be safely removed. Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/src/main/java/org/aspectj/runtime/internal/Conversions.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/runtime/src/main/java/org/aspectj/runtime/internal/Conversions.java b/runtime/src/main/java/org/aspectj/runtime/internal/Conversions.java
index 13e8d9edd..6fb5f916f 100644
--- a/runtime/src/main/java/org/aspectj/runtime/internal/Conversions.java
+++ b/runtime/src/main/java/org/aspectj/runtime/internal/Conversions.java
@@ -20,25 +20,25 @@ public final class Conversions {
// we might want to keep a cache of small integers around
public static Object intObject(int i) {
- return new Integer(i);
+ return i;
}
public static Object shortObject(short i) {
- return new Short(i);
+ return i;
}
public static Object byteObject(byte i) {
- return new Byte(i);
+ return i;
}
public static Object charObject(char i) {
- return new Character(i);
+ return i;
}
public static Object longObject(long i) {
- return new Long(i);
+ return i;
}
public static Object floatObject(float i) {
- return new Float(i);
+ return i;
}
public static Object doubleObject(double i) {
- return new Double(i);
+ return i;
}
public static Object booleanObject(boolean i) {
return i;