Skip to content
Permalink
Browse files

[JENKINS-50216] - Whitelist org.joda.time.DateTime so that there is n…

…o need to tweak converter priorities
  • Loading branch information
oleg-nenashev committed Apr 17, 2018
1 parent dbdef9b commit 498b54bb486d4a5dfd91ca47cfb04fbbf946502f
@@ -20,7 +20,6 @@
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.converters.Converter;
import com.thoughtworks.xstream.converters.MarshallingContext;
import com.thoughtworks.xstream.converters.UnmarshallingContext;
@@ -43,8 +42,7 @@
@Initializer(before = InitMilestone.PLUGINS_LISTED)
public static void initConverter() {
// Overrides the default converters, runs before the JEP-200 blacklist
Jenkins.XSTREAM2.registerConverter(new JodaDateTimeConverter(),
XStream.PRIORITY_VERY_HIGH + 1);
Jenkins.XSTREAM2.registerConverter(new JodaDateTimeConverter());
}

@Override
@@ -0,0 +1,2 @@
# JENKINS-50216 - com.google.jenkins.plugins.util.JodaDateTimeConverter
org.joda.time.DateTime

0 comments on commit 498b54b

Please sign in to comment.