commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/time FastDateFormat.java
Date Fri, 25 Jul 2003 22:53:49 GMT
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message