reverting one of the changes from commit f81d1ac58d, because it caused the use of the FQN for classes defined within the same package

(cherry picked from commit ab4fd58e6c50b96de1ea2c1025b6353b082f50bd)
This commit is contained in:
Enrico Zeilmaker
2023-08-01 02:56:48 +02:00
committed by Jindra Petřík
parent ce30527e23
commit 68f5c62fd2

View File

@@ -260,10 +260,6 @@ public abstract class Trait implements Cloneable, Serializable {
DottedChain ipath = imports.get(i);
String name = ipath.getLast();
if (ipath.getWithoutLast().equals(ignorePackage)) { //do not check classes from same package, they are imported automatically
if (importnames.contains(name)) {
fullyQualifiedNames.add(DottedChain.parseWithSuffix(name));
}
imports.remove(i);
i--;
continue;