Remove unnecessary casts
This commit is contained in:
parent
c5996c52ea
commit
cb02290e3d
1 changed files with 3 additions and 3 deletions
|
@ -127,16 +127,16 @@ public final class TypeManager {
|
|||
} else {
|
||||
// its an prototype
|
||||
String name = null;
|
||||
name = ((Repository) list[i]).getShortName();
|
||||
name = list[i].getShortName();
|
||||
Prototype proto = getPrototype(name);
|
||||
|
||||
// if prototype doesn't exist, create it
|
||||
if (proto == null) {
|
||||
// create new prototype if type name is valid
|
||||
if (isValidTypeName(name))
|
||||
createPrototype(name, (Repository) list[i]);
|
||||
createPrototype(name, list[i]);
|
||||
} else {
|
||||
proto.addRepository((Repository) list[i]);
|
||||
proto.addRepository(list[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue