Skip to content

Commit

Permalink
build: Release 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
NotMyFault committed Jun 27, 2022
1 parent 8e1ec95 commit cee39ec
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}

version = "1.2-SNAPSHOT"
version = "1.2"
group = "com.intellectualsites.informative-annotations"

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import static java.lang.annotation.ElementType.TYPE;

/**
* @since TODO
* @since 1.0
*/
public final class ApiDescription {

Expand All @@ -50,15 +50,15 @@ private ApiDescription() {
* Returns additional information about API.
*
* @return the version string
* @since TODO
* @since 1.0
*/
String info() default "";

/**
* Express precaution about the use of this API.
*
* @return the version string
* @since TODO
* @since 1.0
*/
String warning() default "";
}
Expand Down
12 changes: 9 additions & 3 deletions src/main/java/com/intellectualsites/annotations/DoNotUse.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,27 @@
package com.intellectualsites.annotations;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.RECORD_COMPONENT;
import static java.lang.annotation.ElementType.TYPE;

/**
* This type, field or method should never be referenced by third party consumers under any circumstances.
* It's not part of the API and may change at any time without notice.
*
* This is a higher lever annotation of {@link NotPublic}.
*
* @since TODO
* @since 1.0
*/
@Retention(RetentionPolicy.CLASS)
@Target({ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.METHOD, ElementType.TYPE})
@Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, RECORD_COMPONENT, TYPE})
@Documented
public @interface DoNotUse {
}
12 changes: 9 additions & 3 deletions src/main/java/com/intellectualsites/annotations/NotPublic.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,26 @@
package com.intellectualsites.annotations;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.RECORD_COMPONENT;
import static java.lang.annotation.ElementType.TYPE;

/**
* Indicates that a public method is not intended for external use by third party consumers.
* This field should be treated as "not public" and should not be used unless you know what you're doing.
* It's not part of the API and may change at any time without notice.
*
* @since TODO
* @since 1.0
*/
@Retention(RetentionPolicy.CLASS)
@Target({ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.METHOD, ElementType.TYPE})
@Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, RECORD_COMPONENT, TYPE})
@Documented
public @interface NotPublic {
}

0 comments on commit cee39ec

Please sign in to comment.