mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 12:17:12 +07:00
change signature from usage: ensure not substitute parameter type from call site (IDEA-146284)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// "Remove 2nd parameter from method 'update'" "true"
|
||||
class Test<T> {
|
||||
|
||||
void update(T a) {}
|
||||
|
||||
public static void main(String[] args) {
|
||||
Test<String> instance = new Test<>();
|
||||
instance.update("string1");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Remove 2nd parameter from method 'update'" "true"
|
||||
class Test<T> {
|
||||
|
||||
void update(T a, String b) {}
|
||||
|
||||
public static void main(String[] args) {
|
||||
Test<String> instance = new Test<>();
|
||||
instance.update("string<caret>1");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user