aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.matcher/src
diff options
context:
space:
mode:
authorAndrey Turbanov <turbanoff@gmail.com>2021-11-20 20:37:02 +0300
committerAndrey Turbanov <turbanoff@gmail.com>2021-11-20 20:37:02 +0300
commitbfd6fee99d2685751a6d49eb29a0173c3f825c09 (patch)
tree33383e16d3008206284965d88254f648d4f5668c /org.aspectj.matcher/src
parent0f85ca109b9e6ab849e201e76f62d5023cbfcb98 (diff)
downloadaspectj-bfd6fee99d2685751a6d49eb29a0173c3f825c09.tar.gz
aspectj-bfd6fee99d2685751a6d49eb29a0173c3f825c09.zip
Cleanup redundant boxing.
Methods Integer.parseInt/Boolean.parseBoolean should be preferred over Integer.valueOf/Boolean.valueOf/ if final result is primitive. They are generally faster and generate less garbage.
Diffstat (limited to 'org.aspectj.matcher/src')
-rw-r--r--org.aspectj.matcher/src/main/java/org/aspectj/weaver/tools/TraceFactory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.aspectj.matcher/src/main/java/org/aspectj/weaver/tools/TraceFactory.java b/org.aspectj.matcher/src/main/java/org/aspectj/weaver/tools/TraceFactory.java
index 815463653..245dc2e4d 100644
--- a/org.aspectj.matcher/src/main/java/org/aspectj/weaver/tools/TraceFactory.java
+++ b/org.aspectj.matcher/src/main/java/org/aspectj/weaver/tools/TraceFactory.java
@@ -30,7 +30,7 @@ public abstract class TraceFactory {
protected static boolean getBoolean(String name, boolean def) {
String defaultValue = String.valueOf(def);
String value = System.getProperty(name,defaultValue);
- return Boolean.valueOf(value);
+ return Boolean.parseBoolean(value);
}
static {