From 0b8e6f744edb71f406dc72b2e6e472110a4a1c4f Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Fri, 2 Jan 2015 16:42:37 -0800 Subject: [PATCH] Simplify #47 test a bit --- .../deser/SettableObjectMethodProperty.java | 7 ++----- .../afterburner/failing/TestIssue47.java | 21 ------------------- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/src/main/java/com/fasterxml/jackson/module/afterburner/deser/SettableObjectMethodProperty.java b/src/main/java/com/fasterxml/jackson/module/afterburner/deser/SettableObjectMethodProperty.java index fc4274d..16db722 100644 --- a/src/main/java/com/fasterxml/jackson/module/afterburner/deser/SettableObjectMethodProperty.java +++ b/src/main/java/com/fasterxml/jackson/module/afterburner/deser/SettableObjectMethodProperty.java @@ -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)); } @@ -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)); } } diff --git a/src/test/java/com/fasterxml/jackson/module/afterburner/failing/TestIssue47.java b/src/test/java/com/fasterxml/jackson/module/afterburner/failing/TestIssue47.java index 440ef8a..edf51a0 100644 --- a/src/test/java/com/fasterxml/jackson/module/afterburner/failing/TestIssue47.java +++ b/src/test/java/com/fasterxml/jackson/module/afterburner/failing/TestIssue47.java @@ -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 @@ -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; } @@ -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;