Skip to content

Commit 0d08bfd

Browse files
authored
Merge pull request #86 from Thijsiez/master
Add @documented where it's currently missing
2 parents f0a5f5c + e575d98 commit 0d08bfd

File tree

7 files changed

+13
-1
lines changed

7 files changed

+13
-1
lines changed

common/src/main/java/org/intellij/lang/annotations/Language.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import org.jetbrains.annotations.NonNls;
2020

21+
import java.lang.annotation.Documented;
2122
import java.lang.annotation.Retention;
2223
import java.lang.annotation.RetentionPolicy;
2324
import java.lang.annotation.Target;
@@ -41,6 +42,7 @@
4142
* Note that using the derived annotation as meta-annotation is not supported.
4243
* Meta-annotation works only one level deep.
4344
*/
45+
@Documented
4446
@Retention(RetentionPolicy.CLASS)
4547
@Target({ METHOD, FIELD, PARAMETER, LOCAL_VARIABLE, ANNOTATION_TYPE })
4648
public @interface Language {

common/src/main/java/org/intellij/lang/annotations/MagicConstant.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
*
7676
* The <code>@MagicConstant</code> annotation has SOURCE retention, i.e. it is removed upon compilation and does not create any runtime overhead.
7777
*/
78+
@Documented
7879
@Retention(RetentionPolicy.SOURCE)
7980
@Target({
8081
ElementType.FIELD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE,

common/src/main/java/org/intellij/lang/annotations/Pattern.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import org.jetbrains.annotations.NonNls;
2020

2121
import static java.lang.annotation.ElementType.*;
22+
import java.lang.annotation.Documented;
2223
import java.lang.annotation.Retention;
2324
import java.lang.annotation.RetentionPolicy;
2425
import java.lang.annotation.Target;
@@ -42,6 +43,7 @@
4243
*
4344
* @see RegExp
4445
*/
46+
@Documented
4547
@Retention(RetentionPolicy.CLASS)
4648
@Target({ METHOD, FIELD, PARAMETER, LOCAL_VARIABLE, ANNOTATION_TYPE })
4749
public @interface Pattern {

common/src/main/java/org/intellij/lang/annotations/PrintFormat.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
*/
1616
package org.intellij.lang.annotations;
1717

18+
import java.lang.annotation.Documented;
19+
1820
/**
1921
* Specifies that the method parameter is a printf-style print format pattern,
2022
* as described in {@link java.util.Formatter}.
@@ -35,6 +37,7 @@
3537
*
3638
* @see Pattern
3739
*/
40+
@Documented
3841
@Pattern(PrintFormatPattern.PRINT_FORMAT)
3942
public @interface PrintFormat {
4043
}

common/src/main/java/org/intellij/lang/annotations/RegExp.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import org.jetbrains.annotations.NonNls;
1919

2020
import static java.lang.annotation.ElementType.*;
21+
import java.lang.annotation.Documented;
2122
import java.lang.annotation.Retention;
2223
import java.lang.annotation.RetentionPolicy;
2324
import java.lang.annotation.Target;
@@ -31,6 +32,7 @@
3132
*
3233
* @see Language
3334
*/
35+
@Documented
3436
@Retention(RetentionPolicy.CLASS)
3537
@Target({METHOD, FIELD, PARAMETER, LOCAL_VARIABLE, ANNOTATION_TYPE})
3638
@Language("RegExp")

common/src/main/java/org/jetbrains/annotations/CheckReturnValue.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.jetbrains.annotations;
22

3+
import java.lang.annotation.Documented;
34
import java.lang.annotation.ElementType;
45
import java.lang.annotation.Target;
56

@@ -27,6 +28,7 @@
2728
*
2829
* @see Contract#pure()
2930
*/
31+
@Documented
3032
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.TYPE, ElementType.PACKAGE})
3133
@ApiStatus.Experimental
3234
public @interface CheckReturnValue {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
# limitations under the License.
1515
#
1616

17-
projectVersion=24.0.0
17+
projectVersion=24.0.1
1818
#JDK_5=<path-to-older-java-version>

0 commit comments

Comments
 (0)