title: Java generic List parameter not possible?
body: <p>i have a simple method that takes a generic List parameter but for some reason my IDE(Eclipse) states how it cannot be resolved?</p>
  
  <p>Am i doing something wrong here </p>
  
  <pre><code>private OnClickListener removeFieldListener(final LinearLayout layout,
              List&lt;T&gt; viewList) {
  
          return new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  int indexToDelete = layout.indexOfChild(v);
  
              }
          };
      }
  </code></pre>