Revision: 17648
          http://sourceforge.net/p/gate/code/17648
Author:   markagreenwood
Date:     2014-03-13 11:16:47 +0000 (Thu, 13 Mar 2014)
Log Message:
-----------
removed some @SuppressWarning annotations that are no longer needed because 
I've cleaned up the code they refer to, I'm also now turning on the serial 
compiler warning as all classes in the core now either have a serialVersionUID 
or have had the warning supressed as we know that it doesn't matter (i.e. GUI 
code where the things aren't going to be serialized)

Modified Paths:
--------------
    gate/trunk/build.xml
    gate/trunk/src/main/gate/Utils.java
    gate/trunk/src/main/gate/creole/gazetteer/GazetteerList.java
    gate/trunk/src/main/gate/creole/ir/lucene/LuceneIndexManager.java
    gate/trunk/src/test/gate/util/TestRBTreeMap.java

Modified: gate/trunk/build.xml
===================================================================
--- gate/trunk/build.xml        2014-03-13 10:58:36 UTC (rev 17647)
+++ gate/trunk/build.xml        2014-03-13 11:16:47 UTC (rev 17648)
@@ -256,7 +256,6 @@
       <compilerarg value="-Xlint:all" />
       <compilerarg value="-Xlint:-rawtypes" />
       <compilerarg value="-Xlint:-unchecked" />
-      <compilerarg value="-Xlint:-serial" />
     </javac>
   </target>
 

Modified: gate/trunk/src/main/gate/Utils.java
===================================================================
--- gate/trunk/src/main/gate/Utils.java 2014-03-13 10:58:36 UTC (rev 17647)
+++ gate/trunk/src/main/gate/Utils.java 2014-03-13 11:16:47 UTC (rev 17648)
@@ -19,13 +19,11 @@
 import gate.creole.ConditionalSerialController;
 import gate.creole.RunningStrategy;
 import gate.util.FeatureBearer;
-import gate.util.GateException;
 import gate.util.GateRuntimeException;
 import gate.util.InvalidOffsetException;
 import gate.util.OffsetComparator;
+
 import java.io.File;
-import java.net.MalformedURLException;
-
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Collections;

Modified: gate/trunk/src/main/gate/creole/gazetteer/GazetteerList.java
===================================================================
--- gate/trunk/src/main/gate/creole/gazetteer/GazetteerList.java        
2014-03-13 10:58:36 UTC (rev 17647)
+++ gate/trunk/src/main/gate/creole/gazetteer/GazetteerList.java        
2014-03-13 11:16:47 UTC (rev 17648)
@@ -173,8 +173,6 @@
         throw new ResourceInstantiationException("URL not specified (null).");
       }
 
-      
-
       listReader =
               new BomStrippingInputStreamReader((url).openStream(), encoding);
       String line;

Modified: gate/trunk/src/main/gate/creole/ir/lucene/LuceneIndexManager.java
===================================================================
--- gate/trunk/src/main/gate/creole/ir/lucene/LuceneIndexManager.java   
2014-03-13 10:58:36 UTC (rev 17647)
+++ gate/trunk/src/main/gate/creole/ir/lucene/LuceneIndexManager.java   
2014-03-13 11:16:47 UTC (rev 17648)
@@ -226,7 +226,7 @@
   private org.apache.lucene.document.Document getLuceneDoc(gate.Document 
gateDoc){
     org.apache.lucene.document.Document luceneDoc =
                                      new org.apache.lucene.document.Document();
-    @SuppressWarnings("unchecked")
+    
     Iterator<IndexField> fields = indexDefinition.getIndexFields();
 
 //    luceneDoc.add(Field.Keyword(DOCUMENT_ID,

Modified: gate/trunk/src/test/gate/util/TestRBTreeMap.java
===================================================================
--- gate/trunk/src/test/gate/util/TestRBTreeMap.java    2014-03-13 10:58:36 UTC 
(rev 17647)
+++ gate/trunk/src/test/gate/util/TestRBTreeMap.java    2014-03-13 11:16:47 UTC 
(rev 17648)
@@ -22,8 +22,6 @@
   */
 public class TestRBTreeMap extends TestCase
 {
-  /** Debug flag */
-  private static final boolean DEBUG = false;
 
   /** Construction */
   public TestRBTreeMap(String name) { super(name); }
@@ -31,7 +29,7 @@
   /** Create a map  with sparse values as keys */
   @Override
   public void setUp() {
-    myTree=new RBTreeMap();
+    myTree=new RBTreeMap<Object,Object>();
     myTree.put(new Long(10),"Ten");
     myTree.put(new Long(20),"Twenty");
     myTree.put(new Long(30),"Thirty");
@@ -104,7 +102,7 @@
     assertNull("TestCM 8",result[1]);
 
     //empty the tree
-    myTree=new RBTreeMap();
+    myTree=new RBTreeMap<Object,Object>();
 
     //try glb=lub=null
     key=new Long(15);
@@ -143,7 +141,7 @@
     assertNull(result);
 
     //empty the tree
-    myTree=new RBTreeMap();
+    myTree=new RBTreeMap<Object,Object>();
     key=new Long(15);
     result=myTree.getNextOf(key);
     assertNull(result);
@@ -156,6 +154,6 @@
   } // suite
 
 
-  private RBTreeMap myTree;
+  private RBTreeMap<Object,Object> myTree;
   
 } // class TestRBTreeMap

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/13534_NeoTech
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to