Revision: 17857
          http://sourceforge.net/p/gate/code/17857
Author:   markagreenwood
Date:     2014-04-17 14:03:17 +0000 (Thu, 17 Apr 2014)
Log Message:
-----------
and another file clear of Java 7 warnings

Modified Paths:
--------------
    gate/trunk/src/main/gate/gui/CorpusEditor.java

Modified: gate/trunk/src/main/gate/gui/CorpusEditor.java
===================================================================
--- gate/trunk/src/main/gate/gui/CorpusEditor.java      2014-04-17 13:58:57 UTC 
(rev 17856)
+++ gate/trunk/src/main/gate/gui/CorpusEditor.java      2014-04-17 14:03:17 UTC 
(rev 17857)
@@ -462,14 +462,14 @@
   }
 
   class DocumentNameRenderer extends DefaultTableCellRenderer implements 
-      ListCellRenderer{
+      ListCellRenderer<String>{
     public DocumentNameRenderer(){
       super();
       setIcon(MainFrame.getIcon("document"));
     }
     
     @Override
-    public Component getListCellRendererComponent(JList list, Object value,
+    public Component getListCellRendererComponent(JList<? extends String> 
list, String value,
             int index, boolean isSelected, boolean cellHasFocus) {
       // prepare the renderer
 
@@ -625,7 +625,7 @@
           docNames.add(loadedDocument.getName());
         }
       }
-      JList docList = new JList(docNames);
+      JList<String> docList = new JList<String>(docNames);
       docList.getSelectionModel().setSelectionInterval(0, docNames.size()-1);
       docList.setCellRenderer(renderer);
       final JOptionPane optionPane = new JOptionPane(new JScrollPane(docList),

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to