Revision: 17876
http://sourceforge.net/p/gate/code/17876
Author: markagreenwood
Date: 2014-04-18 15:50:54 +0000 (Fri, 18 Apr 2014)
Log Message:
-----------
and a few more
Modified Paths:
--------------
gate/trunk/src/main/gate/gui/MainFrame.java
gate/trunk/src/main/gate/gui/STreeNode.java
Modified: gate/trunk/src/main/gate/gui/MainFrame.java
===================================================================
--- gate/trunk/src/main/gate/gui/MainFrame.java 2014-04-18 12:03:56 UTC (rev
17875)
+++ gate/trunk/src/main/gate/gui/MainFrame.java 2014-04-18 15:50:54 UTC (rev
17876)
@@ -1787,7 +1787,7 @@
// Create an ApplicationListener proxy instance
Object applicationListenerObject =
Proxy.newProxyInstance(Gate.getClassLoader(),
- new Class[]{eawtApplicationListenerInterface}, handler);
+ new Class<?>[]{eawtApplicationListenerInterface}, handler);
// get hold of the Application object
Method getApplicationMethod =
@@ -3328,7 +3328,7 @@
dsLocation.getText());
// we need to set Indexer
- Class<?>[] consParam = new Class[1];
+ Class<?>[] consParam = new Class<?>[1];
consParam[0] = URL.class;
Constructor<?> constructor =
Class.forName("gate.creole.annic.lucene.LuceneIndexer", true,
@@ -3398,7 +3398,7 @@
.put(Constants.FEATURES_TO_INCLUDE, new ArrayList<String>());
}
- Class<?>[] params = new Class[2];
+ Class<?>[] params = new Class<?>[2];
params[0] =
Class.forName("gate.creole.annic.Indexer", true, Gate
.getClassLoader());
@@ -3411,7 +3411,7 @@
Class.forName("gate.creole.annic.lucene.LuceneSearcher", true,
Gate.getClassLoader()).getConstructor();
Object searcher = searcherConst.newInstance();
- Class<?>[] searchParams = new Class[1];
+ Class<?>[] searchParams = new Class<?>[1];
searchParams[0] =
Class.forName("gate.creole.annic.Searcher", true, Gate
.getClassLoader());
Modified: gate/trunk/src/main/gate/gui/STreeNode.java
===================================================================
--- gate/trunk/src/main/gate/gui/STreeNode.java 2014-04-18 12:03:56 UTC (rev
17875)
+++ gate/trunk/src/main/gate/gui/STreeNode.java 2014-04-18 15:50:54 UTC (rev
17876)
@@ -201,6 +201,7 @@
* Also, for each annotation in removed, removes it from the given
annotation set
* Called by OkAction() in the treeViewer to finalise the changes.
*/
+ @SuppressWarnings({"unchecked","cast","rawtypes"})
public static boolean transferAnnotations(Document doc, AnnotationSet
targetAS) {
if (doc == null || targetAS == null)
return false;
@@ -230,9 +231,9 @@
//now update the consists Ids, because they have the old Ids in them
for (int i=0; i < newAnnots.size(); i++) {
Annotation newAnnot = newAnnots.get(i);
- @SuppressWarnings({"unchecked","cast"})
- List<Integer> children = (List<Integer>)newAnnot.getFeatures().get(
- SyntaxTreeViewer.NODE_CONSISTS_FEATURE_NAME);
+
+ List<Integer> children =
(List<Integer>)newAnnot.getFeatures().get(SyntaxTreeViewer.NODE_CONSISTS_FEATURE_NAME);
+
if (children == null || children.size()== 0) {
continue;
}
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