mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
update annotation processors to support J17
This commit is contained in:
@@ -20,8 +20,7 @@ import java.util.stream.Collectors;
|
|||||||
* <pre>classes/META-INF/services/servicename</pre> file for each
|
* <pre>classes/META-INF/services/servicename</pre> file for each
|
||||||
* implemented and annotated service name.
|
* implemented and annotated service name.
|
||||||
*/
|
*/
|
||||||
@SupportedSourceVersion(SourceVersion.RELEASE_11)
|
@SupportedSourceVersion(SourceVersion.RELEASE_17)
|
||||||
|
|
||||||
public class ServiceProcessor extends AbstractProcessor {
|
public class ServiceProcessor extends AbstractProcessor {
|
||||||
public final static String SERVICE_NAME = Service.class.getCanonicalName();
|
public final static String SERVICE_NAME = Service.class.getCanonicalName();
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ import static io.nosqlbench.virtdata.api.processors.ProcessorClassNames.ThreadSa
|
|||||||
* manifests. It simply calls listener interfaces to do the rest of the work.
|
* manifests. It simply calls listener interfaces to do the rest of the work.
|
||||||
*/
|
*/
|
||||||
@SupportedOptions({"title"})
|
@SupportedOptions({"title"})
|
||||||
@SupportedSourceVersion(SourceVersion.RELEASE_11)
|
@SupportedSourceVersion(SourceVersion.RELEASE_17)
|
||||||
@SupportedAnnotationTypes({
|
@SupportedAnnotationTypes({
|
||||||
ThreadSafeMapper,
|
ThreadSafeMapper,
|
||||||
PerThreadMapper
|
PerThreadMapper
|
||||||
|
|||||||
@@ -8,8 +8,6 @@ import javax.tools.Diagnostic;
|
|||||||
import javax.tools.StandardLocation;
|
import javax.tools.StandardLocation;
|
||||||
import java.io.Writer;
|
import java.io.Writer;
|
||||||
import java.lang.annotation.Annotation;
|
import java.lang.annotation.Annotation;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import static io.nosqlbench.virtdata.api.processors.ProcessorClassNames.PerThreadMapper;
|
import static io.nosqlbench.virtdata.api.processors.ProcessorClassNames.PerThreadMapper;
|
||||||
@@ -26,7 +24,7 @@ import static io.nosqlbench.virtdata.api.processors.ProcessorClassNames.ThreadSa
|
|||||||
* enumerate candidate functions without requiring them to have a no-args constructor.
|
* enumerate candidate functions without requiring them to have a no-args constructor.
|
||||||
*/
|
*/
|
||||||
@SupportedOptions({"title"})
|
@SupportedOptions({"title"})
|
||||||
@SupportedSourceVersion(SourceVersion.RELEASE_11)
|
@SupportedSourceVersion(SourceVersion.RELEASE_17)
|
||||||
@SupportedAnnotationTypes({
|
@SupportedAnnotationTypes({
|
||||||
ThreadSafeMapper,
|
ThreadSafeMapper,
|
||||||
PerThreadMapper
|
PerThreadMapper
|
||||||
|
|||||||
Reference in New Issue
Block a user