title: Wrong key being set with HashMap in Intellij Idea
body: <p>Here is my function:</p>
  
  <pre class="lang-java prettyprint-override"><code>public String uploadImage(URL image,String message) throws Exception{
      HashMap&lt;String,String&gt; paramArgs=new HashMap&lt;String,String&gt;();
      paramArgs.put("fbImgPostURL","https://graph.facebook.com/me/photos");
      paramArgs.put("accessToken",accessGrant.getKey());
      paramArgs.put("imageURL",image.toString());
      paramArgs.put("message",message);
      return HttpPictureUpload.uploadImageViaHttpPost(paramArgs);
  }
  </code></pre>
  
  <p>and while i debug it from intelliJ debugger, strangely in the line</p>
  
  <pre><code>paramArgs.put("accessToken",accessGrant.getKey());
  </code></pre>
  
  <p>Clearly the key is <code>accessToken</code>. But the debugger shows it as follows:
  <img src="https://i.stack.imgur.com/WULuH.jpg" alt="ScreenShot"></p>
  
  <p><code>access_token</code>=<code>CAACKan8suD0BAKUZAyxLinmXw2PZAkmkhIhVZCojG1sE2QsW60CfQjZAJWyMbqc1Lxy1JmVmSyAU4eHOGSkHhqJSQE6tcORuXAkyFbok7WGyysgJYZC6QF6KZBPRwDwbPCE6JUJgKIGyXzZCfzVgnjHHuoZBLZBt2xXgZD</code></p>
  
  <p>So clearly the problem is that I am setting a different key name but in hash map, a different key name is being set which is actually passed to</p>
  
  <pre><code>HttpPictureUpload.uploadImageViaHttpPost(paramArgs);
  </code></pre>
  
  <p>Anyone here could guess that what is going on?</p>
  
  <p><strong>Edit:</strong>
  Here is my <code>uploadImageViaHttpPost()</code> function:</p>
  
  <pre><code>public static String uploadImageViaHttpPost(HashMap&lt;String,String&gt; keyParams){
  
      String in="Image Uploaded Successfully!!";
      try {
          HttpClient client = new HttpClient();
          PostMethod method = new PostMethod(keyParams.get("fbImgPostURL"));
  
          //Add any parameter if u want to send it with Post req.
          method.addParameter("accessToken", keyParams.get("accessToken"));
          method.addParameter("url",keyParams.get("imageURL"));
          method.addParameter("message",keyParams.get("message"));
  
          int statusCode = client.executeMethod(method);
  
          if (statusCode != -1) {
              in = method.getResponseBodyAsString();
          }
  
          System.out.println(in);
  
      } catch (Exception e) {
          e.printStackTrace();
      }
      return in;
  }
  </code></pre>