Skip to content

Commit

Permalink
[JENKINS-50216] - Whitelist org.joda.time.DateTime so that there is n…
Browse files Browse the repository at this point in the history
…o need to tweak converter priorities
  • Loading branch information
oleg-nenashev committed Apr 17, 2018
1 parent dbdef9b commit 498b54b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -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;
Expand All @@ -43,8 +42,7 @@ public class JodaDateTimeConverter implements Converter {
@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
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/META-INF/hudson.remoting.ClassFilter
@@ -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.