Skip to content

Commit d33bf45

Browse files
committed
Add overloaded varArgsSignature methods to Test class.
1 parent 2c9cb2f commit d33bf45

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

test/Test.class

705 Bytes
Binary file not shown.

test/Test.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ public static String staticVarargs(Integer i, String... args) {
5353
}
5454
return result.toString();
5555
}
56-
56+
5757
public static String staticBigDecimalToString(java.math.BigDecimal bigDecimal) { return bigDecimal.toString(); }
58-
58+
5959
public static int staticChar(char ch) { return (int)ch; }
6060
public static short[] staticShortArray(Short[] arg) {
6161
short[] b = new short[arg.length];
@@ -163,4 +163,12 @@ public static enum StaticEnum {
163163
Value2
164164
}
165165
public static String staticEnumToString(StaticEnum e) { return e.toString(); }
166+
167+
public static String varArgsSignature(Object... args) { return "Object..."; }
168+
public static String varArgsSignature(Boolean... args) { return "Boolean..."; }
169+
public static String varArgsSignature(Double... args) { return "Double..."; }
170+
public static String varArgsSignature(Integer... args) { return "Integer..."; }
171+
public static String varArgsSignature(Long... args) { return "Long..."; }
172+
public static String varArgsSignature(Number... args) { return "Number..."; }
173+
public static String varArgsSignature(String... args) { return "String..."; }
166174
}

0 commit comments

Comments
 (0)