Merge pull request #6797 from Marcono1234/marcono1234/remove-overwritten-NestedType-isStatic-qldoc

Java: Remove overwritten `NestedType.isStatic()` QLDoc
This commit is contained in:
Anders Schack-Mulligen
2021-10-05 13:05:53 +02:00
committed by GitHub
2 changed files with 7 additions and 15 deletions

View File

@@ -779,23 +779,15 @@ class NestedType extends RefType {
getEnclosingType().isStrictfp()
}
/**
* Holds if this nested type is static.
*
* A nested type is static either if it is explicitly declared as such
* using the modifier `static`, or if it is implicitly static
* because one of the following holds:
*
* - it is a member type of an interface,
* - it is a member interface, or
* - it is a nested enum type.
*
* See JLS v8, section 8.5.1 (Static Member Type Declarations),
* section 8.9 (Enums) and section 9.5 (Member Type Declarations).
*/
override predicate isStatic() {
super.isStatic()
or
/*
* Note: The following is most likely redundant because `isStatic()` of the superclass
* holds for implicitly static types, but keep the special casing below for now to be
* on the safe side
*/
// JLS 8.5.1: A member interface is implicitly static.
this instanceof Interface
or

View File

@@ -44,7 +44,7 @@ public <T> void parameterized(T parameter){ ... }
*
* @param <X> The type of the elements.
*/
class Generic<T> { ...}
class Generic<T> { ... }
/**
* GOOD: A proper Javadoc comment.