aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Turbanov <turbanoff@gmail.com>2022-04-14 10:33:48 +0300
committerAlexander Kriegisch <Alexander@Kriegisch.name>2022-04-15 11:01:44 +0700
commit57dd44a35a6a60aae5576cbd35c110ae82505dac (patch)
tree8162d44b8dc355ccb094f6243e1df6f506e39ae4
parent2091b6d1ded90bfeb29f8d74bd17f05ec8fc983d (diff)
downloadaspectj-57dd44a35a6a60aae5576cbd35c110ae82505dac.tar.gz
aspectj-57dd44a35a6a60aae5576cbd35c110ae82505dac.zip
Do not use String literal as synchronized lock
-rw-r--r--loadtime/src/main/java/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/loadtime/src/main/java/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java b/loadtime/src/main/java/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java
index 43a73b1ef..ad700fcfd 100644
--- a/loadtime/src/main/java/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java
+++ b/loadtime/src/main/java/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java
@@ -1131,7 +1131,7 @@ public class ClassLoaderWeavingAdaptor extends WeavingAdaptor {
}
}
static Method defineClassMethod;
- private static String lock = "lock";
+ private static final Object lock = new Object();
// /*