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 {
779
779
getEnclosingType ( ) .isStrictfp ( )
780
780
}
781
781
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
- */
796
782
override predicate isStatic ( ) {
797
783
super .isStatic ( )
798
784
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
+
799
791
// JLS 8.5.1: A member interface is implicitly static.
800
792
this instanceof Interface
801
793
or
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public <T> void parameterized(T parameter){ ... }
44
44
*
45
45
* @param <X> The type of the elements.
46
46
*/
47
- class Generic <T > { ...}
47
+ class Generic <T > { ... }
48
48
49
49
/**
50
50
* GOOD: A proper Javadoc comment.
You can’t perform that action at this time.
0 commit comments