@@ -216,16 +216,19 @@ private predicate typeArgumentContainsAux1(RefType s, RefType t, int n) {
216216 |
217217 exists ( RefType tUpperBound | tUpperBound = t .( Wildcard ) .getUpperBound ( ) .getType ( ) |
218218 // ? extends T <= ? extends S if T <: S
219- hasSubtypeStar0 ( s .( Wildcard ) .getUpperBound ( ) .getType ( ) , tUpperBound ) or
219+ hasSubtypeStar0 ( s .( Wildcard ) .getUpperBound ( ) .getType ( ) , tUpperBound )
220+ or
220221 // ? extends T <= ?
221222 s .( Wildcard ) .isUnconstrained ( )
222223 )
223224 or
224225 exists ( RefType tLowerBound | tLowerBound = t .( Wildcard ) .getLowerBound ( ) .getType ( ) |
225226 // ? super T <= ? super S if s <: T
226- hasSubtypeStar0 ( tLowerBound , s .( Wildcard ) .getLowerBound ( ) .getType ( ) ) or
227+ hasSubtypeStar0 ( tLowerBound , s .( Wildcard ) .getLowerBound ( ) .getType ( ) )
228+ or
227229 // ? super T <= ?
228- s .( Wildcard ) .isUnconstrained ( ) or
230+ s .( Wildcard ) .isUnconstrained ( )
231+ or
229232 // ? super T <= ? extends Object
230233 wildcardExtendsObject ( s )
231234 )
@@ -736,13 +739,15 @@ class NestedType extends RefType {
736739 }
737740
738741 override predicate isPublic ( ) {
739- super .isPublic ( ) or
742+ super .isPublic ( )
743+ or
740744 // JLS 9.5: A member type declaration in an interface is implicitly public and static
741745 exists ( Interface i | this = i .getAMember ( ) )
742746 }
743747
744748 override predicate isStrictfp ( ) {
745- super .isStrictfp ( ) or
749+ super .isStrictfp ( )
750+ or
746751 // JLS 8.1.1.3, JLS 9.1.1.2
747752 getEnclosingType ( ) .isStrictfp ( )
748753 }
@@ -762,11 +767,14 @@ class NestedType extends RefType {
762767 * section 8.9 (Enums) and section 9.5 (Member Type Declarations).
763768 */
764769 override predicate isStatic ( ) {
765- super .isStatic ( ) or
770+ super .isStatic ( )
771+ or
766772 // JLS 8.5.1: A member interface is implicitly static.
767- this instanceof Interface or
773+ this instanceof Interface
774+ or
768775 // JLS 8.9: A nested enum type is implicitly static.
769- this instanceof EnumType or
776+ this instanceof EnumType
777+ or
770778 // JLS 9.5: A member type declaration in an interface is implicitly public and static
771779 exists ( Interface i | this = i .getAMember ( ) )
772780 }
0 commit comments