Skip to content

Commit 9411c75

Browse files
authored
Signature annotations for Javadoc code
1 parent 5373e2b commit 9411c75

25 files changed

+67
-37
lines changed

README

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ Qualifier definitions
9696
The java.base module contains a copy of the Checker Framework qualifiers.
9797
To update that copy:
9898

99-
(cd $CHECKERFRAMEWORK && rm -rf checker-qual/build/libs && ./gradlew :checker-qual:sourcesJar)
100-
cp -pf $CHECKERFRAMEWORK/checker-qual/build/libs/checker-qual-*-source.jar checker-qual.jar
99+
(cd $CHECKERFRAMEWORK && rm -rf checker-qual/build/libs && ./gradlew :checker-qual:sourcesJar) && \
100+
cp -pf $CHECKERFRAMEWORK/checker-qual/build/libs/checker-qual-*-source.jar checker-qual.jar && \
101101
(cd src/java.base/share/classes && rm -rf org/checkerframework && \
102102
unzip ../../../../checker-qual.jar -x 'META-INF*' && \
103103
rm -f org/checkerframework/checker/signedness/SignednessUtilExtra.java && \
104-
chmod -R u+w org/checkerframework)
104+
chmod -R u+w org/checkerframework) && \
105105
jar tf checker-qual.jar | grep '\.java$' | sed 's/\/[^/]*\.java/;/' | sed 's/\//./g' | sed 's/^/ exports /' | sort | uniq
106106

107107
Copy the exports lines that were printed by the last command to

checker-qual.jar

0 Bytes
Binary file not shown.

src/java.base/share/classes/java/lang/Class.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,8 @@ public boolean isSynthetic(@GuardSatisfied Class<T> this) {
825825
* @return the name of the class or interface
826826
* represented by this object.
827827
*/
828-
@CFComment("interning: In the Oracle JDK, the result of getName is interned")
828+
@CFComment({"interning: In the Oracle JDK, the result of getName is interned",
829+
"signature: For a non-array non-primitive type, returns @BinaryName"})
829830
@Pure
830831
public @ClassGetName @Interned String getName() {
831832
String name = this.name;

src/jdk.javadoc/share/classes/com/sun/javadoc/AnnotationDesc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* in the package {@code jdk.javadoc.doclet}.
4141
* For more information, see the <i>Migration Guide</i> in the documentation for that package.
4242
*/
43-
@AnnotatedFor({"nullness", "value"})
43+
@AnnotatedFor({"nullness", "signature", "value"})
4444
@Deprecated(since="9", forRemoval=true)
4545
@SuppressWarnings("removal")
4646
public interface AnnotationDesc {

src/jdk.javadoc/share/classes/com/sun/javadoc/ClassDoc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
* in the package {@code jdk.javadoc.doclet}.
5050
* For more information, see the <i>Migration Guide</i> in the documentation for that package.
5151
*/
52-
@AnnotatedFor({"lock", "nullness", "value"})
52+
@AnnotatedFor({"lock", "nullness", "signature", "value"})
5353
@Deprecated(since="9", forRemoval=true)
5454
@SuppressWarnings("removal")
5555
public interface ClassDoc extends ProgramElementDoc, Type {

src/jdk.javadoc/share/classes/com/sun/javadoc/Doc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
* in the package {@code jdk.javadoc.doclet}.
4848
* For more information, see the <i>Migration Guide</i> in the documentation for that package.
4949
*/
50-
@AnnotatedFor({"lock", "nullness", "value"})
50+
@AnnotatedFor({"lock", "nullness", "signature", "value"})
5151
@Deprecated(since="9", forRemoval=true)
5252
@SuppressWarnings("removal")
5353
public interface Doc extends Comparable<Object> {

src/jdk.javadoc/share/classes/com/sun/javadoc/ExecutableMemberDoc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* in the package {@code jdk.javadoc.doclet}.
4040
* For more information, see the <i>Migration Guide</i> in the documentation for that package.
4141
*/
42-
@AnnotatedFor({"nullness", "value"})
42+
@AnnotatedFor({"nullness", "signature", "value"})
4343
@Deprecated(since="9", forRemoval=true)
4444
@SuppressWarnings("removal")
4545
public interface ExecutableMemberDoc extends MemberDoc {

src/jdk.javadoc/share/classes/com/sun/javadoc/FieldDoc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* in the package {@code jdk.javadoc.doclet}.
4343
* For more information, see the <i>Migration Guide</i> in the documentation for that package.
4444
*/
45-
@AnnotatedFor({"lock", "nullness", "value"})
45+
@AnnotatedFor({"lock", "nullness", "signature", "value"})
4646
@Deprecated(since="9", forRemoval=true)
4747
@SuppressWarnings("removal")
4848
public interface FieldDoc extends MemberDoc {

src/jdk.javadoc/share/classes/com/sun/javadoc/MemberDoc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
* in the package {@code jdk.javadoc.doclet}.
4747
* For more information, see the <i>Migration Guide</i> in the documentation for that package.
4848
*/
49-
@AnnotatedFor({"lock", "nullness", "value"})
49+
@AnnotatedFor({"lock", "nullness", "signature", "value"})
5050
@Deprecated(since="9", forRemoval=true)
5151
@SuppressWarnings("removal")
5252
public interface MemberDoc extends ProgramElementDoc {

src/jdk.javadoc/share/classes/com/sun/javadoc/MethodDoc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* in the package {@code jdk.javadoc.doclet}.
4040
* For more information, see the <i>Migration Guide</i> in the documentation for that package.
4141
*/
42-
@AnnotatedFor({"nullness", "value"})
42+
@AnnotatedFor({"nullness", "signature", "value"})
4343
@Deprecated(since="9", forRemoval=true)
4444
@SuppressWarnings("removal")
4545
public interface MethodDoc extends ExecutableMemberDoc {

0 commit comments

Comments
 (0)