Skip to content

Commit

Permalink
Always support latest source version.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Apr 3, 2015
1 parent 9aa2238 commit 870f979
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/main/java/org/jruby/anno/AnnotationBinder.java
Expand Up @@ -44,7 +44,6 @@
import java.util.logging.Logger;

@SupportedAnnotationTypes({"org.jruby.anno.JRubyMethod"})
@SupportedSourceVersion(SourceVersion.RELEASE_6)
public class AnnotationBinder extends AbstractProcessor {

public static final String POPULATOR_SUFFIX = "$POPULATOR";
Expand Down Expand Up @@ -74,6 +73,11 @@ public boolean process(Set<? extends TypeElement> typeElements, RoundEnvironment
return true;
}

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

public void processType(TypeElement cd) {
// process inner classes
for (TypeElement innerType : ElementFilter.typesIn(cd.getEnclosedElements())) {
Expand Down

0 comments on commit 870f979

Please sign in to comment.