Source:
<code>static private void processOutcomeJson(JSONObject outcomeJson, InfluenceParams influenceParams) { if (outcomeJson.has(V2_PARAM)) <START> influenceParams.v2Enabled = outcomeJson.optBoolean(V2_PARAM);; <END> if (outcomeJson.has(DIRECT_PARAM)) { JSONObject direct = outcomeJson.optJSONObject(DIRECT_PARAM); influenceParams.directEnabled = direct.optBoolean(ENABLED_PARAM); } if (outcomeJson.has(INDIRECT_PARAM)) { JSONObject indirect = outcomeJson.optJSONObject(INDIRECT_PARAM); influenceParams.indirectEnabled = indirect.optBoolean(ENABLED_PARAM); if (indirect.has(NOTIFICATION_ATTRIBUTION_PARAM)) { JSONObject indirectNotificationAttribution = indirect.optJSONObject(NOTIFICATION_ATTRIBUTION_PARAM); influenceParams.indirectNotificationAttributionWindow = indirectNotificationAttribution.optInt("minutes_since_displayed", DEFAULT_INDIRECT_ATTRIBUTION_WINDOW); influenceParams.notificationLimit = indirectNotificationAttribution.optInt("limit", DEFAULT_NOTIFICATION_LIMIT); } if (indirect.has(IAM_ATTRIBUTION_PARAM)) { JSONObject indirectIAMAttribution = indirect.optJSONObject(IAM_ATTRIBUTION_PARAM); influenceParams.indirectIAMAttributionWindow = indirectIAMAttribution.optInt("minutes_since_displayed", DEFAULT_INDIRECT_ATTRIBUTION_WINDOW); influenceParams.iamLimit = indirectIAMAttribution.optInt("limit", DEFAULT_NOTIFICATION_LIMIT); } } if (outcomeJson.has(UNATTRIBUTED_PARAM)) { JSONObject unattributed = outcomeJson.optJSONObject(UNATTRIBUTED_PARAM); influenceParams.unattributedEnabled = unattributed.optBoolean(ENABLED_PARAM); } }</code><technical_language>nit, remove extra ;</technical_language>

Target:
static private void processOutcomeJson(JSONObject outcomeJson, InfluenceParams influenceParams) { if (outcomeJson.has(OUTCOMES_V2_SERVICE_PARAM)) influenceParams.outcomesV2ServiceEnabled = outcomeJson.optBoolean(OUTCOMES_V2_SERVICE_PARAM); if (outcomeJson.has(DIRECT_PARAM)) { JSONObject direct = outcomeJson.optJSONObject(DIRECT_PARAM); influenceParams.directEnabled = direct.optBoolean(ENABLED_PARAM); } if (outcomeJson.has(INDIRECT_PARAM)) { JSONObject indirect = outcomeJson.optJSONObject(INDIRECT_PARAM); influenceParams.indirectEnabled = indirect.optBoolean(ENABLED_PARAM); if (indirect.has(NOTIFICATION_ATTRIBUTION_PARAM)) { JSONObject indirectNotificationAttribution = indirect.optJSONObject(NOTIFICATION_ATTRIBUTION_PARAM); influenceParams.indirectNotificationAttributionWindow = indirectNotificationAttribution.optInt("minutes_since_displayed", DEFAULT_INDIRECT_ATTRIBUTION_WINDOW); influenceParams.notificationLimit = indirectNotificationAttribution.optInt("limit", DEFAULT_NOTIFICATION_LIMIT); } if (indirect.has(IAM_ATTRIBUTION_PARAM)) { JSONObject indirectIAMAttribution = indirect.optJSONObject(IAM_ATTRIBUTION_PARAM); influenceParams.indirectIAMAttributionWindow = indirectIAMAttribution.optInt("minutes_since_displayed", DEFAULT_INDIRECT_ATTRIBUTION_WINDOW); influenceParams.iamLimit = indirectIAMAttribution.optInt("limit", DEFAULT_NOTIFICATION_LIMIT); } } if (outcomeJson.has(UNATTRIBUTED_PARAM)) { JSONObject unattributed = outcomeJson.optJSONObject(UNATTRIBUTED_PARAM); influenceParams.unattributedEnabled = unattributed.optBoolean(ENABLED_PARAM); } }