Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add marker annotations #22

Merged
merged 3 commits into from
Aug 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*/
@Inherited
@Documented
@Retention(RetentionPolicy.CLASS)
@Target(value = ElementType.TYPE)
@Target(ElementType.TYPE)
public @interface DontOverrideEqualsAndHashCode {

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -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 "";
}