myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r1414738 - /myfaces/core/branches/2.2.x/impl/src/main/java/org/apache/myfaces/util/ThreadsafeXorShiftRandom.java
Date Wed, 28 Nov 2012 14:56:09 GMT
Author: werpu
Date: Wed Nov 28 14:56:08 2012
New Revision: 1414738

URL: http://svn.apache.org/viewvc?rev=1414738&view=rev
Log:
MYFACES-3657 fix

Modified:
    myfaces/core/branches/2.2.x/impl/src/main/java/org/apache/myfaces/util/ThreadsafeXorShiftRandom.java

Modified: myfaces/core/branches/2.2.x/impl/src/main/java/org/apache/myfaces/util/ThreadsafeXorShiftRandom.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.2.x/impl/src/main/java/org/apache/myfaces/util/ThreadsafeXorShiftRandom.java?rev=1414738&r1=1414737&r2=1414738&view=diff
==============================================================================
--- myfaces/core/branches/2.2.x/impl/src/main/java/org/apache/myfaces/util/ThreadsafeXorShiftRandom.java
(original)
+++ myfaces/core/branches/2.2.x/impl/src/main/java/org/apache/myfaces/util/ThreadsafeXorShiftRandom.java
Wed Nov 28 14:56:08 2012
@@ -44,7 +44,7 @@ public class ThreadsafeXorShiftRandom ex
         super(0);
     }
 
-    private static final ThreadLocal<XorShiftRandom> random = new ThreadLocal<XorShiftRandom>()
+    private static final ThreadLocal<XorShiftRandom> randomThreadLocal = new ThreadLocal<XorShiftRandom>()
     {
         @Override
         protected XorShiftRandom initialValue()
@@ -61,6 +61,6 @@ public class ThreadsafeXorShiftRandom ex
     @Override
     public long random()
     {
-        return random.get().random();
+        return randomThreadLocal.get().random();
     }
 }



Mime
View raw message