Class SecondsDateConverter
java.lang.Object
com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
com.atlassian.bamboo.persister.xstream.SecondsDateConverter
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.ConverterMatcher
,com.thoughtworks.xstream.converters.SingleValueConverter
public class SecondsDateConverter
extends com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
This class is a temp bug fix for persisting dates in xstream
This was written to fix a bug in Xstream in that it ignored seconds. Although fixed in XStream, we still use it to so we can load old versions of the build.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvert
(Class type) Inform XStream that we're reponsible for converting dates.fromString
(String str)
-
Constructor Details
-
SecondsDateConverter
public SecondsDateConverter()
-
-
Method Details
-
canConvert
Inform XStream that we're reponsible for converting dates.- Specified by:
canConvert
in interfacecom.thoughtworks.xstream.converters.ConverterMatcher
- Specified by:
canConvert
in classcom.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
-
fromString
- Specified by:
fromString
in interfacecom.thoughtworks.xstream.converters.SingleValueConverter
- Specified by:
fromString
in classcom.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
-
toString
- Specified by:
toString
in interfacecom.thoughtworks.xstream.converters.SingleValueConverter
- Overrides:
toString
in classcom.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
-