Revision: 17675
          http://sourceforge.net/p/gate/code/17675
Author:   markagreenwood
Date:     2014-03-15 13:13:29 +0000 (Sat, 15 Mar 2014)
Log Message:
-----------
cleaned up the language plugins (apart from Romanian, Chinese and Hindi as 
these need some more thought) and enabled the compiler warnings in the build 
files

Modified Paths:
--------------
    gate/trunk/plugins/Lang_Arabic/build.xml
    gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicGazCollector.java
    gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicGazetteer.java
    gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicIE.java
    gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicInferedGazetteer.java
    gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicOrthoMatcher.java
    gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicTokeniser.java
    gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicTransducer.java
    gate/trunk/plugins/Lang_Bulgarian/build.xml
    gate/trunk/plugins/Lang_Cebuano/build.xml
    gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoGazetteer.java
    gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoGazetteerTokeniser.java
    gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoIE.java
    gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTokeniser.java
    gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTransducer.java
    gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTransducerPost.java
    gate/trunk/plugins/Lang_French/build.xml
    gate/trunk/plugins/Lang_French/src/french/FrenchIE.java
    gate/trunk/plugins/Lang_German/build.xml
    gate/trunk/plugins/Lang_German/src/german/GermanIE.java
    gate/trunk/plugins/Lang_Russian/build.xml
    gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/apps/RussIE.java
    
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/apps/RussIEInflex.java
    
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/apps/RussIEOrtho.java
    
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/apps/RussIEOrthoInflex.java
    
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/gazetteer/InflectionalGazetteer.java
    
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/gazetteer/RussGazetteer.java
    gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/morph/LemmaImpl.java
    gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/morph/POSTagger.java
    
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/morph/SuffixNestImpl.java

Modified: gate/trunk/plugins/Lang_Arabic/build.xml
===================================================================
--- gate/trunk/plugins/Lang_Arabic/build.xml    2014-03-15 10:48:33 UTC (rev 
17674)
+++ gate/trunk/plugins/Lang_Arabic/build.xml    2014-03-15 13:13:29 UTC (rev 
17675)
@@ -17,6 +17,7 @@
   <property name="gate.home" location="../.." />
   <property name="gate.jar" location="${gate.home}/bin/gate.jar" />
   <property name="gate.lib" location="${gate.home}/lib" />
+  <property name="gate.compile.maxwarnings" value="10000" />
 
   <path id="compile.classpath">
     <pathelement location="${gate.jar}" />
@@ -37,7 +38,11 @@
         description="compile the source " >
     <!-- Compile the java code from ${src} into ${build} -->
     <javac srcdir="${src}" destdir="${build}" source="1.6" target="1.6"
-           classpathref="compile.classpath"/>
+           classpathref="compile.classpath">
+       <compilerarg value="-Xmaxwarns" />
+               <compilerarg value="${gate.compile.maxwarnings}" />
+               <compilerarg value="-Xlint:all" />
+       </javac>
   </target>
 
   <target name="dist" depends="compile"

Modified: gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicGazCollector.java
===================================================================
--- gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicGazCollector.java   
2014-03-15 10:48:33 UTC (rev 17674)
+++ gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicGazCollector.java   
2014-03-15 13:13:29 UTC (rev 17675)
@@ -1,3 +1,15 @@
+/*
+ *  ArabicGazCollector.java
+ *
+ *  Copyright (c) 1995-2014, The University of Sheffield. See the file
+ *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ *
+ *  This file is part of GATE (see http://gate.ac.uk/), and is free
+ *  software, licenced under the GNU Library General Public License,
+ *  Version 2, June 1991 (in the distribution as file licence.html,
+ *  and also available at http://gate.ac.uk/gate/licence.html).
+ */
+
 package arabic;
 
 import gate.creole.PackagedController;
