File tree Expand file tree Collapse file tree 2 files changed +7
-15
lines changed
src/Advisory/Documentation Expand file tree Collapse file tree 2 files changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -779,23 +779,15 @@ class NestedType extends RefType {
779779 getEnclosingType ( ) .isStrictfp ( )
780780 }
781781
782- /**
783- * Holds if this nested type is static.
784- *
785- * A nested type is static either if it is explicitly declared as such
786- * using the modifier `static`, or if it is implicitly static
787- * because one of the following holds:
788- *
789- * - it is a member type of an interface,
790- * - it is a member interface, or
791- * - it is a nested enum type.
792- *
793- * See JLS v8, section 8.5.1 (Static Member Type Declarations),
794- * section 8.9 (Enums) and section 9.5 (Member Type Declarations).
795- */
796782 override predicate isStatic ( ) {
797783 super .isStatic ( )
798784 or
785+ /*
786+ * Note: The following is most likely redundant because `isStatic()` of the superclass
787+ * holds for implicitly static types, but keep the special casing below for now to be
788+ * on the safe side
789+ */
790+
799791 // JLS 8.5.1: A member interface is implicitly static.
800792 this instanceof Interface
801793 or
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public <T> void parameterized(T parameter){ ... }
4444 *
4545 * @param <X> The type of the elements.
4646 */
47- class Generic <T > { ...}
47+ class Generic <T > { ... }
4848
4949/**
5050 * GOOD: A proper Javadoc comment.
You can’t perform that action at this time.
0 commit comments