You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(unusualStaticImport && !Modifier.isStatic(foundClass.knownClass().getModifiers())) // static imports are allowed for regular class too but only when the inner classes are all static
83
-
) {
84
-
foundClass = null;
79
+
ClassNamedupperClass = type.enclosing();
80
+
while (true) {
81
+
if (foundClass == null) {
85
82
break;
86
83
}
87
-
foundClass = foundClass.enclosing();
84
+
85
+
if (unusualStaticImport && !Modifier.isStatic(foundClass.knownClass().getModifiers())) {
86
+
// static imports are allowed for regular class too but only when the inner classes are all static
87
+
returnOptional.empty();
88
+
}
89
+
90
+
if (imports.contains(foundClass.canonicalName()) ||
0 commit comments