@@ -11,6 +23,8 @@
 @CreoleResource(name = "Arabic Gazetteer Collector", autoinstances = 
@AutoInstance)
 public class ArabicGazCollector extends PackagedController {
 
+  private static final long serialVersionUID = 137618834835310547L;
+
   @Override
   @CreoleParameter(defaultValue = "resources/arabic_lists_collector.gapp")
   public void setPipelineURL(URL url) {

Modified: gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicGazetteer.java
===================================================================
--- gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicGazetteer.java      
2014-03-15 10:48:33 UTC (rev 17674)
+++ gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicGazetteer.java      
2014-03-15 13:13:29 UTC (rev 17675)
@@ -1,3 +1,15 @@
+/*
+ *  ArabicGazetteer.java
+ *
+ *  Copyright (c) 1995-2014, The University of Sheffield. See the file
+ *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ *
+ *  This file is part of GATE (see http://gate.ac.uk/), and is free
+ *  software, licenced under the GNU Library General Public License,
+ *  Version 2, June 1991 (in the distribution as file licence.html,
+ *  and also available at http://gate.ac.uk/gate/licence.html).
+ */
+
 package arabic;
 
 import java.net.URL;
@@ -9,7 +21,9 @@
 @CreoleResource(name="Arabic Gazetteer")
 public class ArabicGazetteer extends DefaultGazetteer {
 
-       @CreoleParameter(defaultValue="resources/gazetteer/lists.def")
+  private static final long serialVersionUID = -6532132691409262573L;
+
+  @CreoleParameter(defaultValue="resources/gazetteer/lists.def")
        public void setListsURL(URL url) {
                super.setListsURL(url);
        }

Modified: gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicIE.java
===================================================================
--- gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicIE.java     2014-03-15 
10:48:33 UTC (rev 17674)
+++ gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicIE.java     2014-03-15 
13:13:29 UTC (rev 17675)
@@ -1,3 +1,15 @@
+/*
+ *  ArabicIE.java
+ *
+ *  Copyright (c) 1995-2014, The University of Sheffield. See the file
+ *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ *
+ *  This file is part of GATE (see http://gate.ac.uk/), and is free
+ *  software, licenced under the GNU Library General Public License,
+ *  Version 2, June 1991 (in the distribution as file licence.html,
+ *  and also available at http://gate.ac.uk/gate/licence.html).
+ */
+
 package arabic;
 
 import gate.creole.PackagedController;
@@ -3,14 +15,10 @@
 import gate.creole.metadata.AutoInstance;
 import gate.creole.metadata.AutoInstanceParam;
-import gate.creole.metadata.CreoleParameter;
 import gate.creole.metadata.CreoleResource;
 
-import java.net.URL;
-import java.util.List;
-
 @CreoleResource(name = "Arabic IE System", autoinstances = 
@AutoInstance(parameters = {
        @AutoInstanceParam(name="pipelineURL", value="resources/arabic.gapp"),
        @AutoInstanceParam(name="menu", value="Arabic")}))
 public class ArabicIE extends PackagedController {
-
+  private static final long serialVersionUID = -4592515245601344217L;
 }

Modified: gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicInferedGazetteer.java
===================================================================
--- gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicInferedGazetteer.java       
2014-03-15 10:48:33 UTC (rev 17674)
+++ gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicInferedGazetteer.java       
2014-03-15 13:13:29 UTC (rev 17675)
@@ -1,4 +1,17 @@
+/*
+ *  ArabicInferedGazetteer.java
+ *
+ *  Copyright (c) 1995-2014, The University of Sheffield. See the file
+ *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ *
+ *  This file is part of GATE (see http://gate.ac.uk/), and is free
+ *  software, licenced under the GNU Library General Public License,
+ *  Version 2, June 1991 (in the distribution as file licence.html,
+ *  and also available at http://gate.ac.uk/gate/licence.html).
+ */
+
 package arabic;
+
 import java.net.URL;
 
 import gate.creole.gazetteer.DefaultGazetteer;
@@ -8,7 +21,9 @@
 @CreoleResource(name="Arabic Infered Gazetteer")
 public class ArabicInferedGazetteer extends DefaultGazetteer {
 
-       @CreoleParameter(defaultValue="resources/inferred-gazetteer/lists.def")
+  private static final long serialVersionUID = -924698124090356105L;
+
+  @CreoleParameter(defaultValue="resources/inferred-gazetteer/lists.def")
        public void setListsURL(URL url) {
                super.setListsURL(url);
        }

Modified: gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicOrthoMatcher.java
===================================================================
--- gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicOrthoMatcher.java   
2014-03-15 10:48:33 UTC (rev 17674)
+++ gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicOrthoMatcher.java   
2014-03-15 13:13:29 UTC (rev 17675)
@@ -1,3 +1,15 @@
+/*
+ *  ArabicOrthoMatcher.java
+ *
+ *  Copyright (c) 1995-2014, The University of Sheffield. See the file
+ *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ *
+ *  This file is part of GATE (see http://gate.ac.uk/), and is free
+ *  software, licenced under the GNU Library General Public License,
+ *  Version 2, June 1991 (in the distribution as file licence.html,
+ *  and also available at http://gate.ac.uk/gate/licence.html).
+ */
+
 package arabic;
 
 import java.net.URL;
@@ -9,7 +21,9 @@
 @CreoleResource(name="Arabic OrthoMatcher")
 public class ArabicOrthoMatcher extends OrthoMatcher{
 
-       @CreoleParameter(defaultValue="resources/orthomatcher/listsNM.def")
+  private static final long serialVersionUID = -4787305288356004893L;
+
+  @CreoleParameter(defaultValue="resources/orthomatcher/listsNM.def")
        public void setDefinitionFileURL(URL url) {
                super.setDefinitionFileURL(url);
        }

Modified: gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicTokeniser.java
===================================================================
--- gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicTokeniser.java      
2014-03-15 10:48:33 UTC (rev 17674)
+++ gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicTokeniser.java      
2014-03-15 13:13:29 UTC (rev 17675)
@@ -1,3 +1,15 @@
+/*
+ *  ArabicTokeniser.java
+ *
+ *  Copyright (c) 1995-2014, The University of Sheffield. See the file
+ *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ *
+ *  This file is part of GATE (see http://gate.ac.uk/), and is free
+ *  software, licenced under the GNU Library General Public License,
+ *  Version 2, June 1991 (in the distribution as file licence.html,
+ *  and also available at http://gate.ac.uk/gate/licence.html).
+ */
+
 package arabic;
 
 import java.net.URL;
@@ -9,7 +21,9 @@
 @CreoleResource(name="Arabic Tokeniser")
 public class ArabicTokeniser extends DefaultTokeniser {
 
-       
@CreoleParameter(defaultValue="resources/tokeniser/arabicTokeniser.rules")
+  private static final long serialVersionUID = 8505058866441067794L;
+
+  @CreoleParameter(defaultValue="resources/tokeniser/arabicTokeniser.rules")
        public void setTokeniserRulesURL(URL url) {
                super.setTokeniserRulesURL(url);
        }

Modified: gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicTransducer.java
===================================================================
--- gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicTransducer.java     
2014-03-15 10:48:33 UTC (rev 17674)
+++ gate/trunk/plugins/Lang_Arabic/src/arabic/ArabicTransducer.java     
2014-03-15 13:13:29 UTC (rev 17675)
@@ -1,3 +1,15 @@
+/*
+ *  ArabicTransducer.java
+ *
+ *  Copyright (c) 1995-2014, The University of Sheffield. See the file
+ *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ *
+ *  This file is part of GATE (see http://gate.ac.uk/), and is free
+ *  software, licenced under the GNU Library General Public License,
+ *  Version 2, June 1991 (in the distribution as file licence.html,
+ *  and also available at http://gate.ac.uk/gate/licence.html).
+ */
+
 package arabic;
 
 import java.net.URL;
@@ -9,7 +21,9 @@
 @CreoleResource(name="Arabic Main Grammar")
 public class ArabicTransducer extends Transducer {
        
-       @CreoleParameter(defaultValue="resources/grammar/main.jape")
+  private static final long serialVersionUID = -8013846545693384187L;
+
+  @CreoleParameter(defaultValue="resources/grammar/main.jape")
        public void setGrammarURL(URL url) {
                super.setGrammarURL(url);
        }

Modified: gate/trunk/plugins/Lang_Bulgarian/build.xml
===================================================================
--- gate/trunk/plugins/Lang_Bulgarian/build.xml 2014-03-15 10:48:33 UTC (rev 
17674)
+++ gate/trunk/plugins/Lang_Bulgarian/build.xml 2014-03-15 13:13:29 UTC (rev 
17675)
@@ -46,7 +46,11 @@
            debuglevel="lines,source"
            encoding="UTF-8"
            source="1.6"
-           target="1.6" />
+           target="1.6">
+                       <compilerarg value="-Xmaxwarns" />
+                       <compilerarg value="${gate.compile.maxwarnings}" />
+                       <compilerarg value="-Xlint:all" />
+               </javac>
        </target>
 
        <!-- Build JavaDoc documentation -->

Modified: gate/trunk/plugins/Lang_Cebuano/build.xml
===================================================================
--- gate/trunk/plugins/Lang_Cebuano/build.xml   2014-03-15 10:48:33 UTC (rev 
17674)
+++ gate/trunk/plugins/Lang_Cebuano/build.xml   2014-03-15 13:13:29 UTC (rev 
17675)
@@ -17,6 +17,7 @@
   <property name="gate.home" location="../.." />
   <property name="gate.jar" location="${gate.home}/bin/gate.jar" />
   <property name="gate.lib" location="${gate.home}/lib" />
+  <property name="gate.compile.maxwarnings" value="10000" />
 
   <path id="compile.classpath">
     <pathelement location="${gate.jar}" />
@@ -37,7 +38,11 @@
         description="compile the source " >
     <!-- Compile the java code from ${src} into ${build} -->
     <javac srcdir="${src}" destdir="${build}" source="1.6" target="1.6"
-           classpathref="compile.classpath"/>
+           classpathref="compile.classpath">
+               <compilerarg value="-Xmaxwarns" />
+               <compilerarg value="${gate.compile.maxwarnings}" />
+               <compilerarg value="-Xlint:all" />
+    </javac>
   </target>
 
   <target name="dist" depends="compile"

Modified: gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoGazetteer.java
===================================================================
--- gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoGazetteer.java   
2014-03-15 10:48:33 UTC (rev 17674)
+++ gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoGazetteer.java   
2014-03-15 13:13:29 UTC (rev 17675)
@@ -1,3 +1,15 @@
+/*
+ *  CebuanoGazetteer.java
+ *
+ *  Copyright (c) 1995-2014, The University of Sheffield. See the file
+ *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ *
+ *  This file is part of GATE (see http://gate.ac.uk/), and is free
+ *  software, licenced under the GNU Library General Public License,
+ *  Version 2, June 1991 (in the distribution as file licence.html,
+ *  and also available at http://gate.ac.uk/gate/licence.html).
+ */
+
 package cebuano;
 
 import java.net.URL;
@@ -9,6 +21,8 @@
 @CreoleResource(name="Cebuano Gazetteer")
 public class CebuanoGazetteer extends DefaultGazetteer {
 
+  private static final long serialVersionUID = 6056825116054902597L;
+
   @CreoleParameter(defaultValue="resources/gazetteer/cebuano/lists.def")
   public void setListsURL(URL url) {
     super.setListsURL(url);

Modified: 
gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoGazetteerTokeniser.java
===================================================================
--- gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoGazetteerTokeniser.java  
2014-03-15 10:48:33 UTC (rev 17674)
+++ gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoGazetteerTokeniser.java  
2014-03-15 13:13:29 UTC (rev 17675)
@@ -1,3 +1,15 @@
+/*
+ *  CebuanoGazetteerTokeniser.java
+ *
+ *  Copyright (c) 1995-2014, The University of Sheffield. See the file
+ *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ *
+ *  This file is part of GATE (see http://gate.ac.uk/), and is free
+ *  software, licenced under the GNU Library General Public License,
+ *  Version 2, June 1991 (in the distribution as file licence.html,
+ *  and also available at http://gate.ac.uk/gate/licence.html).
+ */
+
 package cebuano;
 
 import java.net.URL;
@@ -9,7 +21,9 @@
 @CreoleResource(name="Cebuano Gazetteer Tokeniser")
 public class CebuanoGazetteerTokeniser extends DefaultGazetteer {
 
- @CreoleParameter(defaultValue="resources/tokeniser/lists.def")
+  private static final long serialVersionUID = -8168553316512297578L;
+
+@CreoleParameter(defaultValue="resources/tokeniser/lists.def")
   public void setListsURL(URL url) {
     super.setListsURL(url);
   }

Modified: gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoIE.java
===================================================================
--- gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoIE.java  2014-03-15 
10:48:33 UTC (rev 17674)
+++ gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoIE.java  2014-03-15 
13:13:29 UTC (rev 17675)
@@ -1,3 +1,15 @@
+/*
+ *  CebuanoIE.java
+ *
+ *  Copyright (c) 1995-2014, The University of Sheffield. See the file
+ *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ *
+ *  This file is part of GATE (see http://gate.ac.uk/), and is free
+ *  software, licenced under the GNU Library General Public License,
+ *  Version 2, June 1991 (in the distribution as file licence.html,
+ *  and also available at http://gate.ac.uk/gate/licence.html).
+ */
+
 package cebuano;
 
 import gate.creole.PackagedController;
@@ -3,14 +15,10 @@
 import gate.creole.metadata.AutoInstance;
 import gate.creole.metadata.AutoInstanceParam;
-import gate.creole.metadata.CreoleParameter;
 import gate.creole.metadata.CreoleResource;
 
-import java.net.URL;
-import java.util.List;
-
 @CreoleResource(name = "Cebuano IE System", autoinstances = 
@AutoInstance(parameters = {
        @AutoInstanceParam(name="pipelineURL", value="resources/cebuano.gapp"),
        @AutoInstanceParam(name="menu", value="Cebuano")}))
 public class CebuanoIE extends PackagedController {
-
+  private static final long serialVersionUID = 4754394751421742169L;
 }

Modified: gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTokeniser.java
===================================================================
--- gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTokeniser.java   
2014-03-15 10:48:33 UTC (rev 17674)
+++ gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTokeniser.java   
2014-03-15 13:13:29 UTC (rev 17675)
@@ -1,3 +1,15 @@
+/*
+ *  CebuanoTokeniser.java
+ *
+ *  Copyright (c) 1995-2014, The University of Sheffield. See the file
+ *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ *
+ *  This file is part of GATE (see http://gate.ac.uk/), and is free
+ *  software, licenced under the GNU Library General Public License,
+ *  Version 2, June 1991 (in the distribution as file licence.html,
+ *  and also available at http://gate.ac.uk/gate/licence.html).
+ */
+
 package cebuano;
 
 import java.net.URL;
@@ -9,7 +21,9 @@
 @CreoleResource(name="Cebuano Tokeniser")
 public class CebuanoTokeniser extends DefaultTokeniser {
 
-       
@CreoleParameter(defaultValue="resources/tokeniser/DefaultTokeniser.rules")
+  private static final long serialVersionUID = -4016532776016432085L;
+
+  @CreoleParameter(defaultValue="resources/tokeniser/DefaultTokeniser.rules")
        public void setTokeniserRulesURL(URL url) {
                super.setTokeniserRulesURL(url);
        }

Modified: gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTransducer.java
===================================================================
--- gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTransducer.java  
2014-03-15 10:48:33 UTC (rev 17674)
+++ gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTransducer.java  
2014-03-15 13:13:29 UTC (rev 17675)
@@ -1,3 +1,15 @@
+/*
+ *  CebuanoTransducer.java
+ *
+ *  Copyright (c) 1995-2014, The University of Sheffield. See the file
+ *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ *
+ *  This file is part of GATE (see http://gate.ac.uk/), and is free
+ *  software, licenced under the GNU Library General Public License,
+ *  Version 2, June 1991 (in the distribution as file licence.html,
+ *  and also available at http://gate.ac.uk/gate/licence.html).
+ */
+
 package cebuano;
 
 import java.net.URL;
@@ -9,7 +21,9 @@
 @CreoleResource(name="Cebuano Transducer")
 public class CebuanoTransducer extends Transducer {
 
-       @CreoleParameter(defaultValue="resources/grammar/main.jape")
+  private static final long serialVersionUID = -3233390802503740939L;
+
+  @CreoleParameter(defaultValue="resources/grammar/main.jape")
        public void setGrammarURL(URL url) {
                super.setGrammarURL(url);
        }

Modified: gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTransducerPost.java
===================================================================
--- gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTransducerPost.java      
2014-03-15 10:48:33 UTC (rev 17674)
+++ gate/trunk/plugins/Lang_Cebuano/src/cebuano/CebuanoTransducerPost.java      
2014-03-15 13:13:29 UTC (rev 17675)
@@ -1,3 +1,15 @@
+/*
+ *  CebuanoTransducerPost.java
+ *
+ *  Copyright (c) 1995-2014, The University of Sheffield. See the file
+ *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ *
+ *  This file is part of GATE (see http://gate.ac.uk/), and is free
+ *  software, licenced under the GNU Library General Public License,
+ *  Version 2, June 1991 (in the distribution as file licence.html,
+ *  and also available at http://gate.ac.uk/gate/licence.html).
+ */
+
 package cebuano;
 
 import java.net.URL;
@@ -9,7 +21,9 @@
 @CreoleResource(name="Cebuano Transducer Postprocessor")
 public class CebuanoTransducerPost extends Transducer {
 
-       @CreoleParameter(defaultValue="resources/tokeniser/join.jape")
+  private static final long serialVersionUID = 3906950025128707542L;
+
+  @CreoleParameter(defaultValue="resources/tokeniser/join.jape")
        public void setGrammarURL(URL url) {
                super.setGrammarURL(url);
        }

Modified: gate/trunk/plugins/Lang_French/build.xml
===================================================================
--- gate/trunk/plugins/Lang_French/build.xml    2014-03-15 10:48:33 UTC (rev 
17674)
+++ gate/trunk/plugins/Lang_French/build.xml    2014-03-15 13:13:29 UTC (rev 
17675)
@@ -16,6 +16,7 @@
   <property name="gate.home" location="../.." />
   <property name="gate.jar" location="${gate.home}/bin/gate.jar" />
   <property name="gate.lib" location="${gate.home}/lib" />
+  <property name="gate.compile.maxwarnings" value="10000" />
 
   <path id="compile.classpath">
     <pathelement location="${gate.jar}" />
@@ -36,7 +37,11 @@
         description="compile the source " >
     <!-- Compile the java code from ${src} into ${build} -->
     <javac srcdir="${src}" destdir="${build}" source="1.6" target="1.6"
-           classpathref="compile.classpath"/>
+           classpathref="compile.classpath">
+               <compilerarg value="-Xmaxwarns" />
+               <compilerarg value="${gate.compile.maxwarnings}" />
+               <compilerarg value="-Xlint:all" />
+    </javac>
   </target>
 
   <target name="dist" depends="compile"

Modified: gate/trunk/plugins/Lang_French/src/french/FrenchIE.java
===================================================================
--- gate/trunk/plugins/Lang_French/src/french/FrenchIE.java     2014-03-15 
10:48:33 UTC (rev 17674)
+++ gate/trunk/plugins/Lang_French/src/french/FrenchIE.java     2014-03-15 
13:13:29 UTC (rev 17675)
@@ -3,15 +3,13 @@
 import gate.creole.PackagedController;
 import gate.creole.metadata.AutoInstance;
 import gate.creole.metadata.AutoInstanceParam;
-import gate.creole.metadata.CreoleParameter;
 import gate.creole.metadata.CreoleResource;
 
-import java.net.URL;
-import java.util.List;
-
 @CreoleResource(name = "French IE System", autoinstances = 
@AutoInstance(parameters = {
        @AutoInstanceParam(name="pipelineURL", value="french.gapp"),
        @AutoInstanceParam(name="menu", value="French")}))
 public class FrenchIE extends PackagedController {
 
+  private static final long serialVersionUID = 5965895217733412732L;
+
 }

Modified: gate/trunk/plugins/Lang_German/build.xml
===================================================================
--- gate/trunk/plugins/Lang_German/build.xml    2014-03-15 10:48:33 UTC (rev 
17674)
+++ gate/trunk/plugins/Lang_German/build.xml    2014-03-15 13:13:29 UTC (rev 
17675)
@@ -16,6 +16,7 @@
   <property name="gate.home" location="../.." />
   <property name="gate.jar" location="${gate.home}/bin/gate.jar" />
   <property name="gate.lib" location="${gate.home}/lib" />
+  <property name="gate.compile.maxwarnings" value="10000" />
 
   <path id="compile.classpath">
     <pathelement location="${gate.jar}" />
@@ -36,7 +37,11 @@
         description="compile the source " >
     <!-- Compile the java code from ${src} into ${build} -->
     <javac srcdir="${src}" destdir="${build}" source="1.6" target="1.6"
-           classpathref="compile.classpath"/>
+           classpathref="compile.classpath">
+               <compilerarg value="-Xmaxwarns" />
+               <compilerarg value="${gate.compile.maxwarnings}" />
+               <compilerarg value="-Xlint:all" />
+    </javac>
   </target>
 
   <target name="dist" depends="compile"

Modified: gate/trunk/plugins/Lang_German/src/german/GermanIE.java
===================================================================
--- gate/trunk/plugins/Lang_German/src/german/GermanIE.java     2014-03-15 
10:48:33 UTC (rev 17674)
+++ gate/trunk/plugins/Lang_German/src/german/GermanIE.java     2014-03-15 
13:13:29 UTC (rev 17675)
@@ -13,5 +13,5 @@
        @AutoInstanceParam(name="pipelineURL", value="resources/german.gapp"),
        @AutoInstanceParam(name="menu", value="German")}))
 public class GermanIE extends PackagedController {
-
+  private static final long serialVersionUID = -1983465516568025601L;
 }

Modified: gate/trunk/plugins/Lang_Russian/build.xml
===================================================================
--- gate/trunk/plugins/Lang_Russian/build.xml   2014-03-15 10:48:33 UTC (rev 
17674)
+++ gate/trunk/plugins/Lang_Russian/build.xml   2014-03-15 13:13:29 UTC (rev 
17675)
@@ -1,4 +1,7 @@
 <project name="russie" basedir="." default="jar">
+       <!-- Prevent Ant from warning about includeantruntime not being set -->
+       <property name="build.sysclasspath" value="ignore" />
+       
        <property file="build.properties" />
 
        <property name="gate.home" location="../../" />
@@ -10,6 +13,7 @@
        <property name="jar.location" location="russie.jar" />
        <property name="doc.dir" location="doc" />
        <property name="javadoc.dir" location="${doc.dir}/javadoc" />
+       <property name="gate.compile.maxwarnings" value="10000" />
 
        <!-- Path to compile - includes gate.jar and GATE/lib/*.jar -->
        <path id="compile.classpath">
@@ -31,7 +35,11 @@
                     debuglevel="lines,source"
                     encoding="UTF-8"
                     source="1.6"
-                    target="1.6" />
+                    target="1.6">
+                       <compilerarg value="-Xmaxwarns" />
+                       <compilerarg value="${gate.compile.maxwarnings}" />
+                       <compilerarg value="-Xlint:all" />
+               </javac>
        </target>
 
        <!-- copy resources (i.e. anything non-.java) from src to classes -->

Modified: 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/apps/RussIE.java
===================================================================
--- gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/apps/RussIE.java    
2014-03-15 10:48:33 UTC (rev 17674)
+++ gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/apps/RussIE.java    
2014-03-15 13:13:29 UTC (rev 17675)
@@ -10,4 +10,6 @@
        @AutoInstanceParam(name="menu", value="Russian")}))
 public class RussIE extends PackagedController {
 
+  private static final long serialVersionUID = 271518814092944109L;
+
 }

Modified: 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/apps/RussIEInflex.java
===================================================================
--- 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/apps/RussIEInflex.java  
    2014-03-15 10:48:33 UTC (rev 17674)
+++ 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/apps/RussIEInflex.java  
    2014-03-15 13:13:29 UTC (rev 17675)
@@ -10,4 +10,6 @@
   @AutoInstanceParam(name = "menu", value = "Russian")}))
 public class RussIEInflex extends PackagedController {
 
+  private static final long serialVersionUID = 5534400284237664426L;
+
 }

Modified: 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/apps/RussIEOrtho.java
===================================================================
--- 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/apps/RussIEOrtho.java   
    2014-03-15 10:48:33 UTC (rev 17674)
+++ 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/apps/RussIEOrtho.java   
    2014-03-15 13:13:29 UTC (rev 17675)
@@ -10,4 +10,6 @@
   @AutoInstanceParam(name = "menu", value = "Russian")}))
 public class RussIEOrtho extends PackagedController {
 
+  private static final long serialVersionUID = -2605080273474193963L;
+
 }
\ No newline at end of file

Modified: 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/apps/RussIEOrthoInflex.java
===================================================================
--- 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/apps/RussIEOrthoInflex.java
 2014-03-15 10:48:33 UTC (rev 17674)
+++ 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/apps/RussIEOrthoInflex.java
 2014-03-15 13:13:29 UTC (rev 17675)
@@ -10,4 +10,6 @@
   @AutoInstanceParam(name = "menu", value = "Russian")}))
 public class RussIEOrthoInflex extends PackagedController {
 
+  private static final long serialVersionUID = 7753178701321825346L;
+
 }
\ No newline at end of file

Modified: 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/gazetteer/InflectionalGazetteer.java
===================================================================
--- 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/gazetteer/InflectionalGazetteer.java
        2014-03-15 10:48:33 UTC (rev 17674)
+++ 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/gazetteer/InflectionalGazetteer.java
        2014-03-15 13:13:29 UTC (rev 17675)
@@ -52,6 +52,7 @@
 import com.ontotext.russie.morph.TypePool;
 
 @CreoleResource(name = "Inflectional gazetteer")
+@SuppressWarnings({"rawtypes","unchecked"})
 public class InflectionalGazetteer extends AbstractLanguageAnalyser implements
   RussIEConstants {
 
@@ -363,7 +364,7 @@
         } else while(iend < length &&
           (Character.isLetterOrDigit(currentChar = content.charAt(iend)) ||
           // handling for ch and etc. cyrillic letters that fail the above 
check
-          ((215 == (currCharInt = (int)currentChar)) || (currCharInt == 168) ||
+          ((215 == (currCharInt = currentChar)) || (currCharInt == 168) ||
             (currCharInt == 247) || (currCharInt == 184))) ||
           ((isDashOrQuotePunctuation(currentChar)) && (Character
             .isWhitespace(content.charAt(iend - 1)) || 
isWhiteSpacePunctuation(content
@@ -555,6 +556,7 @@
     boolean isAdded = false;
     SuffixNest nest = lemma.getSuffixNest();
     String root = lemma.getRoot();
+    @SuppressWarnings("unused")
     String mainFormSuffix = lemma.getSuffix(lemma.getMainFormType());
     nest.setFeatureMap(lemma.getFeatureMap());
 
@@ -726,8 +728,7 @@
     SuffixNest nest;
     FeatureMap fm, oldFm;
     String lemma;
-    // temporary mediator
-    Set types;
+
     while(phrase.length() > 0) {
       if(map.containsKey(phrase)) {
         nests = (Set)map.get(phrase);

Modified: 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/gazetteer/RussGazetteer.java
===================================================================
--- 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/gazetteer/RussGazetteer.java
        2014-03-15 10:48:33 UTC (rev 17674)
+++ 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/gazetteer/RussGazetteer.java
        2014-03-15 13:13:29 UTC (rev 17675)
@@ -66,6 +66,7 @@
  * @version 1.0
  */
 @CreoleResource(name = "Russian Gazetteer", icon = "shefGazetteer")
+@SuppressWarnings({"rawtypes","unchecked"})
 public class RussGazetteer extends AbstractGazetteer implements 
RussIEConstants {
 
   private static final long serialVersionUID = -5174914553200046785L;
@@ -228,7 +229,7 @@
    */
   void readList(LinearNode node, boolean add) throws GazetteerException {
 
-    String listName, majorType, minorType, languages, oClass;
+    String listName, majorType, minorType, languages;
     if(null == node) { throw new GazetteerException(" LinearNode node is null 
"); }
 
     listName = node.getList();
@@ -314,7 +315,6 @@
     // letter to number or number to letter transition zone
     boolean l2nORn2lZone = false;
     char currentChar = 0;
-    boolean goonFlag = true;
     int typeWeight = 0;
 
     // note that the code within the next cycle is overwhelmed by complexity
@@ -381,7 +381,7 @@
         } else while(iend < length &&
           (Character.isLetterOrDigit(currentChar = content.charAt(iend)) ||
           // handling for ch and etc. cyrillic letters that fail the above 
check
-          ((215 == (currCharInt = (int)currentChar)) || (currCharInt == 168) ||
+          ((215 == (currCharInt = currentChar)) || (currCharInt == 168) ||
             (currCharInt == 247) || (currCharInt == 184))) ||
           ((isDashOrQuotePunctuation(currentChar)) && (Character
             .isWhitespace(content.charAt(iend - 1)) || 
isWhiteSpacePunctuation(content
@@ -568,7 +568,6 @@
   }
 
   public boolean add(String singleItem, Lookup lookup) {
-    boolean isAdded = false;
 
     // ALL-UPPER-CASE SUPPORT
     String upper = singleItem.toUpperCase();
@@ -688,7 +687,7 @@
   public String trunxSuffixVowelsFromPhrase(String phrase) {
     String line = phrase;
     int length = phrase.length();
-    String word;
+    //String word;
     StringBuffer stem = new StringBuffer();
     int lastWordEnd = 0;
     String justWord;
@@ -700,7 +699,7 @@
         if(lineIndex + 1 == length) lineIndex = length;
         // get the word
 
-        word = line.substring(0, lineIndex).trim();
+        //word = line.substring(0, lineIndex).trim();
         justWord = line.substring(lastWordEnd, lineIndex).trim();
         stem.append(trunxSuffixVowelsFromWord(justWord)).append(" ");
         lastWordEnd = lineIndex;
@@ -717,7 +716,7 @@
   public String trunxSuffixVowelsFromWord(String word) {
     int len = word.length();
     String lastCh;
-    String sufix2l;
+    
     int trunxCount = 0;
     while(len > minWordLength && trunxCount < maxTruncatedVowels) {
 

Modified: 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/morph/LemmaImpl.java
===================================================================
--- 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/morph/LemmaImpl.java    
    2014-03-15 10:48:33 UTC (rev 17674)
+++ 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/morph/LemmaImpl.java    
    2014-03-15 13:13:29 UTC (rev 17675)
@@ -143,7 +143,7 @@
    * @return the word-form that has this type
    */
   public String getWordForm(String type) {
-    return (String)root + typeVsSuffix.get(type);
+    return root + typeVsSuffix.get(type);
   }
 
   /**

Modified: 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/morph/POSTagger.java
===================================================================
--- 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/morph/POSTagger.java    
    2014-03-15 10:48:33 UTC (rev 17674)
+++ 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/morph/POSTagger.java    
    2014-03-15 13:13:29 UTC (rev 17675)
@@ -54,6 +54,7 @@
 import com.ontotext.russie.RussIEConstants;
 
 @CreoleResource(name = "Russian POS Tagger", icon = "pos-tagger")
+@SuppressWarnings({"rawtypes","unchecked"})
 public class POSTagger extends gate.creole.AbstractLanguageAnalyser implements
   RussIEConstants {
 
@@ -191,7 +192,7 @@
             Lemma lemma;
             fireStatusChanged(READING + configLine);
             while(lemmaIter.hasNext()) {
-              lemma = (Lemma)lemmaIter.next();
+              lemma = lemmaIter.next();
               fireProgressChanged(++lemmaIdx * 100 / linesCnt);
               this.add(lemma);
             } // while
@@ -299,7 +300,6 @@
     // letter to number or number to letter transition zone
     boolean l2nORn2lZone = false;
     char currentChar = 0;
-    boolean goonFlag = true;
     int typeWeight = 0;
 
     // note that the code within the next cycle is overwhelmed by complexity
@@ -366,7 +366,7 @@
         } else while(iend < length &&
           (Character.isLetterOrDigit(currentChar = content.charAt(iend)) ||
           // handling for ch and etc. cyrillic letters that fail the above 
check
-          ((215 == (currCharInt = (int)currentChar)) || (currCharInt == 168) ||
+          ((215 == (currCharInt = currentChar)) || (currCharInt == 168) ||
             (currCharInt == 247) || (currCharInt == 184))) ||
           ((isDashOrQuotePunctuation(currentChar)) && (Character
             .isWhitespace(content.charAt(iend - 1)) || 
isWhiteSpacePunctuation(content
@@ -572,6 +572,7 @@
 
     SuffixNest nest = lemma.getSuffixNest();
     String root = lemma.getRoot();
+    @SuppressWarnings("unused")
     String mainFormSuffix = lemma.getSuffix(lemma.getMainFormType());
 
     if(!caseSensitive.booleanValue()) {
@@ -733,7 +734,6 @@
     Iterator ni;
     String suffix = "";
     SuffixNest nest;
-    String type;
     String lemma;
     // temporary mediator
     Set types;

Modified: 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/morph/SuffixNestImpl.java
===================================================================
--- 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/morph/SuffixNestImpl.java
   2014-03-15 10:48:33 UTC (rev 17674)
+++ 
gate/trunk/plugins/Lang_Russian/src/com/ontotext/russie/morph/SuffixNestImpl.java
   2014-03-15 13:13:29 UTC (rev 17675)
@@ -117,9 +117,9 @@
     while(it.hasNext()) {
       o = it.next();
       if(o == null) continue;
-      if(o instanceof Set) {
-        allTypes.addAll((Set<String>)o);
-      }
+      
+        allTypes.addAll(o);
+      
       /*
        * if (o instanceof String) { allTypes.add((String)o); }
        */

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