Simplify Region.hasExtensionType
Dieser Commit ist enthalten in:
Ursprung
a56b399611
Commit
e661d2657e
@ -216,11 +216,14 @@ public class Region {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasExtensionType(RegionType regionType) {
|
public boolean hasExtensionType(RegionType regionType) {
|
||||||
|
if (!hasType(regionType)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
switch (regionType) {
|
switch (regionType) {
|
||||||
case BUILD:
|
case BUILD:
|
||||||
return prototype != null && prototype.getBuild() != null && prototype.getBuild().isExtensionRegistered();
|
return prototype.getBuild().isExtensionRegistered();
|
||||||
case TESTBLOCK:
|
case TESTBLOCK:
|
||||||
return prototype != null && prototype.getTestblock() != null && prototype.getTestblock().isExtensionRegistered();
|
return prototype.getTestblock().isExtensionRegistered();
|
||||||
default:
|
default:
|
||||||
case NORMAL:
|
case NORMAL:
|
||||||
return false;
|
return false;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren