fix validation logic of zoneGroupConfiguration after testing
This commit is contained in:
parent
ad0b6017e6
commit
c678634344
@ -53,6 +53,9 @@ public class ZoneGroupConfiguration {
|
|||||||
if (reportStrategy == null) {
|
if (reportStrategy == null) {
|
||||||
throw new IllegalArgumentException("Report strategy must be specified for '" + name + "' zone group!");
|
throw new IllegalArgumentException("Report strategy must be specified for '" + name + "' zone group!");
|
||||||
}
|
}
|
||||||
|
if (hasDynamicSource()) {
|
||||||
|
refDynamicSourceConfiguration.validate();
|
||||||
|
}
|
||||||
if (!createRelationsWithMatchedZones) {
|
if (!createRelationsWithMatchedZones) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -62,9 +65,6 @@ public class ZoneGroupConfiguration {
|
|||||||
if (direction == null) {
|
if (direction == null) {
|
||||||
throw new IllegalArgumentException("Relation direction must be specified for '" + name + "' zone group!");
|
throw new IllegalArgumentException("Relation direction must be specified for '" + name + "' zone group!");
|
||||||
}
|
}
|
||||||
if (hasDynamicSource()) {
|
|
||||||
refDynamicSourceConfiguration.validate();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasDynamicSource() {
|
public boolean hasDynamicSource() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user