[thread-safety] add string param to AssumeThreadSafe

Reviewed By: jaegs

Differential Revision: D4438627

fbshipit-source-id: 5f959a2
master
Sam Blackshear 8 years ago committed by Facebook Github Bot
parent c19bee7772
commit f79a53e1c8

@ -20,4 +20,5 @@ import java.lang.annotation.Target;
@Target({ ElementType.METHOD })
@Retention(RetentionPolicy.CLASS)
public @interface AssumeThreadSafe {
String because(); /** describe why the thread-safety assumption is reasonable */
}

@ -89,7 +89,7 @@ class Annotations {
this.f = new Object();
}
@AssumeThreadSafe
@AssumeThreadSafe(because = "it's a test")
public void assumeThreadSafeOk() {
this.f = new Object();
}

Loading…
Cancel
Save