mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
light elements should not be simplified especially when they were not changed (EA-47908 - IOE: CheckUtil.checkWritable)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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> {}
|
||||
@@ -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