dubbo-metadata-report-extensions/dubbo-metadata-rest/src/main/java/org/apache/dubbo/metadata/extension/rest/annotation/processing/jaxrs/DefaultValueParameterProcessor.java [53:79]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            RestMethodMetadata restMethodMetadata) {
        RequestMetadata requestMetadata = restMethodMetadata.getRequest();

        // process the request parameters
        setDefaultValue(requestMetadata.getParams(), defaultValue, annotationValue);
        // process the request headers
        setDefaultValue(requestMetadata.getHeaders(), defaultValue, annotationValue);
    }

    private void setDefaultValue(Map<String, List<String>> source, String placeholderValue, String defaultValue) {
        OUTTER:
        for (Map.Entry<String, List<String>> entry : source.entrySet()) {
            List<String> values = entry.getValue();
            int size = values.size();
            for (int i = 0; i < size; i++) {
                String value = values.get(i);
                if (placeholderValue.equals(value)) {
                    values.set(i, defaultValue);
                    break OUTTER;
                }
            }
        }
    }

    @Override
    public int getPriority() {
        return MIN_PRIORITY;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



dubbo-metadata-report-extensions/dubbo-metadata-rest/src/main/java/org/apache/dubbo/metadata/extension/rest/api/jaxrs/DefaultValueParameterProcessor.java [54:80]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            RestMethodMetadata restMethodMetadata) {
        RequestMetadata requestMetadata = restMethodMetadata.getRequest();

        // process the request parameters
        setDefaultValue(requestMetadata.getParams(), defaultValue, annotationValue);
        // process the request headers
        setDefaultValue(requestMetadata.getHeaders(), defaultValue, annotationValue);
    }

    private void setDefaultValue(Map<String, List<String>> source, String placeholderValue, String defaultValue) {
        OUTTER:
        for (Map.Entry<String, List<String>> entry : source.entrySet()) {
            List<String> values = entry.getValue();
            int size = values.size();
            for (int i = 0; i < size; i++) {
                String value = values.get(i);
                if (placeholderValue.equals(value)) {
                    values.set(i, defaultValue);
                    break OUTTER;
                }
            }
        }
    }

    @Override
    public int getPriority() {
        return MIN_PRIORITY;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



