legacy/messaging/src/main/java/org/jboss/as/messaging/MessagingTransformers.java
private static void rejectDefinedAttributeWithDefaultValue(ResourceTransformationDescriptionBuilder builder, AttributeDefinition... attrs) {
        for (AttributeDefinition attr : attrs) {
            builder.getAttributeBuilder()
                    .setDiscard(new DiscardAttributeValueChecker(attr.getDefaultValue()), attr)
                    .addRejectCheck(DEFINED, attr);
        }
    }
private static void rejectDefinedAttributeWithDefaultValue(ResourceTransformationDescriptionBuilder builder, AttributeDefinition... attrs) {
        for (AttributeDefinition attr : attrs) {
            builder.getAttributeBuilder()
                    .setDiscard(new DiscardAttributeValueChecker(attr.getDefaultValue()), attr)
                    .addRejectCheck(DEFINED, attr);
        }
    }
private static void rejectDefinedAttributeWithDefaultValue ( ResourceTransformationDescriptionBuilder builder , AttributeDefinition ... attrs ) { for ( AttributeDefinition attr : attrs ) { builder . getAttributeBuilder ( ) . setDiscard ( new DiscardAttributeValueChecker ( attr . getDefaultValue ( ) ) , attr ) . addRejectCheck ( DEFINED , attr ) ; } }
Reject the attributes if they are defined or discard them if they are undefined or set to their default value.
Reject the attributes if they are defined or discard them if they are undefined or set to their default value .