|
@@ -51,9 +51,9 @@ public class CertificateChainPanel extends JPanel {
|
51
|
51
|
/** Icon manager. */
|
52
|
52
|
private final IconManager iconManager;
|
53
|
53
|
/** Chain list. */
|
54
|
|
- private JList list;
|
|
54
|
+ private JList<CertificateChainEntry> list;
|
55
|
55
|
/** List model. */
|
56
|
|
- private DefaultListModel model;
|
|
56
|
+ private DefaultListModel<CertificateChainEntry> model;
|
57
|
57
|
|
58
|
58
|
/**
|
59
|
59
|
* Creates a new certificate chain panel.
|
|
@@ -67,8 +67,8 @@ public class CertificateChainPanel extends JPanel {
|
67
|
67
|
}
|
68
|
68
|
|
69
|
69
|
private void initComponents() {
|
70
|
|
- model = new DefaultListModel();
|
71
|
|
- list = new JList(model);
|
|
70
|
+ model = new DefaultListModel<>();
|
|
71
|
+ list = new JList<>(model);
|
72
|
72
|
list.setCellRenderer(new CertificateChainEntryCellRenderer(iconManager,
|
73
|
73
|
list.getCellRenderer()));
|
74
|
74
|
list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
|
|
@@ -110,7 +110,7 @@ public class CertificateChainPanel extends JPanel {
|
110
|
110
|
* @return Name of specified index
|
111
|
111
|
*/
|
112
|
112
|
public String getName(final int index) {
|
113
|
|
- return ((CertificateChainEntry) model.get(index)).getName();
|
|
113
|
+ return model.get(index).getName();
|
114
|
114
|
}
|
115
|
115
|
|
116
|
116
|
/**
|