Skip to content

Commit 56dec21

Browse files
author
Sonia Zaldana Calles
committed
8338014: Improve usage of @JVMS tags in class file API
Reviewed-by: darcy, liach, asotona
1 parent 74fdd68 commit 56dec21

40 files changed

+76
-76
lines changed

src/java.base/share/classes/java/lang/classfile/AnnotationValue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ default ClassDesc classSymbol() {
426426
}
427427

428428
/**
429-
* {@return the tag character for this type as per {@jvms 4.7.16.1}}
429+
* {@return the tag character for this type as per JVMS {@jvms 4.7.16.1}}
430430
*/
431431
char tag();
432432

src/java.base/share/classes/java/lang/classfile/Attribute.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -66,7 +66,7 @@
6666
import jdk.internal.javac.PreviewFeature;
6767

6868
/**
69-
* Models a classfile attribute {@jvms 4.7}. Many, though not all, subtypes of
69+
* Models a classfile attribute (JVMS {@jvms 4.7}). Many, though not all, subtypes of
7070
* {@linkplain Attribute} will implement {@link ClassElement}, {@link
7171
* MethodElement}, {@link FieldElement}, or {@link CodeElement}; attributes that
7272
* are also elements will be delivered when traversing the elements of the

src/java.base/share/classes/java/lang/classfile/ClassSignature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import jdk.internal.javac.PreviewFeature;
3131

3232
/**
33-
* Models the generic signature of a class file, as defined by {@jvms 4.7.9}.
33+
* Models the generic signature of a class file, as defined by JVMS {@jvms 4.7.9}.
3434
*
3535
* @since 22
3636
*/

src/java.base/share/classes/java/lang/classfile/MethodSignature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import jdk.internal.javac.PreviewFeature;
3333

3434
/**
35-
* Models the generic signature of a method, as defined by {@jvms 4.7.9}.
35+
* Models the generic signature of a method, as defined by JVMS {@jvms 4.7.9}.
3636
*
3737
* @since 22
3838
*/

src/java.base/share/classes/java/lang/classfile/Opcode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -29,7 +29,7 @@
2929
import jdk.internal.javac.PreviewFeature;
3030

3131
/**
32-
* Describes the opcodes of the JVM instruction set, as described in {@jvms 6.5}.
32+
* Describes the opcodes of the JVM instruction set, as described in JVMS {@jvms 6.5}.
3333
* As well as a number of pseudo-instructions that may be encountered when
3434
* traversing the instructions of a method.
3535
*

src/java.base/share/classes/java/lang/classfile/Signature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import jdk.internal.javac.PreviewFeature;
3535

3636
/**
37-
* Models generic Java type signatures, as defined in {@jvms 4.7.9.1}.
37+
* Models generic Java type signatures, as defined in JVMS {@jvms 4.7.9.1}.
3838
*
3939
* @sealedGraph
4040
* @since 22

src/java.base/share/classes/java/lang/classfile/TypeAnnotation.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -60,7 +60,7 @@
6060
import jdk.internal.javac.PreviewFeature;
6161

6262
/**
63-
* Models an annotation on a type use, as defined in {@jvms 4.7.19} and {@jvms 4.7.20}.
63+
* Models an annotation on a type use, as defined in JVMS {@jvms 4.7.19} and {@jvms 4.7.20}.
6464
*
6565
* @see RuntimeVisibleTypeAnnotationsAttribute
6666
* @see RuntimeInvisibleTypeAnnotationsAttribute
@@ -73,7 +73,7 @@ public sealed interface TypeAnnotation
7373
permits UnboundAttribute.UnboundTypeAnnotation {
7474

7575
/**
76-
* The kind of target on which the annotation appears, as defined in {@jvms 4.7.20.1}.
76+
* The kind of target on which the annotation appears, as defined in JVMS {@jvms 4.7.20.1}.
7777
*
7878
* @since 22
7979
*/
@@ -773,7 +773,7 @@ sealed interface TypeArgumentTarget extends TargetInfo
773773

774774
/**
775775
* JVMS: Type_path structure identifies which part of the type is annotated,
776-
* as defined in {@jvms 4.7.20.2}
776+
* as defined in JVMS {@jvms 4.7.20.2}
777777
*
778778
* @since 22
779779
*/
@@ -782,7 +782,7 @@ sealed interface TypePathComponent
782782
permits UnboundAttribute.TypePathComponentImpl {
783783

784784
/**
785-
* Type path kind, as defined in {@jvms 4.7.20.2}
785+
* Type path kind, as defined in JVMS {@jvms 4.7.20.2}
786786
*
787787
* @since 22
788788
*/

src/java.base/share/classes/java/lang/classfile/attribute/AnnotationDefaultAttribute.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -34,7 +34,7 @@
3434
import jdk.internal.javac.PreviewFeature;
3535

3636
/**
37-
* Models the {@code AnnotationDefault} attribute {@jvms 4.7.22}, which can
37+
* Models the {@code AnnotationDefault} attribute (JVMS {@jvms 4.7.22}), which can
3838
* appear on methods of annotation types, and records the default value
3939
* {@jls 9.6.2} for the element corresponding to this method. Delivered as a
4040
* {@link MethodElement} when traversing the elements of a {@link MethodModel}.

src/java.base/share/classes/java/lang/classfile/attribute/BootstrapMethodsAttribute.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -35,7 +35,7 @@
3535
import jdk.internal.javac.PreviewFeature;
3636

3737
/**
38-
* Models the {@code BootstrapMethods} attribute {@jvms 4.7.23}, which serves as
38+
* Models the {@code BootstrapMethods} attribute (JVMS {@jvms 4.7.23}), which serves as
3939
* an extension to the constant pool of a classfile. Elements of the bootstrap
4040
* method table are accessed through {@link ConstantPool}.
4141
* <p>

src/java.base/share/classes/java/lang/classfile/attribute/CodeAttribute.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import jdk.internal.javac.PreviewFeature;
3333

3434
/**
35-
* Models the {@code Code} attribute {@jvms 4.7.3}, appears on non-native,
35+
* Models the {@code Code} attribute (JVMS {@jvms 4.7.3}), appears on non-native,
3636
* non-abstract methods and contains the bytecode of the method body. Delivered
3737
* as a {@link java.lang.classfile.MethodElement} when traversing the elements of a
3838
* {@link java.lang.classfile.MethodModel}.

0 commit comments

Comments
 (0)