aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpigelvy <pigelvy@users.noreply.github.com>2017-04-25 15:16:52 +0200
committerGitHub <noreply@github.com>2017-04-25 15:16:52 +0200
commit2631f470f7918d561186102549e1522c29b81c2c (patch)
tree9cf982fd39666bbc51570787034435f78b77f020
parentd9b0cae5b675550519c7cd51119d4792c5734254 (diff)
downloadjackson-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.java2
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