Remove @(Not)ThreadSafe annotation
[mdsal.git] / binding / mdsal-binding-generator-impl / src / main / java / org / opendaylight / mdsal / binding / generator / util / JavassistUtils.java
index a2c6456c0159cfa41ebd67ad7ff7e020df5e4d52..406242c76995a62f982d3a2818381c9875ebeb42 100644 (file)
@@ -20,17 +20,15 @@ import javassist.CtClass;
 import javassist.LoaderClassPath;
 import javassist.NotFoundException;
 import javax.annotation.concurrent.GuardedBy;
-import javax.annotation.concurrent.ThreadSafe;
 import org.eclipse.jdt.annotation.NonNullByDefault;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 /**
- * Users of this utility class are expected to synchronize on this instance
- * it they need to ensure atomic operations on it.
+ * Users of this utility class are expected to synchronize on this instance it they need to ensure atomic operations
+ * on it. Individual operations are synchronized and therefore are thread-safe.
  */
 @NonNullByDefault
-@ThreadSafe
 public final class JavassistUtils {
     private static final Logger LOG = LoggerFactory.getLogger(JavassistUtils.class);
     private static final Map<ClassPool, JavassistUtils> INSTANCES = new WeakHashMap<>();