Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e923687 authored by Andreas Gampe's avatar Andreas Gampe
Browse files

Frameworks: Let GuardedBy accept multiple locks

Widen the definition to take advantage of errorprone support.

Bug: 72666911
Test: m
Test: m RUN_ERROR_PRONE=true javac-check
Change-Id: Id792ee70b41b786da717f916e143786fe6308937
parent e0ec1601
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -23,10 +23,10 @@ import java.lang.annotation.Target;

/**
 * Annotation type used to mark a method or field that can only be accessed when
 * holding the referenced lock.
 * holding the referenced locks.
 */
@Target({ ElementType.FIELD, ElementType.METHOD })
@Retention(RetentionPolicy.CLASS)
public @interface GuardedBy {
    String value();
    String[] value();
}