mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 11:18:16 +07:00
[java] add cast fix when multiple arguments require fix simultaneously (IDEA-271993)
GitOrigin-RevId: 2f6dc7ed7341c851b56a80a9b6404678ac0da0b9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
612d647e64
commit
f803857dc1
@@ -0,0 +1,14 @@
|
||||
// "Cast 1st parameter to 'char'" "true"
|
||||
class a {
|
||||
private void test() {}
|
||||
private void test(int i) {}
|
||||
private void test(String s) {}
|
||||
private void test(Object o) {}
|
||||
private void test(char c,char f) {}
|
||||
private void test(int c, char f) {}
|
||||
|
||||
void f() {
|
||||
test((char) 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Cast 1st parameter to 'java.lang.Throwable'" "true"
|
||||
class a {
|
||||
void f(Throwable a, Throwable b) {}
|
||||
void g() {
|
||||
Exception e=null;
|
||||
Object o = null;
|
||||
f((Throwable) e,o);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Cast 1st parameter to 'char'" "false"
|
||||
// "Cast 1st parameter to 'char'" "true"
|
||||
class a {
|
||||
private void test() {}
|
||||
private void test(int i) {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Cast 1st parameter to 'java.lang.Throwable'" "false"
|
||||
// "Cast 1st parameter to 'java.lang.Throwable'" "true"
|
||||
class a {
|
||||
void f(Throwable a, Throwable b) {}
|
||||
void g() {
|
||||
|
||||
Reference in New Issue
Block a user