mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-intentions] UnimplementInterfaceAction: do not try to remove synthetic methods
Fixes IDEA-354044 Error in Unimplement Interface when invoked on record GitOrigin-RevId: 9c07e03d1f86ded0aeea3bd0f373dfc263e72eb4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d0e4f5f297
commit
636172d7db
+1
-1
@@ -134,7 +134,7 @@ public class UnimplementInterfaceAction extends PsiUpdateModCommandAction<PsiEle
|
||||
for (PsiMethod psiMethod : psiMethods) {
|
||||
if (superMethods.contains(psiMethod)) continue;
|
||||
final PsiMethod impl = implementations.get(psiMethod);
|
||||
if (impl != null) impl.delete();
|
||||
if (impl != null && !(impl instanceof SyntheticElement)) impl.delete();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Unimplement" "true-preview"
|
||||
interface Iface {
|
||||
int value();
|
||||
}
|
||||
record R(int value) {}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Unimplement" "true-preview"
|
||||
interface Iface {
|
||||
int value();
|
||||
}
|
||||
record R(int value) implements Ifa<caret>ce {}
|
||||
Reference in New Issue
Block a user