title: unchecked call to add(E) as a member of the raw type ArrayList and HashMap
body: <p>I have the following function that uses org.json.simple to create JSON object.</p>
  
  <pre><code>public JSONObject createJSONRequest() {
      // /* Create JSON Objects */
      JSONObject jsonObject = new JSONObject();
      Map&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
  
      map.put(ACCESS_TOKEN_KEY, mAccessToken);            
      map.put(SESSION_ID_KEY, mSessionId);
      map.put(SNAPZ_ID_KEY, mSnapzId);
      map.put(EMAIL_KEY, mEmail);
      map.put(EMAIL_PWD_KEY, mEmailPwd);
  
      JSONArray list = new JSONArray();
      list.add(map);
      jsonObject.put("parameters", list);
      jsonObject.put("function", "verifyEmail");
  
      return jsonObject;
  }
  </code></pre>
  
  <p>However, I keep getting this warning when I use lint checker.</p>
  
  <pre><code>[unchecked] unchecked call to add(E) as a member of the raw type ArrayList
          list.add(map);
                  ^
  where E is a type-variable: E extends Object declared in class ArrayList
  
   warning: [unchecked] unchecked call to put(K,V) as a member of the raw type HashMap
          jsonObject.put("parameters", list);
                        ^
  where K,V are type-variables:
      K extends Object declared in class HashMap
      V extends Object declared in class HashMap
  
  warning: [unchecked] unchecked call to put(K,V) as a member of the raw type HashMap
          jsonObject.put("function", "verifyEmail");
  </code></pre>
  
  <p>I have tried to use the generic type. HashMap uses generics, but the other objects <code>JSONObject</code> <code>JSONArray</code> don't.</p>
  
  <p>Many thanks for any suggestions,</p>