ee/src/main/java/org/jboss/as/ee/component/interceptors/InterceptorClassDescription.java
public static InterceptorClassDescription merge(InterceptorClassDescription existing, InterceptorClassDescription override) {
        if (existing == null && override == null) {
            return EMPTY_INSTANCE;
        }
        if (override == null) {
            return existing;
        }
        if (existing == null) {
            return override;
        }
        final Builder builder = builder(existing);
        if (override.getAroundInvoke() != null) {
            builder.setAroundInvoke(override.getAroundInvoke());
        }
        if (override.getAroundTimeout() != null) {
            builder.setAroundTimeout(override.getAroundTimeout());
        }
        if (override.getAroundConstruct() != null) {
            builder.setAroundConstruct(override.getAroundConstruct());
        }
        if (override.getPostConstruct() != null) {
            builder.setPostConstruct(override.getPostConstruct());
        }
        if (override.getPreDestroy() != null) {
            builder.setPreDestroy(override.getPreDestroy());
        }
        if (override.getPrePassivate() != null) {
            builder.setPrePassivate(override.getPrePassivate());
        }
        if (override.getPostActivate() != null) {
            builder.setPostActivate(override.getPostActivate());
        }
        return builder.build();
    }
public static InterceptorClassDescription merge(InterceptorClassDescription existing, InterceptorClassDescription override) {
        if (existing == null && override == null) {
            return EMPTY_INSTANCE;
        }
        if (override == null) {
            return existing;
        }
        if (existing == null) {
            return override;
        }
        final Builder builder = builder(existing);
        if (override.getAroundInvoke() != null) {
            builder.setAroundInvoke(override.getAroundInvoke());
        }
        if (override.getAroundTimeout() != null) {
            builder.setAroundTimeout(override.getAroundTimeout());
        }
        if (override.getAroundConstruct() != null) {
            builder.setAroundConstruct(override.getAroundConstruct());
        }
        if (override.getPostConstruct() != null) {
            builder.setPostConstruct(override.getPostConstruct());
        }
        if (override.getPreDestroy() != null) {
            builder.setPreDestroy(override.getPreDestroy());
        }
        if (override.getPrePassivate() != null) {
            builder.setPrePassivate(override.getPrePassivate());
        }
        if (override.getPostActivate() != null) {
            builder.setPostActivate(override.getPostActivate());
        }
        return builder.build();
    }
public static InterceptorClassDescription merge ( InterceptorClassDescription existing , InterceptorClassDescription override ) { if ( existing == null && override == null ) { return EMPTY_INSTANCE ; } if ( override == null ) { return existing ; } if ( existing == null ) { return override ; } final Builder builder = builder ( existing ) ; if ( override . getAroundInvoke ( ) != null ) { builder . setAroundInvoke ( override . getAroundInvoke ( ) ) ; } if ( override . getAroundTimeout ( ) != null ) { builder . setAroundTimeout ( override . getAroundTimeout ( ) ) ; } if ( override . getAroundConstruct ( ) != null ) { builder . setAroundConstruct ( override . getAroundConstruct ( ) ) ; } if ( override . getPostConstruct ( ) != null ) { builder . setPostConstruct ( override . getPostConstruct ( ) ) ; } if ( override . getPreDestroy ( ) != null ) { builder . setPreDestroy ( override . getPreDestroy ( ) ) ; } if ( override . getPrePassivate ( ) != null ) { builder . setPrePassivate ( override . getPrePassivate ( ) ) ; } if ( override . getPostActivate ( ) != null ) { builder . setPostActivate ( override . getPostActivate ( ) ) ; } return builder . build ( ) ; }
Merges two descriptors, either of the parameters will be null.
<p/>
this method will never return null;

@param existing
@param override
@return
Merges two descriptors either of the parameters will be null . <p / > this method will never return null ;