Issue: SPR-14528
This commit is contained in:
Stephane Nicoll 2017-06-29 10:26:50 +02:00
parent 33f99910dd
commit b1f06fddd2
2 changed files with 4 additions and 4 deletions

View File

@ -17,6 +17,7 @@
package org.springframework.http.codec.json;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.lang.annotation.Annotation;
import java.util.List;
import java.util.Map;
@ -29,7 +30,6 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectReader;
import com.fasterxml.jackson.databind.exc.InvalidDefinitionException;
import com.fasterxml.jackson.databind.util.TokenBuffer;
import org.eclipse.jetty.io.RuntimeIOException;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@ -151,7 +151,7 @@ public class Jackson2JsonDecoder extends Jackson2CodecSupport implements HttpMes
return factory.createNonBlockingByteArrayParser();
}
catch (IOException ex) {
throw new RuntimeIOException(ex);
throw new UncheckedIOException(ex);
}
}
}

View File

@ -17,6 +17,7 @@
package org.springframework.http.codec.json;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.util.List;
import java.util.function.Consumer;
@ -24,7 +25,6 @@ import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.TreeNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.eclipse.jetty.io.RuntimeIOException;
import org.json.JSONException;
import org.junit.Before;
import org.junit.Test;
@ -147,7 +147,7 @@ public class Jackson2TokenizerTests extends AbstractDataBufferAllocatingTestCase
return this.objectMapper.writeValueAsString(root);
}
catch (IOException ex) {
throw new RuntimeIOException(ex);
throw new UncheckedIOException(ex);
}
});