-
Enhancement
-
Resolution: Done
-
Major
-
11.0.0.Beta7
-
None
A common transformer pattern for newly added attributes is to discard the attribute if the value is the default value, and reject if otherwise defined.
e.g.
builder.getAttributeBuilder()
.setDiscard(new DiscardAttributeChecker.DiscardAttributeValueChecker(ATTRIBUTE.getDefaultValue()), ATTRIBUTE);
.addRejectCheck(RejectAttributeChecker.DEFINED)
;
This common implementation can be implemented more concisely, such that a single instance can be used for any attribute.
- is cloned by
-
WFLY-13015 Consolidate common instances of DiscardAttributeChecker that discard an attribute set to the default value
- Closed