[annotations] allow custom ThreadSafe annotation to be applied to constructors

Reviewed By: cristianoc

Differential Revision: D4649675

fbshipit-source-id: 5af3e5a
master
Sam Blackshear 8 years ago committed by Facebook Github Bot
parent f549d58625
commit c9bd0dae24

@ -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;

Loading…
Cancel
Save