2121
2222import com .google .common .collect .ImmutableList ;
2323import com .google .common .collect .ImmutableSet ;
24- import com .google .errorprone .ErrorProneFlags ;
2524import com .google .errorprone .VisitorState ;
2625import com .google .errorprone .bugpatterns .BugChecker ;
2726import com .google .errorprone .bugpatterns .threadsafety .ThreadSafety .Violation ;
@@ -52,16 +51,14 @@ public final class ThreadSafeAnalysis {
5251 /** Factory for {@link ThreadSafeAnalysis}. */
5352 public static final class Factory {
5453 private final WellKnownThreadSafety wellKnownThreadSafety ;
55- private final ErrorProneFlags errorProneFlags ;
5654
5755 @ Inject
58- Factory (WellKnownThreadSafety wellKnownThreadSafety , ErrorProneFlags errorProneFlags ) {
56+ Factory (WellKnownThreadSafety wellKnownThreadSafety ) {
5957 this .wellKnownThreadSafety = wellKnownThreadSafety ;
60- this .errorProneFlags = errorProneFlags ;
6158 }
6259
6360 public ThreadSafeAnalysis create (BugChecker bugChecker , VisitorState state ) {
64- return new ThreadSafeAnalysis (bugChecker , state , wellKnownThreadSafety , errorProneFlags );
61+ return new ThreadSafeAnalysis (bugChecker , state , wellKnownThreadSafety );
6562 }
6663 }
6764
@@ -71,16 +68,12 @@ public ThreadSafeAnalysis create(BugChecker bugChecker, VisitorState state) {
7168 private final ThreadSafety threadSafety ;
7269
7370 private ThreadSafeAnalysis (
74- BugChecker bugChecker ,
75- VisitorState state ,
76- WellKnownThreadSafety wellKnownThreadSafety ,
77- ErrorProneFlags errorProneFlags ) {
71+ BugChecker bugChecker , VisitorState state , WellKnownThreadSafety wellKnownThreadSafety ) {
7872 this .bugChecker = bugChecker ;
7973 this .state = state ;
8074 this .wellKnownThreadSafety = wellKnownThreadSafety ;
8175
82- this .threadSafety =
83- ThreadSafety .threadSafeBuilder (wellKnownThreadSafety , errorProneFlags ).build (state );
76+ this .threadSafety = ThreadSafety .threadSafeBuilder (wellKnownThreadSafety ).build (state );
8477 }
8578
8679 boolean hasThreadSafeTypeParameterAnnotation (TypeVariableSymbol sym ) {
0 commit comments