File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
src/java.base/share/classes/java/lang Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -779,10 +779,9 @@ public boolean isAnnotation() {
779
779
}
780
780
781
781
/**
782
- * Returns {@code true} if and only if this class has the synthetic modifier
783
- * bit set.
782
+ *{@return {@code true} if and only if this class has the synthetic modifier
783
+ * bit set}
784
784
*
785
- * @return {@code true} if and only if this class has the synthetic modifier bit set
786
785
* @jls 13.1 The Form of a Binary
787
786
* @jvms 4.1 The {@code ClassFile} Structure
788
787
* @since 1.5
@@ -1620,12 +1619,15 @@ public Class<?> getEnclosingClass() throws SecurityException {
1620
1619
1621
1620
/**
1622
1621
* Returns the simple name of the underlying class as given in the
1623
- * source code. Returns an empty string if the underlying class is
1624
- * anonymous.
1622
+ * source code. An empty string is returned if the underlying class is
1623
+ * {@linkplain #isAnonymousClass() anonymous}.
1624
+ * A {@linkplain #isSynthetic() synthetic class}, one not present
1625
+ * in source code, can have a non-empty name including special
1626
+ * characters, such as "{@code $}".
1625
1627
*
1626
- * <p>The simple name of an array is the simple name of the
1628
+ * <p>The simple name of an {@linkplain isArray() array class} is the simple name of the
1627
1629
* component type with "[]" appended. In particular the simple
1628
- * name of an array whose component type is anonymous is "[]".
1630
+ * name of an array class whose component type is anonymous is "[]".
1629
1631
*
1630
1632
* @return the simple name of the underlying class
1631
1633
* @since 1.5
You can’t perform that action at this time.
0 commit comments