aboutsummaryrefslogtreecommitdiffstats
path: root/asm/src/main
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 /asm/src/main
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 'asm/src/main')
-rw-r--r--asm/src/main/java/org/aspectj/asm/AsmManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/asm/src/main/java/org/aspectj/asm/AsmManager.java b/asm/src/main/java/org/aspectj/asm/AsmManager.java
index 6972dda3a..d1b7ed3f2 100644
--- a/asm/src/main/java/org/aspectj/asm/AsmManager.java
+++ b/asm/src/main/java/org/aspectj/asm/AsmManager.java
@@ -162,7 +162,7 @@ public class AsmManager implements IStructureModel {
entries.add(peNode);
ISourceLocation sourceLoc = peNode.getSourceLocation();
if (null != sourceLoc) {
- Integer hash = new Integer(sourceLoc.getLine());
+ Integer hash = sourceLoc.getLine();
List<IProgramElement> existingEntry = annotations.get(hash);
if (existingEntry != null) {
entries.addAll(existingEntry);
@@ -1189,9 +1189,9 @@ public class AsmManager implements IStructureModel {
String node = ipe.getKind().toString();
Integer ctr = nodeTypeCount.get(node);
if (ctr == null) {
- nodeTypeCount.put(node, new Integer(1));
+ nodeTypeCount.put(node, 1);
} else {
- ctr = new Integer(ctr.intValue() + 1);
+ ctr = ctr.intValue() + 1;
nodeTypeCount.put(node, ctr);
}
}