Skip to content

Commit b598761

Browse files
committed
Convert Array and List to array
1 parent 24766ba commit b598761

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/src/main/java/fj/data/Array.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ public Object[] array() {
128128
return copyOf(a, a.length);
129129
}
130130

131+
@SuppressWarnings("unchecked")
131132
public A[] toJavaArray() {
132133
return (A[]) array();
133134
}

core/src/main/java/fj/data/List.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ public final Object[] toArrayObject() {
211211
return a;
212212
}
213213

214+
@SuppressWarnings("unchecked")
214215
public final A[] toJavaArray() {
215216
return (A[]) toArrayObject();
216217
}

0 commit comments

Comments
 (0)