Skip to content

Commit

Permalink
#2196 Minor code style improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
homedirectory committed Mar 15, 2024
1 parent d47ba03 commit bcfa992
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public Object apply(final Object value) {
if (value == null) {
return null;
} else if (value instanceof Collection || value.getClass().isArray()) {
final Stream<Object> original = value instanceof Collection
? ((Collection<Object>) value).stream()
final Stream<?> original = value instanceof Collection<?> collection
? collection.stream()
: Arrays.stream((Object[]) value);
return apply(original).toList();
} else {
Expand Down

0 comments on commit bcfa992

Please sign in to comment.