Skip to content

Commit

Permalink
tuples: Fix vararg method name, Fix #520
Browse files Browse the repository at this point in the history
  • Loading branch information
minborg committed Nov 17, 2017
1 parent 8753573 commit 2406a56
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common-parent/common-all/pom.xml
Expand Up @@ -43,7 +43,7 @@
<function.version>1.0.4</function.version>
<jvm-version.version>1.0.0</jvm-version.version> <!-- Yeah, I know... -->
<json.version>1.0.3</json.version>
<tuple.version>1.0.6</tuple.version>
<tuple.version>1.0.7-SNAPSHOT</tuple.version>
<logger.version>1.0.4</logger.version>
<codegen.version>2.4.9</codegen.version>
<codegenxml.version>1.0.3</codegenxml.version>
Expand Down
Expand Up @@ -2417,7 +2417,7 @@ public static <T, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T1
*
* @see Tuple
*/
public static Tuple of(Object... elements) {
public static Tuple ofArray(Object... elements) {
return new TupleInfiniteDegreeImpl(elements);
}
}
Expand Up @@ -2489,7 +2489,7 @@ public static <T, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T1
*
* @see TupleOfNullables
*/
public static TupleOfNullables ofNullables(Object... elements) {
public static TupleOfNullables ofNullablesArray(Object... elements) {
return new TupleInfiniteDegreeOfNullablesImpl(elements);
}
}
Expand Up @@ -42,7 +42,7 @@ public void of() {
array[i] = random.nextInt();
}

final Tuple tuple = Tuples.of((Object[]) array);
final Tuple tuple = Tuples.ofArray((Object[]) array);
assertEquals(tuple.degree(), 100);

for (int i = 0; i < 100; i++) {
Expand Down

0 comments on commit 2406a56

Please sign in to comment.