commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1296529 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/dfp/DfpField.java
Date Sat, 03 Mar 2012 00:35:47 GMT
Author: sebb
Date: Sat Mar  3 00:35:47 2012
New Revision: 1296529

URL: http://svn.apache.org/viewvc?rev=1296529&view=rev
Log:
DOcument thread-safety of "mutable" static fields (actually write-once)

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/dfp/DfpField.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/dfp/DfpField.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/dfp/DfpField.java?rev=1296529&r1=1296528&r2=1296529&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/dfp/DfpField.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/dfp/DfpField.java Sat
Mar  3 00:35:47 2012
@@ -75,6 +75,8 @@ public class DfpField implements Field<D
     /** High precision string representation of &radic;2. */
     private static String sqr2String;
 
+    // Note: the static strings are set up (once) by the ctor and @GuardedBy("DfpField.class")
+
     /** High precision string representation of &radic;2 / 2. */
     private static String sqr2ReciprocalString;
 



Mime
View raw message