Revision: 19643
          http://sourceforge.net/p/gate/code/19643
Author:   markagreenwood
Date:     2016-10-06 09:56:56 +0000 (Thu, 06 Oct 2016)
Log Message:
-----------
some more minor tweaks

Modified Paths:
--------------
    
gate/branches/sawdust2/gate-core/src/main/java/gate/xml/XmlDocumentHandler.java

Modified: 
gate/branches/sawdust2/gate-core/src/main/java/gate/xml/XmlDocumentHandler.java
===================================================================
--- 
gate/branches/sawdust2/gate-core/src/main/java/gate/xml/XmlDocumentHandler.java 
    2016-10-06 09:52:06 UTC (rev 19642)
+++ 
gate/branches/sawdust2/gate-core/src/main/java/gate/xml/XmlDocumentHandler.java 
    2016-10-06 09:56:56 UTC (rev 19643)
@@ -305,7 +305,7 @@
       String attUri = atts.getURI(i);
       if (attUri != null && Gate.URI.equals(attUri)) {
         if ("gateId".equals(attName)) {
-          customObjectId = new Integer(attValue);
+          customObjectId = Integer.parseInt(attValue);
         }// End if
         if ("annotMaxId".equals(attName)) {
           customObjectsId = Integer.parseInt(attValue);
@@ -326,7 +326,7 @@
     }// End for
 
     // create the START index of the annotation
-    Long startIndex = new Long(tmpDocContent.length());
+    Long startIndex = Long.valueOf(tmpDocContent.length());
 
     // initialy the Start index is equal with End index
     CustomObject obj = new CustomObject(customObjectId, elemName, fm,
@@ -514,7 +514,7 @@
     contentBuffer.append(content);
     // calculate the End index for all the elements of the stack
     // the expression is : End index = Current doc length + text length
-    Long end = new Long(tmpDocContent.length() + contentBuffer.length());
+    Long end = Long.valueOf(tmpDocContent.length() + contentBuffer.length());
 
     CustomObject obj = null;
     // Iterate through stack to modify the End index of the existing elements
@@ -753,7 +753,7 @@
       start = aStart;
       end = anEnd;
       if (anId == null) {
-        id = new Integer(customObjectsId++);
+        id = customObjectsId++;
       } else {
         id = anId;
         if (customObjectsId <= anId.intValue()) {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to