Skip to content

Commit

Permalink
Don't import qualified inner classes on star import
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Feb 2, 2024
1 parent 405617a commit fd4e1e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/replaymod/gradle/remap/PsiMapper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ internal class PsiMapper(
var mapped = mapping?.fullDeobfuscatedName
val pkg = dollarName.substringBeforeLast(".")
mapped = mapped?.replace('/', '.')?.replace('$', '.')
if (resolved !is PsiPackage) {
if (resolved !is PsiPackage && expr.firstChild !is PsiJavaCodeReferenceElement) {
ambiguousImports[pkg]?.add(mapped ?: name)
}
if (mapped == name || mapped == null) return
Expand Down

0 comments on commit fd4e1e1

Please sign in to comment.