Skip to content

Commit 881739d

Browse files
committed
SourceVersion.latestSupported() for annotation processor
1 parent d66bee0 commit 881739d

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

pom.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
<plugin>
214214
<groupId>org.codehaus.mojo</groupId>
215215
<artifactId>build-helper-maven-plugin</artifactId>
216-
<version>3.3.0</version>
216+
<version>3.4.0</version>
217217
<executions>
218218
<execution>
219219
<phase>initialize</phase>
@@ -318,7 +318,7 @@
318318
<plugin>
319319
<groupId>org.apache.maven.plugins</groupId>
320320
<artifactId>maven-surefire-plugin</artifactId>
321-
<version>3.0.0</version>
321+
<version>3.1.0</version>
322322
<configuration>
323323
<forkCount>${forkCount}</forkCount>
324324
<reuseForks>true</reuseForks>
@@ -341,7 +341,7 @@
341341
<plugin>
342342
<groupId>org.apache.maven.plugins</groupId>
343343
<artifactId>maven-failsafe-plugin</artifactId>
344-
<version>3.0.0</version>
344+
<version>3.1.0</version>
345345
<executions>
346346
<execution>
347347
<goals>
@@ -595,7 +595,7 @@
595595
<plugin>
596596
<groupId>org.apache.maven.plugins</groupId>
597597
<artifactId>maven-gpg-plugin</artifactId>
598-
<version>3.0.1</version>
598+
<version>3.1.0</version>
599599
<executions>
600600
<execution>
601601
<id>sign-artifacts</id>

src/main/java/uk/co/spudsoft/params4j/impl/JavadocCapturer.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import javax.annotation.processing.AbstractProcessor;
2525
import javax.annotation.processing.RoundEnvironment;
2626
import javax.annotation.processing.SupportedAnnotationTypes;
27-
import javax.annotation.processing.SupportedSourceVersion;
2827
import javax.lang.model.SourceVersion;
2928
import javax.lang.model.element.Element;
3029
import javax.lang.model.element.ElementKind;
@@ -45,7 +44,6 @@
4544
* @author jtalbut
4645
*/
4746
@SupportedAnnotationTypes("uk.co.spudsoft.params4j.JavadocCapture")
48-
@SupportedSourceVersion(SourceVersion.RELEASE_17)
4947
public class JavadocCapturer extends AbstractProcessor {
5048

5149
@Override
@@ -62,6 +60,11 @@ public boolean process(Set<? extends TypeElement> annnotations, RoundEnvironment
6260

6361
return true;
6462
}
63+
64+
@Override
65+
public SourceVersion getSupportedSourceVersion() {
66+
return SourceVersion.latestSupported();
67+
}
6568

6669
private void writeDocProperties(PackageElement packageElement, TypeElement classElement, Properties commentProps) {
6770
try {

0 commit comments

Comments
 (0)