WildCard for Object<String> in Java6
问题 Please how to correct casting and remove warning [unchecked] unchecked cast required: T found: java.lang.Object from SSCCE import java.awt.*; import javax.swing.*; public class JComboBoxWithWildCard { private JDialog dlg = new JDialog(); private final Icon errorIcon = UIManager.getIcon("OptionPane.errorIcon"); public JComboBoxWithWildCard() { JComboBox comboWithCustomRenderer = new FlexiComboBox<String>( "1 one", "2 two", "3 three", "4 four", "5 five", "6 six", "7 seven", "8 eight", "9 nine",