Skip to content

Commit

Permalink
added XStream converter
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsuke committed Oct 9, 2010
1 parent 38f42c1 commit 8d7ccc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/hudson/plugins/persona/Persona.java
Expand Up @@ -23,7 +23,6 @@
*/
package hudson.plugins.persona;

import com.thoughtworks.xstream.converters.basic.AbstractBasicConverter;
import com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter;
import hudson.ExtensionList;
import hudson.ExtensionPoint;
Expand Down Expand Up @@ -65,7 +64,7 @@ public static Persona byId(String id) {
return null;
}

public static final class ConverterImpl extends AbstractSingleValueConverter {
public static class ConverterImpl extends AbstractSingleValueConverter {
@Override
public Persona fromString(String id) {
return byId(id);
Expand Down
Expand Up @@ -34,4 +34,6 @@ protected SimplePersona(String id, List<String> quotes) {
public synchronized Action generateQuote(AbstractBuild<?, ?> build) {
return new DefaultQuoteImpl(build,this,quotes.get(random.nextInt(quotes.size())));
}

public static class ConverterImpl extends Persona.ConverterImpl {}
}

0 comments on commit 8d7ccc8

Please sign in to comment.