/[Apache-SVN]
ViewVC logotype

Revision 812236


Jump to revision: Previous Next
Author: bayard
Date: Mon Sep 7 17:56:30 2009 UTC (15 years, 1 month ago)
Changed paths: 5
Log Message:
Applying Boris' patch in LANG-481 to improve thread safety in the Range classes. The previous code's reuse of the hashCode variable for local operations means it is utterly non-thread-safe. Now uses a local variable so that the worst case should be the hashCode being calculated multiple times, but not ending up with different values. 

Changed paths

Path Details
Directorycommons/proper/lang/trunk/src/java/org/apache/commons/lang/math/DoubleRange.java modified , text changed
Directorycommons/proper/lang/trunk/src/java/org/apache/commons/lang/math/FloatRange.java modified , text changed
Directorycommons/proper/lang/trunk/src/java/org/apache/commons/lang/math/IntRange.java modified , text changed
Directorycommons/proper/lang/trunk/src/java/org/apache/commons/lang/math/LongRange.java modified , text changed
Directorycommons/proper/lang/trunk/src/java/org/apache/commons/lang/math/NumberRange.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26