src/main/java/application/rest/v1/configmaps/ActionConfigMapBuilder.java
// This method detects and ignores duplicate entries in the data to be merged.
This method detects and ignores duplicate entries in the data to be merged.
This method detects and ignores duplicate entries in the data to be merged .
public void merge(final JsonObject otherMap) {
        final JsonElement data = otherMap.get(DATA_PROPERTY_NAME);
        if (data != null && data.isJsonObject()) {
            final JsonObject dataObject = data.getAsJsonObject();
            mergeActions(dataObject, URL_ACTIONS_PROPERTY_NAME, urlActionNames);
            mergeActions(dataObject, CMD_ACTIONS_PROPERTY_NAME, cmdActionNames);
            mergeActions(dataObject, FUNCTION_ACTIONS_PROPERTY_NAME, functionActionNames);
            mergeMaps(dataObject, INPUTS_PROPERTY_NAME);
            mergeMaps(dataObject, SNIPPETS_PROPERTY_NAME);
            mergeMaps(dataObject, VARIABLES_PROPERTY_NAME);
        }
    }
public void merge ( final JsonObject otherMap ) { final JsonElement data = otherMap . get ( DATA_PROPERTY_NAME ) ; if ( data != null && data . isJsonObject ( ) ) { final JsonObject dataObject = data . getAsJsonObject ( ) ; mergeActions ( dataObject , URL_ACTIONS_PROPERTY_NAME , urlActionNames ) ; mergeActions ( dataObject , CMD_ACTIONS_PROPERTY_NAME , cmdActionNames ) ; mergeActions ( dataObject , FUNCTION_ACTIONS_PROPERTY_NAME , functionActionNames ) ; mergeMaps ( dataObject , INPUTS_PROPERTY_NAME ) ; mergeMaps ( dataObject , SNIPPETS_PROPERTY_NAME ) ; mergeMaps ( dataObject , VARIABLES_PROPERTY_NAME ) ; } }
This method detects and ignores duplicate entries in the data to be merged.
This method detects and ignores duplicate entries in the data to be merged .