Index
All Classes and Interfaces|All Packages
A
- ABSTRACT - Enum constant in enum com.google.errorprone.annotations.Modifier
- allowedOnPath() - Element in annotation type com.google.errorprone.annotations.RestrictedApi
-
Allow the restricted API on paths matching this regular expression.
- allowlistAnnotations() - Element in annotation type com.google.errorprone.annotations.RestrictedApi
-
Allow calls to the restricted API in methods or classes with this annotation.
- allowlistWithWarningAnnotations() - Element in annotation type com.google.errorprone.annotations.RestrictedApi
-
Emit warnings, not errors, on calls to the restricted API for callers with this annotation.
C
- CanIgnoreReturnValue - Annotation Type in com.google.errorprone.annotations
-
Indicates that the return value of the annotated API is ignorable.
- CheckReturnValue - Annotation Type in com.google.errorprone.annotations
-
Indicates that the return value of the annotated method must be used.
- com.google.errorprone.annotations - package com.google.errorprone.annotations
- com.google.errorprone.annotations.concurrent - package com.google.errorprone.annotations.concurrent
- CompatibleWith - Annotation Type in com.google.errorprone.annotations
-
Declares that a parameter to a method must be "compatible with" one of the type parameters in the method's enclosing class, or on the method itself.
- CompileTimeConstant - Annotation Type in com.google.errorprone.annotations
-
Annotation for method parameter and class field declarations, which denotes that corresponding actual values must be compile-time constant expressions.
- containerOf() - Element in annotation type com.google.errorprone.annotations.Immutable
-
When annotating a generic type as immutable,
containerOf
specifies which type parameters must be instantiated with immutable types for the container to be deeply immutable.
D
- DEFAULT - Enum constant in enum com.google.errorprone.annotations.Modifier
- DoNotCall - Annotation Type in com.google.errorprone.annotations
-
Indicates that the annotated method should not be called under any normal circumstances, yet is either impossible to remove, or should not ever be removed.
- DoNotMock - Annotation Type in com.google.errorprone.annotations
-
Annotation representing a type that should not be mocked.
E
- explanation() - Element in annotation type com.google.errorprone.annotations.RestrictedApi
-
Explanation why the API is restricted, to be inserted into the compiler output.
F
- FINAL - Enum constant in enum com.google.errorprone.annotations.Modifier
- FormatMethod - Annotation Type in com.google.errorprone.annotations
-
Annotation for a method that takes a printf-style format string as an argument followed by arguments for that format string.
- FormatString - Annotation Type in com.google.errorprone.annotations
-
Annotation for method parameter declarations which denotes that actual parameters will be used as a format string in printf-style formatting.
- ForOverride - Annotation Type in com.google.errorprone.annotations
-
Indicates that the annotated method is provided only to be overridden: it should not be invoked from outside its declaring source file (as if it is
private
), and overriding methods should not be directly invoked at all.
G
- GuardedBy - Annotation Type in com.google.errorprone.annotations.concurrent
-
Indicates that the annotated element should be used only while holding the specified lock.
I
- Immutable - Annotation Type in com.google.errorprone.annotations
-
The class to which this annotation is applied is immutable.
- imports() - Element in annotation type com.google.errorprone.annotations.InlineMe
-
The new imports to (optionally) add to the caller.
- IncompatibleModifiers - Annotation Type in com.google.errorprone.annotations
-
Annotation declaring that the target annotation is incompatible with any one of the provided modifiers.
- InlineMe - Annotation Type in com.google.errorprone.annotations
-
Indicates that callers of this API should be inlined.
- InlineMeValidationDisabled - Annotation Type in com.google.errorprone.annotations
-
An annotation that disables validation of the
InlineMe
annotation's correctness (i.e.: that it accurately represents an inlining of the annotated method).
K
- Keep - Annotation Type in com.google.errorprone.annotations
-
Indicates that the annotated element should not be removed, and that its visibility, modifiers, type, and name should not be modified.
L
- LazyInit - Annotation Type in com.google.errorprone.annotations.concurrent
-
Use this annotation on any static or field that will be initialized lazily, where races yield no semantic difference in the code (as, for example, is the case with
String.hashCode()
). - link() - Element in annotation type com.google.errorprone.annotations.RestrictedApi
-
Link explaining why the API is restricted
- LockMethod - Annotation Type in com.google.errorprone.annotations.concurrent
-
Deprecated.the correctness of this annotation is not enforced; it will soon be removed.
M
- modifier() - Element in annotation type com.google.errorprone.annotations.IncompatibleModifiers
-
The incompatible modifiers.
- modifier() - Element in annotation type com.google.errorprone.annotations.RequiredModifiers
-
The required modifiers.
- Modifier - Enum in com.google.errorprone.annotations
-
Modifiers in the Java language, as specified in: https://docs.oracle.com/javase/specs/jls/se11/html/jls-8.html#jls-8.1.1 https://docs.oracle.com/javase/specs/jls/se11/html/jls-8.html#jls-8.3.1 https://docs.oracle.com/javase/specs/jls/se11/html/jls-8.html#jls-8.4.3 https://docs.oracle.com/javase/specs/jls/se11/html/jls-9.html#jls-9.4
- MustBeClosed - Annotation Type in com.google.errorprone.annotations
-
Annotation for constructors of AutoCloseables or methods that return an AutoCloseable and require that the resource is closed.
N
- NATIVE - Enum constant in enum com.google.errorprone.annotations.Modifier
- NoAllocation - Annotation Type in com.google.errorprone.annotations
-
Annotation for method declarations, which denotes that this method will not cause allocations that are visible from source code.
O
- OverridingMethodsMustInvokeSuper - Annotation Type in com.google.errorprone.annotations
-
Indicates that any concrete method that overrides the annotated method, directly or indirectly, must invoke
super.theAnnotatedMethod(...)
at some point.
P
- PRIVATE - Enum constant in enum com.google.errorprone.annotations.Modifier
- PROTECTED - Enum constant in enum com.google.errorprone.annotations.Modifier
- PUBLIC - Enum constant in enum com.google.errorprone.annotations.Modifier
R
- replacement() - Element in annotation type com.google.errorprone.annotations.InlineMe
-
What the caller should be replaced with.
- RequiredModifiers - Annotation Type in com.google.errorprone.annotations
-
Annotation declaring that the target annotation requires all the specified modifiers.
- RestrictedApi - Annotation Type in com.google.errorprone.annotations
-
Restrict this method to callsites with a allowlist annotation.
S
- STATIC - Enum constant in enum com.google.errorprone.annotations.Modifier
- staticImports() - Element in annotation type com.google.errorprone.annotations.InlineMe
-
The new static imports to (optionally) add to the caller.
- STRICTFP - Enum constant in enum com.google.errorprone.annotations.Modifier
- SuppressPackageLocation - Annotation Type in com.google.errorprone.annotations
-
Indicates that the PackageLocation warning should be suppressed for this package.
- SYNCHRONIZED - Enum constant in enum com.google.errorprone.annotations.Modifier
T
- ThreadSafe - Annotation Type in com.google.errorprone.annotations
-
This annotation indicates that the class/interface it is applied to is thread safe
- TRANSIENT - Enum constant in enum com.google.errorprone.annotations.Modifier
U
- UnlockMethod - Annotation Type in com.google.errorprone.annotations.concurrent
-
Deprecated.the correctness of this annotation is not enforced; it will soon be removed.
V
- value() - Element in annotation type com.google.errorprone.annotations.CompatibleWith
- value() - Element in annotation type com.google.errorprone.annotations.concurrent.GuardedBy
-
The lock that should be held, specified in the format given in the documentation for the corresponding Error Prone check.
- value() - Element in annotation type com.google.errorprone.annotations.concurrent.LockMethod
-
Deprecated.
- value() - Element in annotation type com.google.errorprone.annotations.concurrent.UnlockMethod
-
Deprecated.
- value() - Element in annotation type com.google.errorprone.annotations.DoNotCall
-
An optional explanation of why the method should not be called.
- value() - Element in annotation type com.google.errorprone.annotations.DoNotMock
-
The reason why the annotated type should not be mocked.
- value() - Element in annotation type com.google.errorprone.annotations.IncompatibleModifiers
-
Deprecated.use
IncompatibleModifiers.modifier()
instead - value() - Element in annotation type com.google.errorprone.annotations.InlineMeValidationDisabled
-
An explanation as to why the validation is disabled (e.g.: moving from a constructor to a static factory method that delegates to this constructor, which is behavior-perserving, but isn't strictly an inlining).
- value() - Element in annotation type com.google.errorprone.annotations.RequiredModifiers
-
Deprecated.use
RequiredModifiers.modifier()
instead - valueOf(String) - Static method in enum com.google.errorprone.annotations.Modifier
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.google.errorprone.annotations.Modifier
-
Returns an array containing the constants of this enum type, in the order they are declared.
- Var - Annotation Type in com.google.errorprone.annotations
-
The parameter or local variable to which this annotation is applied is non-final.
- VOLATILE - Enum constant in enum com.google.errorprone.annotations.Modifier
All Classes and Interfaces|All Packages