light elements should not be simplified especially when they were not changed (EA-47908 - IOE: CheckUtil.checkWritable)

This commit is contained in:
Anna Kozlova
2015-03-19 16:38:53 +01:00
parent 0ce14391f5
commit e09ec985bf
3 changed files with 14 additions and 0 deletions

View File

@@ -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);
}
}

View File

@@ -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> {}

View File

@@ -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> {}