Package com.google.errorprone.bugpatterns.threadsafety.annotations

Examples of com.google.errorprone.bugpatterns.threadsafety.annotations.LockMethod


    category = JDK, severity = ERROR, maturity = EXPERIMENTAL)
public class LockMethodChecker extends AbstractLockMethodChecker {

  @Override
  protected ImmutableList<String> getLockExpressions(MethodTree tree) {
    LockMethod lockMethod = ASTHelpers.getAnnotation(tree, LockMethod.class);
    return lockMethod == null
        ? ImmutableList.<String>of()
        : ImmutableList.copyOf(lockMethod.value());
  }
View Full Code Here

TOP

Related Classes of com.google.errorprone.bugpatterns.threadsafety.annotations.LockMethod

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.