Change scope of static constant for performance

from Gary Gregory, bug ref 16622


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137250 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2003-02-04 22:12:08 +00:00
parent 4c63a72053
commit 751c151c49
1 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
/* ==================================================================== /* ====================================================================
* The Apache Software License, Version 1.1 * 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. * reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -75,8 +75,9 @@
* *
* @author Brian S O'Neill * @author Brian S O'Neill
* @author Sean Schofield * @author Sean Schofield
* @author Gary Gregory
* @since 2.0 * @since 2.0
* @version $Id: FastDateFormat.java,v 1.2 2003/01/07 21:21:42 bayard Exp $ * @version $Id: FastDateFormat.java,v 1.3 2003/02/04 22:12:08 scolebourne Exp $
*/ */
public class FastDateFormat { public class FastDateFormat {
/** Style pattern */ /** Style pattern */
@ -86,7 +87,8 @@ public class FastDateFormat {
MEDIUM = new Integer(SimpleDateFormat.MEDIUM), MEDIUM = new Integer(SimpleDateFormat.MEDIUM),
SHORT = new Integer(SimpleDateFormat.SHORT); 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 String cDefaultPattern;
private static TimeZone cDefaultTimeZone = TimeZone.getDefault(); private static TimeZone cDefaultTimeZone = TimeZone.getDefault();