Skip to content
Snippets Groups Projects
Commit c23bb276 authored by nullsub's avatar nullsub
Browse files

throw RuntimeException when override is used

parent ffbe1f15
Branches sesac-exercise
No related tags found
No related merge requests found
...@@ -62,6 +62,7 @@ public class ConstraintRuleVisitor { ...@@ -62,6 +62,7 @@ public class ConstraintRuleVisitor {
} }
return null; return null;
} }
/** /**
* dispatch abstract rule * dispatch abstract rule
* *
......
...@@ -47,6 +47,9 @@ public class EditPolicyHandler { ...@@ -47,6 +47,9 @@ public class EditPolicyHandler {
for(editpolicymodel.Model model : models) { for(editpolicymodel.Model model : models) {
for(editpolicymodel.Policy policy : model.getPolicies()) { for(editpolicymodel.Policy policy : model.getPolicies()) {
if(featureRuleVisitor.checkRule(policy.getFeatureRule())) { if(featureRuleVisitor.checkRule(policy.getFeatureRule())) {
if(policy.getOverride()) {
throw new RuntimeException("Override is not supported");
}
activatedPolicies.add(policy); activatedPolicies.add(policy);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment