Skip to content

Commit

Permalink
fix java lang imports
Browse files Browse the repository at this point in the history
  • Loading branch information
SentryMan committed Dec 23, 2023
1 parent e145386 commit 926a01e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@ public String full() {

@Override
public Set<String> importTypes() {
return rawType.startsWith("java.lang.") && rawType.indexOf('.') > -1
? Set.of()
: Collections.singleton(rawType.replace("[]", ""));
return (rawType.startsWith("java.lang.") && Character.isLowerCase(rawType.charAt(10)))
|| rawType.indexOf('.') > -1
? Set.of()
: Collections.singleton(rawType.replace("[]", ""));
}

@Override
Expand Down

0 comments on commit 926a01e

Please sign in to comment.