You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by he...@apache.org on 2005/10/01 14:38:34 UTC
svn commit: r292974 - in
/jakarta/velocity/core/trunk/src/java/org/apache/velocity:
anakia/Escape.java runtime/parser/node/MathUtils.java
Author: henning
Date: Sat Oct 1 05:38:30 2005
New Revision: 292974
URL: http://svn.apache.org/viewcvs?rev=292974&view=rev
Log:
Make constant definitions final.
Modified:
jakarta/velocity/core/trunk/src/java/org/apache/velocity/anakia/Escape.java
jakarta/velocity/core/trunk/src/java/org/apache/velocity/runtime/parser/node/MathUtils.java
Modified: jakarta/velocity/core/trunk/src/java/org/apache/velocity/anakia/Escape.java
URL: http://svn.apache.org/viewcvs/jakarta/velocity/core/trunk/src/java/org/apache/velocity/anakia/Escape.java?rev=292974&r1=292973&r2=292974&view=diff
==============================================================================
--- jakarta/velocity/core/trunk/src/java/org/apache/velocity/anakia/Escape.java (original)
+++ jakarta/velocity/core/trunk/src/java/org/apache/velocity/anakia/Escape.java Sat Oct 1 05:38:30 2005
@@ -28,7 +28,7 @@
*/
public class Escape
{
- public static String LINE_SEPARATOR = System.getProperty("line.separator");
+ public static final String LINE_SEPARATOR = System.getProperty("line.separator");
/**
* Empty constructor
Modified: jakarta/velocity/core/trunk/src/java/org/apache/velocity/runtime/parser/node/MathUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/velocity/core/trunk/src/java/org/apache/velocity/runtime/parser/node/MathUtils.java?rev=292974&r1=292973&r2=292974&view=diff
==============================================================================
--- jakarta/velocity/core/trunk/src/java/org/apache/velocity/runtime/parser/node/MathUtils.java (original)
+++ jakarta/velocity/core/trunk/src/java/org/apache/velocity/runtime/parser/node/MathUtils.java Sat Oct 1 05:38:30 2005
@@ -50,8 +50,8 @@
/**
* A BigDecimal representing the number 0
*/
- protected static BigDecimal DECIMAL_ZERO = new BigDecimal ( 0 );
- protected static BigInteger INT_ZERO = BigInteger.valueOf( 0 );
+ protected static final BigDecimal DECIMAL_ZERO = new BigDecimal ( 0 );
+ protected static final BigInteger INT_ZERO = BigInteger.valueOf( 0 );
/**
* The constants are used to determine in which context we have to calculate.
@@ -65,7 +65,7 @@
/**
* The <code>Class</code>-object is key, the maximum-value is the value
*/
- protected static Map ints = new HashMap();
+ protected static final Map ints = new HashMap();
static
{
ints.put (Byte.class, BigDecimal.valueOf (Byte.MAX_VALUE));
@@ -78,7 +78,7 @@
/**
* The "size" of the number-types - ascending.
*/
- protected static List typesBySize = new ArrayList();
+ protected static final List typesBySize = new ArrayList();
static
{
typesBySize.add (Byte.class);
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org