system/src/sc/lang/java/ModelUtil.java
public static Object[] listToTypes(List<?> list) {
      if (list == null)
         return null;

      Object[] types = new Object[list.size()];
      for (int i = 0; i < types.length; i++) {
         ITypedObject type = (ITypedObject)list.get(i);
         types[i] = type.getTypeDeclaration();
      }
      return types;
   }
// Should take a list of ITypedObject as the parameter type
Should take a list of ITypedObject as the parameter type
Should take a list of ITypedObject as the parameter type
public static Object[] listToTypes(List<?> list) {
      if (list == null)
         return null;
      Object[] types = new Object[list.size()];
      for (int i = 0; i < types.length; i++) {
         ITypedObject type = (ITypedObject)list.get(i);
         types[i] = type.getTypeDeclaration();
      }
      return types;
   }
public static Object [ ] listToTypes ( List < ? > list ) { if ( list == null ) return null ; Object [ ] types = new Object [ list . size ( ) ] ; for ( int i = 0 ; i < types . length ; i ++ ) { ITypedObject type = ( ITypedObject ) list . get ( i ) ; types [ i ] = type . getTypeDeclaration ( ) ; } return types ; }
Should take a list of ITypedObject as the parameter type
Should take a list of ITypedObject as the parameter type