Revision: 19652 http://sourceforge.net/p/gate/code/19652 Author: markagreenwood Date: 2016-10-08 08:28:08 +0000 (Sat, 08 Oct 2016) Log Message: ----------- more findbugs configuration and some more bug/performance fixes
Modified Paths: -------------- gate/branches/sawdust2/gate-core/findbugs-excluded.xml gate/branches/sawdust2/gate-core/src/main/java/gate/util/Tools.java gate/branches/sawdust2/gate-core/src/main/java/gate/xml/XmlDocumentHandler.java Modified: gate/branches/sawdust2/gate-core/findbugs-excluded.xml =================================================================== --- gate/branches/sawdust2/gate-core/findbugs-excluded.xml 2016-10-08 07:23:32 UTC (rev 19651) +++ gate/branches/sawdust2/gate-core/findbugs-excluded.xml 2016-10-08 08:28:08 UTC (rev 19652) @@ -10,10 +10,13 @@ </Match> <!-- - Don't bother checking packages where the code is auto-generated as there is - nothing we can do to fix any errors that are found anyway. + Don't bother checking packages where the code is auto-generated or included via jar-jar + as there is nothing we can do to fix any errors that are found anyway. --> <Match> - <Package name="~gate\.creole\.annic\.apache\.lucene.*" /> + <Or> + <Package name="~gate\.creole\.annic\.apache\.lucene.*" /> + <Package name="~gate\.resources\.img\.svg.*" /> + </Or> </Match> </FindBugsFilter> Modified: gate/branches/sawdust2/gate-core/src/main/java/gate/util/Tools.java =================================================================== --- gate/branches/sawdust2/gate-core/src/main/java/gate/util/Tools.java 2016-10-08 07:23:32 UTC (rev 19651) +++ gate/branches/sawdust2/gate-core/src/main/java/gate/util/Tools.java 2016-10-08 08:28:08 UTC (rev 19652) @@ -44,12 +44,12 @@ * System.exit... */ static public synchronized Long gensym(){ - return new Long(sym++); + return sym++; } static public synchronized Long genTime(){ - return new Long(new Date().getTime()); + return new Date().getTime(); } 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-08 07:23:32 UTC (rev 19651) +++ gate/branches/sawdust2/gate-core/src/main/java/gate/xml/XmlDocumentHandler.java 2016-10-08 08:28:08 UTC (rev 19652) @@ -316,7 +316,7 @@ // Take all tokens,create Integers and add them to the list while (strTokenizer.hasMoreTokens()) { String token = strTokenizer.nextToken(); - list.add(new Integer(token)); + list.add(Integer.valueOf(token)); }// End while fm.put(attName, list); }// End if @@ -524,7 +524,7 @@ // get the object and move to the next one obj = anIterator.next(); if (incrementStartIndex && obj.getStart().equals(obj.getEnd())) { - obj.setStart(new Long(obj.getStart().longValue() + 1)); + obj.setStart(obj.getStart() + 1); }// End if // sets its End index obj.setEnd(end); 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 GATE-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gate-cvs