summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-08-25 02:50:10 +0200
committer zaaarf <zaaarf@proton.me>2023-08-25 02:50:10 +0200
commit5add2ddd82b959cea8c3cb25901cebcfd9836e3c (patch)
treebfce96cb23adca94b9f72d6b67a6ff64d61f891b
parent26c4377317296dadf14d16ae678fc0cc6a49dc46 (diff)
chore: set supported version to latest0.1.4
-rw-r--r--src/main/java/ftbsc/geb/processor/GEBProcessor.java10
1 files changed, 10 insertions, 0 deletions
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
@@ -94,6 +94,16 @@ public class GEBProcessor extends AbstractProcessor {
}
/**
+ * 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
* a valid listener.