Decompiler name shadowing resolution
https://github.com/JetBrains/intellij-community/pull/295
This commit is contained in:
committed by
Roman Shevchenko
parent
ee740aa056
commit
766fc1390d
@@ -99,7 +99,8 @@ public class ImportCollector {
|
||||
|
||||
if (existsDefaultClass ||
|
||||
(mapSimpleNames.containsKey(nshort) && !npackage.equals(mapSimpleNames.get(nshort)))) {
|
||||
return fullname;
|
||||
// don't return full name because if the class is a inner class, full name refers to the parent full name, not the child full name
|
||||
return retname == null ? fullname : (npackage + "." + retname);
|
||||
}
|
||||
else if (!mapSimpleNames.containsKey(nshort)) {
|
||||
mapSimpleNames.put(nshort, npackage);
|
||||
|
||||
Reference in New Issue
Block a user