scolebourne 2003/02/04 14:12:09
Modified: lang/src/java/org/apache/commons/lang/time
FastDateFormat.java
Log:
Change scope of static constant for performance
from Gary Gregory, bug ref 16622
Revision Changes Path
1.3 +5 -3
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.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- FastDateFormat.java 7 Jan 2003 21:21:42 -0000 1.2
+++ FastDateFormat.java 4 Feb 2003 22:12:08 -0000 1.3
@@ -1,7 +1,7 @@
/* ====================================================================
* The Apache Software License, Version 1.1
*
- * Copyright (c) 2002 The Apache Software Foundation. All rights
+ * Copyright (c) 2002-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -75,6 +75,7 @@
*
* @author Brian S O'Neill
* @author Sean Schofield
+ * @author Gary Gregory
* @since 2.0
* @version $Id$
*/
@@ -86,7 +87,8 @@
MEDIUM = new Integer(SimpleDateFormat.MEDIUM),
SHORT = new Integer(SimpleDateFormat.SHORT);
- private static final double LOG_10 = Math.log(10);
+ // package scoped as used by inner class
+ static final double LOG_10 = Math.log(10);
private static String cDefaultPattern;
private static TimeZone cDefaultTimeZone = TimeZone.getDefault();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]