Revision: 17878
          http://sourceforge.net/p/gate/code/17878
Author:   markagreenwood
Date:     2014-04-18 16:47:12 +0000 (Fri, 18 Apr 2014)
Log Message:
-----------
suppress some as they can't be easily fixed

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

Modified: gate/trunk/src/main/gate/gui/FeaturesSchemaEditor.java
===================================================================
--- gate/trunk/src/main/gate/gui/FeaturesSchemaEditor.java      2014-04-18 
16:24:45 UTC (rev 17877)
+++ gate/trunk/src/main/gate/gui/FeaturesSchemaEditor.java      2014-04-18 
16:47:12 UTC (rev 17878)
@@ -61,7 +61,7 @@
 
 /**
  */
-@SuppressWarnings("serial")
+@SuppressWarnings({"serial","rawtypes","unchecked"})
 @CreoleResource(name = "Resource Features", guiType = GuiType.SMALL,
     resourceDisplayed = "gate.util.FeatureBearer")
 public class FeaturesSchemaEditor extends XJTable
@@ -198,7 +198,6 @@
    * Fire a table data changed event for the feature table whith featureList
    * used as data model.
    */
-  @SuppressWarnings({"rawtypes", "unchecked"})
   protected void populate(){
     featureList.clear();
     //get all the existing features

Modified: gate/trunk/src/main/gate/gui/STreeNode.java
===================================================================
--- gate/trunk/src/main/gate/gui/STreeNode.java 2014-04-18 16:24:45 UTC (rev 
17877)
+++ gate/trunk/src/main/gate/gui/STreeNode.java 2014-04-18 16:47:12 UTC (rev 
17878)
@@ -201,7 +201,6 @@
     * 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;
@@ -232,7 +231,8 @@
       for (int i=0; i < newAnnots.size(); i++) {
         Annotation newAnnot = newAnnots.get(i);
         
-        List<Integer> children = 
(List<Integer>)newAnnot.getFeatures().get(SyntaxTreeViewer.NODE_CONSISTS_FEATURE_NAME);
+        @SuppressWarnings("unchecked")
+        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

Reply via email to