title: Unlikely argument type String for contains(Object) on a Collection<String[]>
body: <p>I'm getting the warning in Eclipse:</p>
  <blockquote>
  <p>Unlikely argument type <code>String</code> for <code>contains(Object)</code> on a <code>Collection&lt;String[]&gt;</code></p>
  </blockquote>
  <p>Is there a way to modify the code so as to not get this warning?</p>
  <pre><code>String[] findNames = {&quot;shares&quot;,&quot;ticker&quot;,&quot;avgCost&quot;,&quot;mktPrice&quot;,&quot;gnLs&quot;,&quot;totVal&quot;};    
  
  ArrayList&lt;String[]&gt; publicNames = new ArrayList&lt;String[]&gt;();        
  for(Field publicField : publicFields) {
      String[] name = new String[2];
      name[0] = publicField.getName();
      name[1] = publicField.getType().toString();
      publicNames.add(name);           
  } 
  
  for (int i = 0; i &lt; 6; i++) {           
      if(publicNames.contains(findNames[i])) {
          System.out.println(&quot;\n***** Warning: instance variable &quot; 
                             + findNames[i] 
                             + &quot; declared as \&quot;public\&quot; *****\n &quot;);               
      }           
  }
  </code></pre>