GenericsUtil#simplifyExtendsFinalClass (IDEA-24201)

GitOrigin-RevId: 758c1e9c3be3c016093d84bf0617ef0b030161b1
This commit is contained in:
Tagir Valeev
2020-06-26 11:29:05 +07:00
committed by intellij-monorepo-bot
parent 14fa0849cd
commit 2d1a6a067b
4 changed files with 70 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
// "Create method 'getPreloadKeys'" "true"
import java.util.*;
class X {
void test() {
Set<String> keys = new HashSet<String>();
keys.addAll(getPreloadKeys());
}
private Collection<String> getPreloadKeys() {
return null;
}
}

View File

@@ -0,0 +1,9 @@
// "Create method 'getPreloadKeys'" "true"
import java.util.*;
class X {
void test() {
Set<String> keys = new HashSet<String>();
keys.addAll(<caret>getPreloadKeys());
}
}