Nix another redundant cast.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4850 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2007-10-19 18:28:56 +00:00
parent 66660bc490
commit 27b95dd19a
@@ -130,8 +130,10 @@ public class GenUtil extends com.samskivert.util.GenUtil
return "((Float)" + name + ").floatValue()";
} else if (clazz == Double.TYPE) {
return "((Double)" + name + ").doubleValue()";
} else if (clazz.equals(Object.class)) {
return name; // no need to cast object
} else {
return "(" + simpleName(clazz, type) + ")" + name + "";
return "(" + simpleName(clazz, type) + ")" + name;
}
}