From 7ddd5812614a588533962b6adaf4f2a5c4bd1723 Mon Sep 17 00:00:00 2001 From: Roberto Cortez Date: Mon, 27 Apr 2020 15:59:14 +0100 Subject: [PATCH] Added annotations module. --- annotations/pom.xml | 40 +++++++++++++++++++ .../common/annotations/Experimental.java | 18 +++++++++ pom.xml | 1 + 3 files changed, 59 insertions(+) create mode 100644 annotations/pom.xml create mode 100644 annotations/src/main/java/io/smallrye/common/annotations/Experimental.java diff --git a/annotations/pom.xml b/annotations/pom.xml new file mode 100644 index 00000000..96fd82b9 --- /dev/null +++ b/annotations/pom.xml @@ -0,0 +1,40 @@ + + + 4.0.0 + + + io.smallrye.common + smallrye-common-parent + 1.0.2-SNAPSHOT + + + smallrye-common-annotations + + SmallRye Common: Annotations + + + + coverage + + @{jacocoArgLine} + + + + + org.jacoco + jacoco-maven-plugin + + + report + verify + + report + + + + + + + + + diff --git a/annotations/src/main/java/io/smallrye/common/annotations/Experimental.java b/annotations/src/main/java/io/smallrye/common/annotations/Experimental.java new file mode 100644 index 00000000..2bcc3d5d --- /dev/null +++ b/annotations/src/main/java/io/smallrye/common/annotations/Experimental.java @@ -0,0 +1,18 @@ +package io.smallrye.common.annotations; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Inherited; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * Annotation that specifies that an element is experimental and may change without notice. + */ +@Inherited +@Retention(RetentionPolicy.RUNTIME) +@Target({ ElementType.METHOD, ElementType.TYPE }) +public @interface Experimental { + String value() default ""; + +} diff --git a/pom.xml b/pom.xml index 8a17a4f4..c8da0cd5 100644 --- a/pom.xml +++ b/pom.xml @@ -45,6 +45,7 @@ + annotations constraint cpu expression