private static HttpOperation createPostRequest(HttpOperationClient httpoperationclient, CharSequence charsequence, HashMap hashmap, HttpOperationReader httpoperationreader, VineAPI vineapi) { charsequence = new HttpPost(charsequence.toString()); if (hashmap != null) { try { ObjectMapper objectmapper = new ObjectMapper(); hashmap = new StringEntity(objectmapper.writeValueAsString(objectmapper.valueToTree(hashmap)), "UTF-8"); hashmap.setContentType("application/json"); hashmap.setContentEncoding("UTF-8"); charsequence.setEntity(hashmap); } // Misplaced declaration of an exception variable catch (HashMap hashmap) { SLog.e("Failed to create Post Request.", hashmap); } } return new HttpOperation(httpoperationclient, charsequence, httpoperationreader, vineapi); }