< prev index next >

src/com/sun/javatest/exec/LogViewer.java

Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg

*** 976,986 **** private class CustomRenderer extends JComponent implements ListCellRenderer<Object> { public Component getListCellRendererComponent( ! JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { if (!(value instanceof JSeparator) && !(value instanceof JCheckBox)) { DefaultListCellRenderer defRend = new DefaultListCellRenderer(); return defRend.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); --- 976,986 ---- private class CustomRenderer extends JComponent implements ListCellRenderer<Object> { public Component getListCellRendererComponent( ! JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) { if (!(value instanceof JSeparator) && !(value instanceof JCheckBox)) { DefaultListCellRenderer defRend = new DefaultListCellRenderer(); return defRend.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
*** 1133,1143 **** public FilterComboBoxListener(LoggersTreeModel m) { model = m; } public void actionPerformed(ActionEvent e) { ! JComboBox cb = (JComboBox) e.getSource(); Object o = cb.getSelectedItem(); if (o instanceof FilterComboboxItem) { FilterComboboxItem fc = (FilterComboboxItem) o; DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot(); if (debug > 1 && fc.kind) { --- 1133,1143 ---- public FilterComboBoxListener(LoggersTreeModel m) { model = m; } public void actionPerformed(ActionEvent e) { ! JComboBox<?> cb = (JComboBox<?>) e.getSource(); Object o = cb.getSelectedItem(); if (o instanceof FilterComboboxItem) { FilterComboboxItem fc = (FilterComboboxItem) o; DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot(); if (debug > 1 && fc.kind) {
< prev index next >