mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
light elements should not be simplified especially when they were not changed (EA-47908 - IOE: CheckUtil.checkWritable)
This commit is contained in:
+6
@@ -172,6 +172,12 @@ public class ExtendsListFix extends LocalQuickFixAndIntentionActionOnPsiElement
|
||||
}
|
||||
list = (PsiReferenceList) element.getParent();
|
||||
}
|
||||
|
||||
//nothing was changed
|
||||
if (!add && !alreadyExtends) {
|
||||
return list;
|
||||
}
|
||||
|
||||
return (PsiReferenceList)JavaCodeStyleManager.getInstance(extendsList.getProject()).shortenClassReferences(list);
|
||||
}
|
||||
}
|
||||
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Make 'K' implement 'java.lang.Runnable'" "true"
|
||||
|
||||
interface RemoteStore<K extends Runnable, V>{}
|
||||
class BackedRemoteStore<K extends Runnable, V> implements RemoteStore<K, V> {}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Make 'K' implement 'java.lang.Runnable'" "true"
|
||||
|
||||
interface RemoteStore<K extends Runnable, V>{}
|
||||
class BackedRemoteStore<K, V> implements RemoteStore<<caret>K, V> {}
|
||||
Reference in New Issue
Block a user