I'm working on Netbeans and Netbeans has some auto generated object declaration for controllers and some variables. I kept getting the following warnings in the build time. Then I realized from my previous question that Since Java 7, DefaultListModel, JList, Set ... are generic types and need to be provided with their associated type. How come Netbeans didn't generate files to conform with Java7 expectations?! And how can I change code in the auto generated sections to meeet those new conditions?!
C:\Documents and Settings\...somefile.java:902: warning: [rawtypes] found raw type: JList
private javax.swing.JList jList_SystemDSNList;
missing type arguments for generic class JList<E>
where E is a type-variable:
E extends Object declared in class JList
For instance how can I change
private javax.swing.JList jList_DataSetList;
into this,
private javax.swing.JList<E> jList_DataSetList;
When this field is in blue and protected???!! I can change the variable name but it doesn't allow me to change the type!