scolebourne 2003/07/25 15:53:49
Modified: lang/src/java/org/apache/commons/lang/time
FastDateFormat.java
Log:
Remove unneeded String constructor as found by findBugs
Revision Changes Path
1.12 +2 -2
jakarta-commons/lang/src/java/org/apache/commons/lang/time/FastDateFormat.java
Index: FastDateFormat.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/time/FastDateFormat.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- FastDateFormat.java 22 Jul 2003 00:09:14 -0000 1.11
+++ FastDateFormat.java 25 Jul 2003 22:53:49 -0000 1.12
@@ -572,7 +572,7 @@
if (sub.length() == 1) {
rule = new CharacterLiteral(sub.charAt(0));
} else {
- rule = new StringLiteral(new String(sub));
+ rule = new StringLiteral(sub);
}
break;
default:
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]