Suppress unchecked

This commit is contained in:
Jindra Petřík
2022-11-14 13:01:53 +01:00
parent 67a0575abc
commit 8d3d3eb62f

View File

@@ -119,6 +119,7 @@ class CharacterTagListCellRenderer extends DefaultListCellRenderer {
Component component = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
if (component instanceof JLabel) {
JLabel label = (JLabel) component;
@SuppressWarnings("unchecked")
ComboBoxItem<CharacterTag> comboboxItem = (ComboBoxItem<CharacterTag>) value;
label.setIcon(AbstractTagTree.getIconForType(AbstractTagTree.getTreeNodeType(comboboxItem.getValue())));
}