You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Object[] inherits Object, it means that Tuples.of(Object) has the same signature as Tuples.of(Object[]). This causes problems since a method that returns a single Object can't be used with Tuple.of() without it wrapping the result in an array of dimension 1.
Example:
Objectfoo() {
return ...;
}
...
Tuplet = Tuples.of(foo()); // This will resolve to Tuples.of(Object[]), not Tuples.of(Object).
The text was updated successfully, but these errors were encountered:
Since
Object[]
inheritsObject
, it means thatTuples.of(Object)
has the same signature asTuples.of(Object[])
. This causes problems since a method that returns a singleObject
can't be used withTuple.of()
without it wrapping the result in an array of dimension 1.Example:
The text was updated successfully, but these errors were encountered: