honor vararg calls when inferring contracts (IDEA-148862)

This commit is contained in:
peter
2015-12-03 17:32:53 +01:00
parent 594b3f670b
commit 0ddd1243b9
6 changed files with 40 additions and 6 deletions
@@ -0,0 +1,8 @@
class Test {
private String wrap(final String wrapWith, final String token) {
return join(wrapWith, token, wrapWith);
}
@org.jetbrains.annotations.Contract("null->null; !null->!null")
native static <T> String join(T... elements);
}