Skip to content

Commit

Permalink
Use a wildcard type parameter for JList in DrawingListPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbraun committed Aug 3, 2023
1 parent 5f92d0d commit 795b30b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/rv/ui/DrawingListPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public void mouseClicked(MouseEvent event)
{
// TODO: try/catch really needed?
try {
JList list = (JList) event.getSource();
JList<?> list = (JList<?>) event.getSource();
int index = list.locationToIndex(event.getPoint());
CheckListItem item = (CheckListItem) list.getModel().getElementAt(index);
item.setSelected(!item.isSelected());
Expand Down

0 comments on commit 795b30b

Please sign in to comment.