Skip to content

Commit 2965a1f

Browse files
committed
Use Thread$State as an inner-class example
Map<>$Entry currently has odd generic notation that may be about to change.
1 parent 5158e79 commit 2965a1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/ql/src/semmle/code/java/Type.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ class RefType extends Type, Annotatable, Modifiable, @reftype {
542542
*
543543
* For nested types the name of the nested type is prefixed with a `$` and appended
544544
* to the name of the enclosing type, which might be a nested type as well. For example:
545-
* `java.util.Map$Entry`.
545+
* `java.lang.Thread$State`.
546546
*/
547547
string getQualifiedName() {
548548
exists(string pkgName | pkgName = getPackage().getName() |
@@ -814,7 +814,7 @@ class MemberType extends NestedType, Member {
814814
*
815815
* The qualified name consists of the package name, a `.`, the name of the declaring
816816
* type (which might be a nested or member type as well), followed by a `$` and the
817-
* name of this member type. For example: `java.util.Map$Entry`.
817+
* name of this member type. For example: `java.lang.Thread$State`.
818818
*/
819819
override string getQualifiedName() { result = NestedType.super.getQualifiedName() }
820820
}

0 commit comments

Comments
 (0)