Revision: 14483
http://gate.svn.sourceforge.net/gate/?rev=14483&view=rev
Author: valyt
Date: 2011-11-02 10:44:00 +0000 (Wed, 02 Nov 2011)
Log Message:
-----------
String.replace() has no side effects on the original string, so the returned
values needs to be captured.
Modified Paths:
--------------
gate/trunk/src/gate/util/Tools.java
Modified: gate/trunk/src/gate/util/Tools.java
===================================================================
--- gate/trunk/src/gate/util/Tools.java 2011-11-02 10:41:04 UTC (rev 14482)
+++ gate/trunk/src/gate/util/Tools.java 2011-11-02 10:44:00 UTC (rev 14483)
@@ -77,7 +77,7 @@
String packageDir = packages[i].getName();
//look in the file system
if(!packageDir.startsWith("/")) packageDir = "/" + packageDir;
- packageDir.replace('.', Strings.getPathSep().charAt(0));
+ packageDir = packageDir.replace('.', Strings.getPathSep().charAt(0));
URL packageURL = Gate.getClassLoader().getResource(packageDir);
if(packageURL != null){
File directory = Files.fileFromURL(packageURL);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs