We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9884723 commit 3f839dcCopy full SHA for 3f839dc
1 file changed
src/main/java/org/scijava/ops/OpUtils.java
@@ -191,7 +191,8 @@ public static double getPriority(final OpCandidate candidate) {
191
}
192
193
public static Type[] padTypes(final OpCandidate candidate, Type[] types) {
194
- return (Type[]) padArgs(candidate, false, (Object[])types);
+ final Object[] padded = padArgs(candidate, false, (Object[]) types);
195
+ return Arrays.copyOf(padded, padded.length, Type[].class);
196
197
198
public static Object[] padArgs(final OpCandidate candidate, final boolean secondary, Object... args) {
0 commit comments