mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 08:45:34 +07:00
change signature from usage: ignore types of poly expressions if they are not assignable (IDEA-156521)
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change 1st parameter of method 'foo' from 'ArrayList<String>' to 'HashSet<E>'" "false"
|
||||
// "<html> Change signature of foo(<s>ArrayList<String></s> <b>HashSet<E></b>)</html>" "false"
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "<html> Change signature of foo(<s>boolean</s> <b>HashSet<E></b>)</html>" "false"
|
||||
import java.util.*;
|
||||
class IntentionIssue {
|
||||
void foo(boolean b) {}
|
||||
void foo(ArrayList<String> lst) {}
|
||||
|
||||
void bar() {
|
||||
foo(new Hash<caret>Set<>());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user