Skip to content
Snippets Groups Projects
Commit c67b9af0 authored by Tobias Pietzsch's avatar Tobias Pietzsch
Browse files

fix raw type JList ocurrences

parent 5ff22ebd
No related branches found
No related tags found
No related merge requests found
...@@ -135,14 +135,14 @@ public class BigDataBrowserPlugIn implements PlugIn ...@@ -135,14 +135,14 @@ public class BigDataBrowserPlugIn implements PlugIn
private void createDatasetListUI( final String remoteUrl, final Object[] values ) private void createDatasetListUI( final String remoteUrl, final Object[] values )
{ {
final JList list = new JList( values ); final JList< ? > list = new JList<>( values );
list.setCellRenderer( new ThumbnailListRenderer() ); list.setCellRenderer( new ThumbnailListRenderer() );
list.addMouseListener( new MouseAdapter() list.addMouseListener( new MouseAdapter()
{ {
@Override @Override
public void mouseClicked( final MouseEvent evt ) public void mouseClicked( final MouseEvent evt )
{ {
final JList list = ( JList ) evt.getSource(); final JList< ? > list = ( JList< ? > ) evt.getSource();
if ( evt.getClickCount() == 2 ) if ( evt.getClickCount() == 2 )
{ {
final int index = list.locationToIndex( evt.getPoint() ); final int index = list.locationToIndex( evt.getPoint() );
...@@ -180,7 +180,7 @@ public class BigDataBrowserPlugIn implements PlugIn ...@@ -180,7 +180,7 @@ public class BigDataBrowserPlugIn implements PlugIn
@Override @Override
public Component getListCellRendererComponent( public Component getListCellRendererComponent(
final JList list, final Object value, final int index, final JList< ? > list, final Object value, final int index,
final boolean isSelected, final boolean cellHasFocus ) final boolean isSelected, final boolean cellHasFocus )
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment