SuppressWarnings
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private AnnotationSpec | |
| public CodeWarnings | Returns: this instancethe elements to check elements)Detect the presence of |
| public CodeWarnings | Returns: this instancethe elements to check elements)Detect the presence of |
| private CodeBlock | |
| protected Set | |
| public void | |
| private void | |
| public void | suppress(MethodSpec.
the method to update methodInclude |
| public String |
| warnings | back to summary |
|---|---|
| private final Set<String> warnings | |
| CodeWarnings | back to summary |
|---|---|
| pack-priv CodeWarnings() | |
| buildAnnotationSpec | back to summary |
|---|---|
| private AnnotationSpec buildAnnotationSpec() | |
| detectDeprecation | back to summary |
|---|---|
| public CodeWarnings detectDeprecation(AnnotatedElement... elements) Detect the presence of
| |
| detectDeprecation | back to summary |
|---|---|
| public CodeWarnings detectDeprecation(Stream<AnnotatedElement> elements) Detect the presence of
| |
| generateValueCode | back to summary |
|---|---|
| private CodeBlock generateValueCode() | |
| getWarnings | back to summary |
|---|---|
| protected Set Return the currently registered warnings. | |
| register | back to summary |
|---|---|
| public void register(String warning) Register a warning to be included for this block. Does nothing if the warning is already registered.
| |
| register | back to summary |
|---|---|
| private void register(Deprecated annotation) | |
| suppress | back to summary |
|---|---|
| public void suppress(MethodSpec. Include
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |