From 5add2ddd82b959cea8c3cb25901cebcfd9836e3c Mon Sep 17 00:00:00 2001 From: zaaarf Date: Fri, 25 Aug 2023 02:50:10 +0200 Subject: chore: set supported version to latest --- src/main/java/ftbsc/geb/processor/GEBProcessor.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/ftbsc/geb/processor/GEBProcessor.java b/src/main/java/ftbsc/geb/processor/GEBProcessor.java index c3b6ff2..98bf251 100644 --- a/src/main/java/ftbsc/geb/processor/GEBProcessor.java +++ b/src/main/java/ftbsc/geb/processor/GEBProcessor.java @@ -93,6 +93,16 @@ public class GEBProcessor extends AbstractProcessor { return claimed; } + /** + * Sets the supported source version to the latest one. + * It's either that or constant warnings, and the processor is simple enough. + * @return the latest source version + */ + @Override + public SourceVersion getSupportedSourceVersion() { + return SourceVersion.latest(); + } + /** * Verifies that the annotated method is valid and, if it is, adds it to * the list. See the annotation's javadoc for details on what's considered -- cgit v1.2.3-56-ga3b1