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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user