Skip to content

Commit 00d4fcb

Browse files
Fix annotation processor warning
1 parent b664a32 commit 00d4fcb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

sdk-api-gen/src/main/java/dev/restate/sdk/gen/ServiceProcessor.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import javax.tools.StandardLocation;
3030

3131
@SupportedAnnotationTypes("*")
32-
@SupportedSourceVersion(SourceVersion.RELEASE_17)
3332
public class ServiceProcessor extends AbstractProcessor {
3433

3534
private HandlebarsTemplateEngine serviceDefinitionFactoryCodegen;
@@ -158,7 +157,12 @@ public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment
158157
return false;
159158
}
160159

161-
public static Path readOrCreateResource(Filer filer, String file) throws IOException {
160+
@Override
161+
public SourceVersion getSupportedSourceVersion() {
162+
return SourceVersion.latestSupported();
163+
}
164+
165+
public static Path readOrCreateResource(Filer filer, String file) throws IOException {
162166
try {
163167
FileObject fileObject = filer.getResource(StandardLocation.CLASS_OUTPUT, "", file);
164168
return new File(fileObject.toUri()).toPath();

0 commit comments

Comments
 (0)