update to joda 2.2
This commit is contained in:
parent
e09e3eb73b
commit
2ab72da7d6
2
pom.xml
2
pom.xml
|
@ -164,7 +164,7 @@
|
||||||
<artifactId>joda-time</artifactId>
|
<artifactId>joda-time</artifactId>
|
||||||
<!-- joda 2.0 moved to using volatile fields for datetime -->
|
<!-- joda 2.0 moved to using volatile fields for datetime -->
|
||||||
<!-- When updating to a new version, make sure to update our copy of BaseDateTime -->
|
<!-- When updating to a new version, make sure to update our copy of BaseDateTime -->
|
||||||
<version>2.1</version>
|
<version>2.2</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
|
@ -25,10 +25,6 @@ import org.joda.time.convert.InstantConverter;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
|
||||||
* WE COPIED THIS FILE TO REMOVE THE volatile from it!...
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseDateTime is an abstract implementation of ReadableDateTime that stores
|
* BaseDateTime is an abstract implementation of ReadableDateTime that stores
|
||||||
* data in <code>long</code> and <code>Chronology</code> fields.
|
* data in <code>long</code> and <code>Chronology</code> fields.
|
||||||
|
@ -56,11 +52,12 @@ public abstract class BaseDateTime
|
||||||
/**
|
/**
|
||||||
* The millis from 1970-01-01T00:00:00Z
|
* The millis from 1970-01-01T00:00:00Z
|
||||||
*/
|
*/
|
||||||
|
// THIS IS THE ES CHANGE not to have it volatile...
|
||||||
private long iMillis;
|
private long iMillis;
|
||||||
/**
|
/**
|
||||||
* The chronology to use
|
* The chronology to use
|
||||||
*/
|
*/
|
||||||
private Chronology iChronology;
|
private volatile Chronology iChronology;
|
||||||
|
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue