New J2K: do not merge methods if there are vararg parameters present

This commit is contained in:
Ilya Kirillov
2020-03-26 21:18:22 +03:00
parent 4a450ab624
commit 353e884c8f
4 changed files with 21 additions and 1 deletions
@@ -0,0 +1,8 @@
public final class Test {
public static void checkState(boolean condition, String message, Object... args) {
}
public static void checkState(boolean condition) {
checkState(condition, "condition not met");
}
}
@@ -0,0 +1,6 @@
object Test {
fun checkState(condition: Boolean, message: String?, vararg args: Any?) {}
fun checkState(condition: Boolean) {
checkState(condition, "condition not met")
}
}