File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/main/java/org/scijava/script Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 6868import org .scijava .util .ClassUtils ;
6969import org .scijava .util .ColorRGB ;
7070import org .scijava .util .ColorRGBA ;
71+ import org .scijava .util .Types ;
7172
7273/**
7374 * Default service for working with scripts.
@@ -204,7 +205,7 @@ public synchronized Class<?> lookupClass(final String alias)
204205 final Class <?> type = aliasMap ().get (componentAlias );
205206 if (type != null ) {
206207 final int arrayDim = (alias .length () - componentAlias .length ()) / 2 ;
207- return makeArrayType (type , arrayDim );
208+ return Types . array (type , arrayDim );
208209 }
209210
210211 try {
@@ -405,10 +406,4 @@ private String stripArrayNotation(final String alias) {
405406 if (!alias .endsWith ("[]" )) return alias ;
406407 return stripArrayNotation (alias .substring (0 , alias .length () - 2 ));
407408 }
408-
409- private Class <?> makeArrayType (final Class <?> type , final int arrayDim ) {
410- if (arrayDim <= 0 ) return type ;
411- return makeArrayType (ClassUtils .getArrayClass (type ), arrayDim - 1 );
412- }
413-
414409}
You can’t perform that action at this time.
0 commit comments