mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Merge pull request #3821 from APriestman/fixUncheckedCast
Fix unchecked cast warning.
This commit is contained in:
commit
3fd1c4c0ea
@ -65,10 +65,12 @@ public class DataSourcePanel extends javax.swing.JPanel {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void mouseMoved(MouseEvent evt) {
|
public void mouseMoved(MouseEvent evt) {
|
||||||
JList<String> DsList = (JList<String>) evt.getSource();
|
if (evt.getSource() instanceof JList<?>) {
|
||||||
int index = DsList.locationToIndex(evt.getPoint());
|
JList<?> dsList = (JList<?>) evt.getSource();
|
||||||
if (index > -1) {
|
int index = dsList.locationToIndex(evt.getPoint());
|
||||||
DsList.setToolTipText(toolTipList.get(index));
|
if (index > -1) {
|
||||||
|
dsList.setToolTipText(toolTipList.get(index));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user