diff --git a/java-commons/src/main/java/ru/progrm_jarvis/javacommons/annotation/DontOverrideEqualsAndHashCode.java b/java-commons/src/main/java/ru/progrm_jarvis/javacommons/annotation/DontOverrideEqualsAndHashCode.java index c74e2f23..4c45e573 100644 --- a/java-commons/src/main/java/ru/progrm_jarvis/javacommons/annotation/DontOverrideEqualsAndHashCode.java +++ b/java-commons/src/main/java/ru/progrm_jarvis/javacommons/annotation/DontOverrideEqualsAndHashCode.java @@ -8,8 +8,7 @@ */ @Inherited @Documented -@Retention(RetentionPolicy.CLASS) -@Target(value = ElementType.TYPE) +@Target(ElementType.TYPE) public @interface DontOverrideEqualsAndHashCode { /** diff --git a/java-commons/src/main/java/ru/progrm_jarvis/javacommons/annotation/Internal.java b/java-commons/src/main/java/ru/progrm_jarvis/javacommons/annotation/Internal.java new file mode 100644 index 00000000..b60979dd --- /dev/null +++ b/java-commons/src/main/java/ru/progrm_jarvis/javacommons/annotation/Internal.java @@ -0,0 +1,19 @@ +package ru.progrm_jarvis.javacommons.annotation; + +import java.lang.annotation.*; + +/** + * Marker indicating that the annotated object is part of an internal API and so (in most cases) + * should not be used by the end-user of the API. + */ +@Inherited +@Documented +public @interface Internal { + + /** + * Retrieves the reason why this API is internal. + * + * @return the reason why this API is internal + */ + String value() default ""; +}