create from usage: don't go through polyadic to deep (IDEA-244730)

GitOrigin-RevId: f7ab010a75203486f0c967ae5ba7c69db81ad812
This commit is contained in:
Anna Kozlova
2020-07-10 10:24:33 +02:00
committed by intellij-monorepo-bot
parent 2a56ad5b11
commit 4bb02e9e68
3 changed files with 23 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
// "Create method 'test'" "true"
public class Test {
void test(boolean b, Object obj) {
if (b || test() == obj) {
// do smth
}
}
private Object test() {
return null;
}
}

View File

@@ -0,0 +1,8 @@
// "Create method 'test'" "true"
public class Test {
void test(boolean b, Object obj) {
if (b || te<caret>st() == obj) {
// do smth
}
}
}