Remove unnecessary casts

This commit is contained in:
hns 2005-03-24 18:20:57 +00:00
parent c5996c52ea
commit cb02290e3d

View file

@ -127,16 +127,16 @@ public final class TypeManager {
} else { } else {
// its an prototype // its an prototype
String name = null; String name = null;
name = ((Repository) list[i]).getShortName(); name = list[i].getShortName();
Prototype proto = getPrototype(name); Prototype proto = getPrototype(name);
// if prototype doesn't exist, create it // if prototype doesn't exist, create it
if (proto == null) { if (proto == null) {
// create new prototype if type name is valid // create new prototype if type name is valid
if (isValidTypeName(name)) if (isValidTypeName(name))
createPrototype(name, (Repository) list[i]); createPrototype(name, list[i]);
} else { } else {
proto.addRepository((Repository) list[i]); proto.addRepository(list[i]);
} }
} }
} }