You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by dl...@apache.org on 2002/05/03 19:06:03 UTC
cvs commit: jakarta-commons-sandbox/resources/src/java/org/apache/commons/resources/file FileResources.java
dlr 02/05/03 10:06:03
Modified: resources/src/java/org/apache/commons/resources/file
FileResources.java
Log:
Replaced single character String object with the equivalent char.
Revision Changes Path
1.4 +5 -5 jakarta-commons-sandbox/resources/src/java/org/apache/commons/resources/file/FileResources.java
Index: FileResources.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/resources/src/java/org/apache/commons/resources/file/FileResources.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -u -r1.3 -r1.4
--- FileResources.java 25 Oct 2001 19:33:21 -0000 1.3
+++ FileResources.java 3 May 2002 17:06:03 -0000 1.4
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-commons-sandbox/resources/src/java/org/apache/commons/resources/file/FileResources.java,v 1.3 2001/10/25 19:33:21 mschachter Exp $
- * $Revision: 1.3 $
- * $Date: 2001/10/25 19:33:21 $
+ * $Header: /home/cvs/jakarta-commons-sandbox/resources/src/java/org/apache/commons/resources/file/FileResources.java,v 1.4 2002/05/03 17:06:03 dlr Exp $
+ * $Revision: 1.4 $
+ * $Date: 2002/05/03 17:06:03 $
*
* ====================================================================
*
@@ -95,7 +95,7 @@
* <li><b>maxCacheSize</b> - The maximum size in bytes that is allowed for a cached
* file, or -1 for an unlimited cache size [100K]
* @author Mike Schachter (mschachter@hp.com)
- * @version $Revision: 1.3 $ $Date: 2001/10/25 19:33:21 $
+ * @version $Revision: 1.4 $ $Date: 2002/05/03 17:06:03 $
*/
public class FileResources extends ResourcesBase {
@@ -392,7 +392,7 @@
if (timeZone != null) {
zoneID = timeZone.getID();
}
- int eIndex = key.lastIndexOf(".");
+ int eIndex = key.lastIndexOf('.');
if (eIndex != -1) {
//grab extension
extension = key.substring(eIndex+1, key.length());
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>