Files
openide/plugins/kotlin/idea/tests/testData/shortenRefs/java/redundantGrandParentClassQualifier.dependency.java
Roman Golyshev 4b2b76ea0d KT-18538 Unwrap fake override in ShortenReferences
- Fake override prevents reference shortener from shortening of static
methods declared in the class bases when they are located not in
direct parent of the class (for example, in grand-
or grand-grand-parent)
- The completion uses descriptor with unwrapped fake override when it
performs the insertion. It leads to inserting the name of the base which
actually contains the static method instead of the direct parent class.
Now, when reference shortener compares unwrapped descriptors, this
problem should be fixed during insertion handling

Original commit: 2c12d26d281f43a6eb0b67c7154c42bc7f0120e7

GitOrigin-RevId: f990b3a2cded28a980436e37bf64d750698161c6
2020-06-03 18:56:01 +03:00

7 lines
155 B
Java

public class Container {
public static class GrandBase {
public static void foo() {}
}
public static class Base extends GrandBase {}
}