8275360: Use @Override in javax.annotation.processing
Reviewed-by: iris
This commit is contained in:
parent
4d383b9fcd
commit
426bcee927
@ -79,6 +79,7 @@ public abstract class AbstractProcessor implements Processor {
|
||||
* @return the options recognized by this processor, or an empty
|
||||
* set if none
|
||||
*/
|
||||
@Override
|
||||
public Set<String> getSupportedOptions() {
|
||||
SupportedOptions so = this.getClass().getAnnotation(SupportedOptions.class);
|
||||
return (so == null) ?
|
||||
@ -101,6 +102,7 @@ public abstract class AbstractProcessor implements Processor {
|
||||
* @return the names of the annotation interfaces supported by
|
||||
* this processor, or an empty set if none
|
||||
*/
|
||||
@Override
|
||||
public Set<String> getSupportedAnnotationTypes() {
|
||||
SupportedAnnotationTypes sat = this.getClass().getAnnotation(SupportedAnnotationTypes.class);
|
||||
boolean initialized = isInitialized();
|
||||
@ -128,6 +130,7 @@ public abstract class AbstractProcessor implements Processor {
|
||||
*
|
||||
* @return the latest source version supported by this processor
|
||||
*/
|
||||
@Override
|
||||
public SourceVersion getSupportedSourceVersion() {
|
||||
SupportedSourceVersion ssv = this.getClass().getAnnotation(SupportedSourceVersion.class);
|
||||
SourceVersion sv = null;
|
||||
@ -167,6 +170,7 @@ public abstract class AbstractProcessor implements Processor {
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public abstract boolean process(Set<? extends TypeElement> annotations,
|
||||
RoundEnvironment roundEnv);
|
||||
|
||||
@ -178,6 +182,7 @@ public abstract class AbstractProcessor implements Processor {
|
||||
* @param member {@inheritDoc}
|
||||
* @param userText {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Iterable<? extends Completion> getCompletions(Element element,
|
||||
AnnotationMirror annotation,
|
||||
ExecutableElement member,
|
||||
|
@ -52,7 +52,6 @@ public class Completions {
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user