Source:
private static void validateAttributes ( com.android.manifmerger.XmlElement xmlElement , com.android.manifmerger.ActionRecorder recorder , com.android.manifmerger.MergingReport.Builder mergingReport ) { java.util.Collection < java.util.Map.Entry < com.android.manifmerger.XmlNode.NodeName , com.android.manifmerger.AttributeOperationType > > attributeOperations = xmlElement.getAttributeOperations ( ) ; for ( java.util.Map.Entry < com.android.manifmerger.XmlNode.NodeName , com.android.manifmerger.AttributeOperationType > attributeOperation : attributeOperations ) { switch ( attributeOperation.getValue ( ) ) { case REMOVE : if ( ! ( com.android.manifmerger.PostValidator.isAttributeOperationPresent ( xmlElement , attributeOperation , recorder , ActionType.REJECTED ) ) ) { mergingReport.addWarning ( java.lang.String.format ( ( "%1$s@%2$s was tagged at %3$s:%4$d to remove other" + " declarations but no other declaration present" ) , xmlElement.getId ( ) , attributeOperation.getKey ( ) , xmlElement.getDocument ( ) . getSourceLocation ( ) . print ( true ) , xmlElement.getPosition ( ) . getLine ( ) ) ) ; } break ; case REPLACE : if ( ! ( com.android.manifmerger.PostValidator.isAttributeOperationPresent ( xmlElement , attributeOperation , recorder , ActionType.REJECTED ) ) ) { mergingReport.addWarning ( java.lang.String.format ( ( "%1$s@%2$s was tagged at %3$s:%4$d to replace other" + " declarations but no other declaration present" ) , xmlElement.getId ( ) , attributeOperation.getKey ( ) , xmlElement.getDocument ( ) . getSourceLocation ( ) . print ( true ) , xmlElement.getPosition ( ) . getLine ( ) ) ) ; } break ; } } }

Target:
private static void validateAttributes ( com.android.manifmerger.XmlElement xmlElement , com.android.manifmerger.Actions actions , com.android.manifmerger.MergingReport.Builder mergingReport ) { java.util.Collection < java.util.Map.Entry < com.android.manifmerger.XmlNode.NodeName , com.android.manifmerger.AttributeOperationType > > attributeOperations = xmlElement.getAttributeOperations ( ) ; for ( java.util.Map.Entry < com.android.manifmerger.XmlNode.NodeName , com.android.manifmerger.AttributeOperationType > attributeOperation : attributeOperations ) { switch ( attributeOperation.getValue ( ) ) { case REMOVE : if ( ! ( com.android.manifmerger.PostValidator.isAttributeOperationPresent ( xmlElement , attributeOperation , actions , ActionType.REJECTED ) ) ) { mergingReport.addWarning ( java.lang.String.format ( ( "%1$s@%2$s was tagged at %3$s:%4$d to remove other" + " declarations but no other declaration present" ) , xmlElement.getId ( ) , attributeOperation.getKey ( ) , xmlElement.getDocument ( ) . getSourceLocation ( ) . print ( true ) , xmlElement.getPosition ( ) . getLine ( ) ) ) ; } break ; case REPLACE : if ( ! ( com.android.manifmerger.PostValidator.isAttributeOperationPresent ( xmlElement , attributeOperation , actions , ActionType.REJECTED ) ) ) { mergingReport.addWarning ( java.lang.String.format ( ( "%1$s@%2$s was tagged at %3$s:%4$d to replace other" + " declarations but no other declaration present" ) , xmlElement.getId ( ) , attributeOperation.getKey ( ) , xmlElement.getDocument ( ) . getSourceLocation ( ) . print ( true ) , xmlElement.getPosition ( ) . getLine ( ) ) ) ; } break ; } } }