Skip to content

Commit

Permalink
Support latest supported source version
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Rohde committed May 20, 2019
1 parent 189599c commit 765ad7b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
import javax.annotation.processing.Processor;
import javax.annotation.processing.RoundEnvironment;
import javax.annotation.processing.SupportedAnnotationTypes;
import javax.annotation.processing.SupportedSourceVersion;
import javax.lang.model.SourceVersion;
import javax.lang.model.element.Element;
import javax.lang.model.element.ElementKind;
Expand Down Expand Up @@ -81,7 +80,6 @@
import static org.derive4j.processor.api.model.DerivedInstanceConfigs.getTargetClass;

@AutoService(Processor.class)
@SupportedSourceVersion(SourceVersion.RELEASE_8)
@SupportedAnnotationTypes("*")
public final class DerivingProcessor extends AbstractProcessor {

Expand All @@ -95,6 +93,11 @@ public final class DerivingProcessor extends AbstractProcessor {
private List<Extension> extensions;
private Map<P2<ClassName, Optional<String>>, Derivator> derivators;

@Override
public SourceVersion getSupportedSourceVersion() {
return SourceVersion.latestSupported();
}

@Override
public synchronized void init(ProcessingEnvironment processingEnv) {
super.init(processingEnv);
Expand Down

0 comments on commit 765ad7b

Please sign in to comment.