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 {
|
} 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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue