diff options
author | Lars Grefer <eclipse@larsgrefer.de> | 2020-08-08 03:14:13 +0200 |
---|---|---|
committer | Lars Grefer <eclipse@larsgrefer.de> | 2020-08-08 03:14:13 +0200 |
commit | f33600d4d5507f3aa02d7cacfc34fe910d6b858f (patch) | |
tree | 797427a7536d5e9fc927faceec4963754ab0133b /bridge | |
parent | c1c373f4278426308689db61f7758185e8f0401b (diff) | |
download | aspectj-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 'bridge')
-rw-r--r-- | bridge/src/main/java/org/aspectj/bridge/context/CompilationAndWeavingContext.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/src/main/java/org/aspectj/bridge/context/CompilationAndWeavingContext.java b/bridge/src/main/java/org/aspectj/bridge/context/CompilationAndWeavingContext.java index 28a414acd..6117b96a9 100644 --- a/bridge/src/main/java/org/aspectj/bridge/context/CompilationAndWeavingContext.java +++ b/bridge/src/main/java/org/aspectj/bridge/context/CompilationAndWeavingContext.java @@ -123,7 +123,7 @@ public class CompilationAndWeavingContext { } public static void registerFormatter(int phaseId, ContextFormatter aFormatter) { - formatterMap.put(new Integer(phaseId), aFormatter); + formatterMap.put(phaseId, aFormatter); } /** @@ -195,7 +195,7 @@ public class CompilationAndWeavingContext { } private static ContextFormatter getFormatter(ContextStackEntry entry) { - Integer key = new Integer(entry.phaseId); + Integer key = entry.phaseId; if (formatterMap.containsKey(key)) { return formatterMap.get(key); } else { |