Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Looks like I opted out from overloading the class name attribute.

  • Loading branch information...
commit d5ce27121e97bf975d68079ec9c6e3477eb287bc 1 parent 685240e
@kohsuke kohsuke authored
View
22 src/main/java/org/jenkinsci/jruby/JRubyMapper.java
@@ -1,22 +0,0 @@
-package org.jenkinsci.jruby;
-
-import com.thoughtworks.xstream.mapper.Mapper;
-import com.thoughtworks.xstream.mapper.MapperWrapper;
-import org.jruby.RubyBasicObject;
-
-/**
- * @author Kohsuke Kawaguchi
- */
-public class JRubyMapper extends MapperWrapper {
- public JRubyMapper(Mapper wrapped) {
- super(wrapped);
- }
-
- @Override
- public Class realClass(String elementName) {
- if (elementName.startsWith("ruby:"))
- return RubyBasicObject.class;
-
- return super.realClass(elementName);
- }
-}
View
7 src/test/java/org/jenkinsci/jruby/BasicTest.java
@@ -22,12 +22,7 @@ protected void setUp() throws Exception {
super.setUp();
jruby = new ScriptingContainer();
- xs = new XStream() {
- @Override
- protected MapperWrapper wrapMapper(MapperWrapper next) {
- return new JRubyMapper(next);
- }
- };
+ xs = new XStream();
Ruby runtime = jruby.getProvider().getRuntime();
xs.registerConverter(new RubyStringConverter(runtime));
xs.registerConverter(new RubyFixnumConverter(runtime));
Please sign in to comment.
Something went wrong with that request. Please try again.