diff --git a/infer/annotations/com/facebook/infer/annotation/ThreadSafe.java b/infer/annotations/com/facebook/infer/annotation/ThreadSafe.java index b4acd6b9f..62c5a71f5 100644 --- a/infer/annotations/com/facebook/infer/annotation/ThreadSafe.java +++ b/infer/annotations/com/facebook/infer/annotation/ThreadSafe.java @@ -20,7 +20,7 @@ import java.lang.annotation.Target; * @ThreadSafe(enableChecks = false). */ -@Target({ ElementType.METHOD, ElementType.TYPE }) +@Target({ ElementType.CONSTRUCTOR, ElementType.METHOD, ElementType.TYPE }) @Retention(RetentionPolicy.CLASS) public @interface ThreadSafe { boolean enableChecks() default true;