File tree Expand file tree Collapse file tree 3 files changed +0
-58
lines changed
core/src/main/java/com/google/errorprone/bugpatterns/threadsafety Expand file tree Collapse file tree 3 files changed +0
-58
lines changed Original file line number Diff line number Diff line change 4646 * @author cushon@google.com (Liam Miller-Cushon)
4747 */
4848public final class GuardedByBinder {
49-
50- /** Stub method to allow removing the GuardedByFlags argument. */
51- public static Optional <GuardedByExpression > bindExpression (
52- JCTree .JCExpression exp , VisitorState visitorState , GuardedByFlags flags ) {
53- return bindExpression (exp , visitorState );
54- }
55-
5649 /**
5750 * Creates a {@link GuardedByExpression} from a bound AST node, or returns {@code
5851 * Optional.empty()} if the AST node doesn't correspond to a 'simple' lock expression.
@@ -73,12 +66,6 @@ public static Optional<GuardedByExpression> bindExpression(
7366 }
7467 }
7568
76- /** Stub method to allow removing the GuardedByFlags argument. */
77- public static Optional <GuardedByExpression > bindString (
78- String string , GuardedBySymbolResolver resolver , GuardedByFlags flags ) {
79- return bindString (string , resolver );
80- }
81-
8269 /** Creates a {@link GuardedByExpression} from a string, given the resolution context. */
8370 public static Optional <GuardedByExpression > bindString (
8471 String string , GuardedBySymbolResolver resolver ) {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -405,15 +405,6 @@ public static final class ExpectedLockCalculator {
405405
406406 private static final GuardedByExpression .Factory F = new GuardedByExpression .Factory ();
407407
408- /** Stub method to allow removing the GuardedByFlags argument. */
409- public static Optional <GuardedByExpression > from (
410- JCTree .JCExpression guardedMemberExpression ,
411- GuardedByExpression guard ,
412- VisitorState state ,
413- GuardedByFlags flags ) {
414- return from (guardedMemberExpression , guard , state );
415- }
416-
417408 /**
418409 * Determine the lock expression that needs to be held when accessing a specific guarded member.
419410 *
You can’t perform that action at this time.
0 commit comments