Source:
private void buildRecognizeRequest(RequestBuilder requestBuilder, RecognizeOptions options) { if (options == null) { return; } if (options.wordConfidence() != null) { requestBuilder.query(WORD_CONFIDENCE, options.wordConfidence()); } if (options.continuous() != null) { requestBuilder.query(CONTINUOUS, options.continuous()); } if (options.smartFormatting() != null) { requestBuilder.query(SMART_FORMATTING, options.smartFormatting()); } if (options.speakerLabels() != null) { requestBuilder.query(SPEAKER_LABELS, options.speakerLabels()); } if (options.profanityFilter() != null) { requestBuilder.query(PROFANITY_FILTER, options.profanityFilter()); } if (options.maxAlternatives() != null) { requestBuilder.query(MAX_ALTERNATIVES, options.maxAlternatives()); } if (options.timestamps() != null) { requestBuilder.query(TIMESTAMPS, options.timestamps()); } if (options.inactivityTimeout() != null) { requestBuilder.query(INACTIVITY_TIMEOUT, options.inactivityTimeout()); } if (options.model() != null) { requestBuilder.query(MODEL, options.model()); } if (options.keywordsThreshold() != null) { requestBuilder.query(KEYWORDS_THRESHOLD, options.keywordsThreshold()); } if ((options.keywords() != null) && (options.keywords().length > 0)) { final String keywords = RequestUtils.join(options.keywords(), ","); requestBuilder.query(KEYWORDS, RequestUtils.encode(keywords)); } if (options.wordAlternativesThreshold() != null) { requestBuilder.query(WORD_ALTERNATIVES_THRESHOLD, options.wordAlternativesThreshold()); } if (options.customizationId() != null) { requestBuilder.query(CUSTOMIZATION_ID, options.customizationId()); } if (options.customizationWeight() != null) { requestBuilder.query(CUSTOMIZATION_WEIGHT, options.customizationWeight().toString()); } }

Target:
private void buildRecognizeRequest(RequestBuilder requestBuilder, RecognizeOptions options) { if (options == null) { return; } if (options.wordConfidence() != null) { requestBuilder.query(WORD_CONFIDENCE, options.wordConfidence()); } if (options.continuous() != null) { requestBuilder.query(CONTINUOUS, options.continuous()); } if (options.smartFormatting() != null) { requestBuilder.query(SMART_FORMATTING, options.smartFormatting()); } if (options.speakerLabels() != null) { requestBuilder.query(SPEAKER_LABELS, options.speakerLabels()); } if (options.profanityFilter() != null) { requestBuilder.query(PROFANITY_FILTER, options.profanityFilter()); } if (options.maxAlternatives() != null) { requestBuilder.query(MAX_ALTERNATIVES, options.maxAlternatives()); } if (options.timestamps() != null) { requestBuilder.query(TIMESTAMPS, options.timestamps()); } if (options.inactivityTimeout() != null) { requestBuilder.query(INACTIVITY_TIMEOUT, options.inactivityTimeout()); } if (options.model() != null) { requestBuilder.query(MODEL, options.model()); } if (options.keywordsThreshold() != null) { requestBuilder.query(KEYWORDS_THRESHOLD, options.keywordsThreshold()); } if ((options.keywords() != null) && (options.keywords().length > 0)) { final String keywords = RequestUtils.join(options.keywords(), ","); requestBuilder.query(KEYWORDS, RequestUtils.encode(keywords)); } if (options.wordAlternativesThreshold() != null) { requestBuilder.query(WORD_ALTERNATIVES_THRESHOLD, options.wordAlternativesThreshold()); } if (options.customizationId() != null) { requestBuilder.query(CUSTOMIZATION_ID, options.customizationId()); } if (options.customizationWeight() != null) { requestBuilder.query(CUSTOMIZATION_WEIGHT, options.customizationWeight()); } }