Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
Simplify #47 test a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 3, 2015
1 parent 7a07a2a commit 0b8e6f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ public SettableObjectMethodProperty withMutator(BeanPropertyMutator mut) {

@Override
public void deserializeAndSet(JsonParser jp, DeserializationContext ctxt,
Object bean) throws IOException, JsonProcessingException
{
Object bean) throws IOException {
set(bean, deserialize(jp, ctxt));
}

Expand All @@ -60,9 +59,7 @@ public void set(Object bean, Object value) throws IOException {

@Override
public Object deserializeSetAndReturn(JsonParser jp,
DeserializationContext ctxt, Object instance)
throws IOException, JsonProcessingException
{
DeserializationContext ctxt, Object instance) throws IOException {
return setAndReturn(instance, deserialize(jp, ctxt));
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package com.fasterxml.jackson.module.afterburner.failing;

import java.util.*;

import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.module.afterburner.AfterburnerTestBase;

public class TestIssue47 extends AfterburnerTestBase
Expand All @@ -20,12 +17,6 @@ public interface FooBase extends Cloneable
{
String getId();
void setId(String id);

String getRevision();
void setRevision(String revision);

String getCategory();
void setCategory(String category);

FooBase clone() throws CloneNotSupportedException;
}
Expand All @@ -39,18 +30,6 @@ static class FooImpl1 implements FooBase {
@Override
public void setId(String id) { this.id = id; }

@Override
public String getRevision() { return revision; }

@Override
public void setRevision(String revision) { this.revision = revision; }

@Override
public String getCategory() { return category; }

@Override
public void setCategory(String category) { this.category = category; }

@Override
public FooBase clone() throws CloneNotSupportedException {
return this;
Expand Down

0 comments on commit 0b8e6f7

Please sign in to comment.