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