Revision: 17670
http://sourceforge.net/p/gate/code/17670
Author: markagreenwood
Date: 2014-03-15 09:18:40 +0000 (Sat, 15 Mar 2014)
Log Message:
-----------
and that's all the F* plugins cleaned up and the compiler warnings enabled
Modified Paths:
--------------
gate/trunk/plugins/Format_CSV/build.xml
gate/trunk/plugins/Format_FastInfoset/build.xml
gate/trunk/plugins/Format_MediaWiki/build.xml
gate/trunk/plugins/Format_MediaWiki/src/gate/corpora/MediaWikiDocumentFormat.java
gate/trunk/plugins/Format_MediaWiki/src/gate/corpora/MediaWikiPopulater.java
gate/trunk/plugins/Format_MediaWiki/src/gate/corpora/MediaWikiXMLDocumentFormat.java
gate/trunk/plugins/Format_PubMed/build.xml
gate/trunk/plugins/Format_PubMed/src/gate/corpora/CochraneTextDocumentFormat.java
gate/trunk/plugins/Format_PubMed/src/gate/corpora/PubmedTextDocumentFormat.java
gate/trunk/plugins/Format_PubMed/src/gate/corpora/PubmedUtils.java
Modified: gate/trunk/plugins/Format_CSV/build.xml
===================================================================
--- gate/trunk/plugins/Format_CSV/build.xml 2014-03-15 09:10:33 UTC (rev
17669)
+++ gate/trunk/plugins/Format_CSV/build.xml 2014-03-15 09:18:40 UTC (rev
17670)
@@ -49,7 +49,11 @@
debug="true"
debuglevel="lines,source"
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/Format_FastInfoset/build.xml
===================================================================
--- gate/trunk/plugins/Format_FastInfoset/build.xml 2014-03-15 09:10:33 UTC
(rev 17669)
+++ gate/trunk/plugins/Format_FastInfoset/build.xml 2014-03-15 09:18:40 UTC
(rev 17670)
@@ -44,7 +44,10 @@
<!-- compile the source -->
<target name="compile" depends="prepare, resources">
- <javac classpathref="compile.classpath" srcdir="${src.dir}"
destdir="${classes.dir}" debug="true" debuglevel="lines,source" source="1.5"
target="1.5">
+ <javac classpathref="compile.classpath" srcdir="${src.dir}"
destdir="${classes.dir}" debug="true" debuglevel="lines,source" source="1.6"
target="1.6">
+ <compilerarg value="-Xmaxwarns" />
+ <compilerarg value="${gate.compile.maxwarnings}" />
+ <compilerarg value="-Xlint:all" />
</javac>
</target>
Modified: gate/trunk/plugins/Format_MediaWiki/build.xml
===================================================================
--- gate/trunk/plugins/Format_MediaWiki/build.xml 2014-03-15 09:10:33 UTC
(rev 17669)
+++ gate/trunk/plugins/Format_MediaWiki/build.xml 2014-03-15 09:18:40 UTC
(rev 17670)
@@ -39,7 +39,10 @@
<!-- compile the source -->
<target name="compile" depends="prepare, resources">
- <javac classpathref="compile.classpath" srcdir="${src.dir}"
destdir="${classes.dir}" debug="true" debuglevel="lines,source" source="1.5"
target="1.5">
+ <javac classpathref="compile.classpath" srcdir="${src.dir}"
destdir="${classes.dir}" debug="true" debuglevel="lines,source" source="1.6"
target="1.6">
+ <compilerarg value="-Xmaxwarns" />
+ <compilerarg value="${gate.compile.maxwarnings}" />
+ <compilerarg value="-Xlint:all" />
</javac>
</target>
Modified:
gate/trunk/plugins/Format_MediaWiki/src/gate/corpora/MediaWikiDocumentFormat.java
===================================================================
---
gate/trunk/plugins/Format_MediaWiki/src/gate/corpora/MediaWikiDocumentFormat.java
2014-03-15 09:10:33 UTC (rev 17669)
+++
gate/trunk/plugins/Format_MediaWiki/src/gate/corpora/MediaWikiDocumentFormat.java
2014-03-15 09:18:40 UTC (rev 17670)
@@ -40,6 +40,8 @@
autoinstances = {@AutoInstance(hidden = true)})
public class MediaWikiDocumentFormat extends NekoHtmlDocumentFormat {
+ private static final long serialVersionUID = 2979612569607249915L;
+
/**
* so that we don't end up with a document littered with unparsed "magic
words" we
* we need a custom model that we can use to filter them out
Modified:
gate/trunk/plugins/Format_MediaWiki/src/gate/corpora/MediaWikiPopulater.java
===================================================================
---
gate/trunk/plugins/Format_MediaWiki/src/gate/corpora/MediaWikiPopulater.java
2014-03-15 09:10:33 UTC (rev 17669)
+++
gate/trunk/plugins/Format_MediaWiki/src/gate/corpora/MediaWikiPopulater.java
2014-03-15 09:18:40 UTC (rev 17670)
@@ -47,6 +47,8 @@
@CreoleResource(name = "MediaWiki Corpus Populater", tool = true,
autoinstances = @AutoInstance)
public class MediaWikiPopulater extends ResourceHelper {
+ private static final long serialVersionUID = -2505026690286047751L;
+
/**
* so that we don't end up with a document littered with unparsed
* "magic words" we we need a custom model that we can use to filter them out
@@ -69,6 +71,7 @@
}
};
+ @SuppressWarnings("serial")
@Override
protected List<Action> buildActions(final NameBearerHandle handle) {
List<Action> actions = new ArrayList<Action>();
Modified:
gate/trunk/plugins/Format_MediaWiki/src/gate/corpora/MediaWikiXMLDocumentFormat.java
===================================================================
---
gate/trunk/plugins/Format_MediaWiki/src/gate/corpora/MediaWikiXMLDocumentFormat.java
2014-03-15 09:10:33 UTC (rev 17669)
+++
gate/trunk/plugins/Format_MediaWiki/src/gate/corpora/MediaWikiXMLDocumentFormat.java
2014-03-15 09:18:40 UTC (rev 17670)
@@ -51,6 +51,8 @@
@CreoleResource(name = "MediaWiki XML Document Format", isPrivate = true,
autoinstances = {@AutoInstance(hidden = true)})
public class MediaWikiXMLDocumentFormat extends NekoHtmlDocumentFormat {
+ private static final long serialVersionUID = 5954146546655770283L;
+
/**
* so that we don't end up with a document littered with unparsed
* "magic words" we we need a custom model that we can use to filter them out
Modified: gate/trunk/plugins/Format_PubMed/build.xml
===================================================================
--- gate/trunk/plugins/Format_PubMed/build.xml 2014-03-15 09:10:33 UTC (rev
17669)
+++ gate/trunk/plugins/Format_PubMed/build.xml 2014-03-15 09:18:40 UTC (rev
17670)
@@ -37,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>
<!-- Build JavaDoc documentation -->
Modified:
gate/trunk/plugins/Format_PubMed/src/gate/corpora/CochraneTextDocumentFormat.java
===================================================================
---
gate/trunk/plugins/Format_PubMed/src/gate/corpora/CochraneTextDocumentFormat.java
2014-03-15 09:10:33 UTC (rev 17669)
+++
gate/trunk/plugins/Format_PubMed/src/gate/corpora/CochraneTextDocumentFormat.java
2014-03-15 09:18:40 UTC (rev 17670)
@@ -51,7 +51,8 @@
isPrivate = true)
public class CochraneTextDocumentFormat extends TextualDocumentFormat {
-
+ private static final long serialVersionUID = 8362288605943414676L;
+
private static final String COCHRANE_TITLE = "TI";
private static final String COCHRANE_ABSTRACT = "AB";
Modified:
gate/trunk/plugins/Format_PubMed/src/gate/corpora/PubmedTextDocumentFormat.java
===================================================================
---
gate/trunk/plugins/Format_PubMed/src/gate/corpora/PubmedTextDocumentFormat.java
2014-03-15 09:10:33 UTC (rev 17669)
+++
gate/trunk/plugins/Format_PubMed/src/gate/corpora/PubmedTextDocumentFormat.java
2014-03-15 09:18:40 UTC (rev 17670)
@@ -15,18 +15,6 @@
*/
package gate.corpora;
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.Serializable;
-import java.io.StringReader;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import org.apache.log4j.Logger;
-
import gate.AnnotationSet;
import gate.Document;
import gate.Factory;
@@ -39,6 +27,17 @@
import gate.util.InvalidOffsetException;
import gate.util.Strings;
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.Serializable;
+import java.io.StringReader;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import org.apache.log4j.Logger;
+
/**
* A document format analyser for PubMed text documents. Use mime type value
* "text/x-pubmed", or file extension ".pubmed.txt" to access this document
Modified: gate/trunk/plugins/Format_PubMed/src/gate/corpora/PubmedUtils.java
===================================================================
--- gate/trunk/plugins/Format_PubMed/src/gate/corpora/PubmedUtils.java
2014-03-15 09:10:33 UTC (rev 17669)
+++ gate/trunk/plugins/Format_PubMed/src/gate/corpora/PubmedUtils.java
2014-03-15 09:18:40 UTC (rev 17670)
@@ -50,6 +50,7 @@
newValue.add(fieldValue);
fieldValues.put(fieldName, newValue);
} else { // old value must be a LinkedList<String>
+ @SuppressWarnings("unchecked")
LinkedList<String> newValue = (LinkedList<String>)oldValue;
newValue.add(fieldValue);
}
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