diff options
author | pigelvy <pigelvy@users.noreply.github.com> | 2017-04-25 15:16:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-25 15:16:52 +0200 |
commit | 2631f470f7918d561186102549e1522c29b81c2c (patch) | |
tree | 9cf982fd39666bbc51570787034435f78b77f020 | |
parent | d9b0cae5b675550519c7cd51119d4792c5734254 (diff) | |
download | jackson-databind-2631f470f7918d561186102549e1522c29b81c2c.tar.gz |
JsonSerializer#serialize throws useless JsonProcessingException
Having "JsonProcessingException" in the throws list of JsonSerializer#serialize is useless because IOException (a superclass of JsonProcessingException) is also declared.
@see JsonSerializable#serialize
-rw-r--r-- | src/main/java/com/fasterxml/jackson/databind/JsonSerializer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/fasterxml/jackson/databind/JsonSerializer.java b/src/main/java/com/fasterxml/jackson/databind/JsonSerializer.java index debe5ec84..ae455ff58 100644 --- a/src/main/java/com/fasterxml/jackson/databind/JsonSerializer.java +++ b/src/main/java/com/fasterxml/jackson/databind/JsonSerializer.java @@ -120,7 +120,7 @@ public abstract class JsonSerializer<T> * serializing Objects value contains, if any. */ public abstract void serialize(T value, JsonGenerator gen, SerializerProvider serializers) - throws IOException, JsonProcessingException; + throws IOException; /** * Method that can be called to ask implementation to serialize |