Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8275360: Use @OverRide in javax.annotation.processing
Reviewed-by: iris
  • Loading branch information
jddarcy committed Oct 18, 2021
1 parent 4d383b9 commit 426bcee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -79,6 +79,7 @@ protected AbstractProcessor() {}
* @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) ?
Expand All @@ -101,6 +102,7 @@ public Set<String> getSupportedOptions() {
* @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();
Expand Down Expand Up @@ -128,6 +130,7 @@ public Set<String> getSupportedAnnotationTypes() {
*
* @return the latest source version supported by this processor
*/
@Override
public SourceVersion getSupportedSourceVersion() {
SupportedSourceVersion ssv = this.getClass().getAnnotation(SupportedSourceVersion.class);
SourceVersion sv = null;
Expand Down Expand Up @@ -167,6 +170,7 @@ public synchronized void init(ProcessingEnvironment processingEnv) {
/**
* {@inheritDoc}
*/
@Override
public abstract boolean process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv);

Expand All @@ -178,6 +182,7 @@ public abstract boolean process(Set<? extends TypeElement> annotations,
* @param member {@inheritDoc}
* @param userText {@inheritDoc}
*/
@Override
public Iterable<? extends Completion> getCompletions(Element element,
AnnotationMirror annotation,
ExecutableElement member,
Expand Down
Expand Up @@ -52,7 +52,6 @@ public String getValue() {
return value;
}


public String getMessage() {
return message;
}
Expand Down

1 comment on commit 426bcee

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.