Don't need to cast the result of an array clone.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4849 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2007-10-19 18:22:37 +00:00
parent 2f4439c64e
commit 66660bc490
@@ -193,7 +193,9 @@ public class GenUtil extends com.samskivert.util.GenUtil
Class<?> clazz = f.getType();
if (dsclazz.equals(clazz)) {
return "(" + name + " == null) ? null : " + name + ".typedClone()";
} else if (clazz.isArray() || dsclazz.isAssignableFrom(clazz)) {
} else if (clazz.isArray()) {
return "(" + name + " == null) ? null : " + name + ".clone()";
} else if (dsclazz.isAssignableFrom(clazz)) {
return "(" + name + " == null) ? null : " +
"(" + simpleName(f) + ")" + name + ".clone()";
} else {