Skip to content

Commit

Permalink
8339115: Rename TypeKind enum constants to follow code style
Browse files Browse the repository at this point in the history
  • Loading branch information
liach committed Aug 27, 2024
1 parent daf2617 commit f686716
Show file tree
Hide file tree
Showing 31 changed files with 650 additions and 594 deletions.
3 changes: 2 additions & 1 deletion make/jdk/src/classes/build/tools/taglet/JSpec.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ public JVMS() {
this.idPrefix = idPrefix;
}

private static final Pattern TAG_PATTERN = Pattern.compile("(?s)(.+ )?(?<chapter>[1-9][0-9]*)(?<section>[0-9.]*)( .*)?$");
// Note: Matches special cases like @jvms 6.5.checkcast
private static final Pattern TAG_PATTERN = Pattern.compile("(?s)(.+ )?(?<chapter>[1-9][0-9]*)(?<section>[0-9a-z_.]*)( .*)?$");

/**
* Returns the set of locations in which the tag may be used.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ sealed interface OfConstant extends AnnotationValue {
* {@return the constant pool entry backing this constant element}
*
* @apiNote
* Different types of constant values may share the same type of entry.
* Different types of constant values may share the same type of entry
* because they have the same {@linkplain TypeKind##computational-type
* computational type}.
* For example, {@link OfInt} and {@link OfChar} are both
* backed by {@link IntegerEntry}. Use {@link #resolvedValue
* resolvedValue()} for a value of accurate type.
Expand Down
Loading

0 comments on commit f686716

Please sign in to comment.