Handle arrays (potentially of nested types). Ray's got some crazy shit over in
PX land.
This commit is contained in:
@@ -462,6 +462,10 @@ public class GenRecordTask extends Task
|
||||
|
||||
protected static String getTypeName (Class<?> clazz)
|
||||
{
|
||||
if (clazz.isArray()) {
|
||||
Class<?> cclass = clazz.getComponentType();
|
||||
return (cclass.isPrimitive() ? cclass.getSimpleName() : getTypeName(cclass)) + "[]";
|
||||
} else {
|
||||
Class<?> nclass = clazz.isPrimitive() ? BOXES.get(clazz) : clazz;
|
||||
Class<?> eclass = nclass.getEnclosingClass();
|
||||
if (eclass != null) {
|
||||
@@ -470,6 +474,7 @@ public class GenRecordTask extends Task
|
||||
return nclass.getSimpleName();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** A list of filesets that contain tile images. */
|
||||
protected List<FileSet> _filesets = Lists.newArrayList();
|
||||
|
||||
Reference in New Issue
Block a user