Skip to content

Commit 6c5f228

Browse files
authored
Suggest alternative regarding #5257 (#5259)
1 parent 8e43cc5 commit 6c5f228

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,6 +1304,7 @@ public JsonParser createParser(File src) throws IOException {
13041304
* @since 2.11
13051305
*
13061306
* @deprecated since 2.20 deprecated as it calls {@link JsonFactory#createParser(URL)}.
1307+
* Instead, use equivalent methods that take InputStream inputs instead.
13071308
*/
13081309
@Deprecated // @since 2.20
13091310
public JsonParser createParser(URL src) throws IOException {
@@ -3355,6 +3356,7 @@ public JsonNode readTree(File file) throws IOException
33553356
* to create {@link java.io.InputStream} separately.
33563357
*
33573358
* @deprecated since 2.20 deprecated as it calls {@link JsonFactory#createParser(URL)}.
3359+
* Instead, use equivalent methods that take InputStream inputs instead.
33583360
*/
33593361
@Deprecated // @since 2.20
33603362
public JsonNode readTree(URL source) throws IOException
@@ -3825,6 +3827,7 @@ public <T> T readValue(File src, JavaType valueType)
38253827
* expected for result type (or has other mismatch issues)
38263828
*
38273829
* @deprecated since 2.20 deprecated as it calls {@link JsonFactory#createParser(URL)}.
3830+
* Instead, use equivalent methods that take InputStream inputs instead.
38283831
*/
38293832
@Deprecated // @since 2.20
38303833
@SuppressWarnings("unchecked")
@@ -3840,6 +3843,7 @@ public <T> T readValue(URL src, Class<T> valueType)
38403843
* Same as {@link #readValue(java.net.URL, Class)} except that target specified by {@link TypeReference}.
38413844
*
38423845
* @deprecated since 2.20 deprecated as it calls {@link JsonFactory#createParser(URL)}.
3846+
* Instead, use equivalent methods that take InputStream inputs instead.
38433847
*/
38443848
@Deprecated // @since 2.20
38453849
@SuppressWarnings({ "unchecked" })
@@ -3855,6 +3859,7 @@ public <T> T readValue(URL src, TypeReference<T> valueTypeRef)
38553859
* Same as {@link #readValue(java.net.URL, Class)} except that target specified by {@link JavaType}.
38563860
*
38573861
* @deprecated since 2.20 deprecated as it calls {@link JsonFactory#createParser(URL)}.
3862+
* Instead, use equivalent methods that take InputStream inputs instead.
38583863
*/
38593864
@Deprecated // @since 2.20
38603865
@SuppressWarnings("unchecked")

src/main/java/com/fasterxml/jackson/databind/ObjectReader.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,7 @@ public JsonParser createParser(File src) throws IOException {
11051105
* @since 2.11
11061106
*
11071107
* @deprecated since 2.20 deprecated as it calls {@link JsonFactory#createParser(URL)}.
1108+
* Instead, use equivalent methods that take InputStream inputs instead.
11081109
*/
11091110
@Deprecated // @since 2.20
11101111
public JsonParser createParser(URL src) throws IOException {
@@ -1704,6 +1705,7 @@ public <T> T readValue(File src, Class<T> valueType) throws IOException
17041705
* to create {@link java.io.InputStream} separately.
17051706
*
17061707
* @deprecated since 2.20 deprecated as it calls {@link JsonFactory#createParser(URL)}.
1708+
* Instead, use equivalent methods that take InputStream inputs instead.
17071709
*/
17081710
@Deprecated // @since 2.20
17091711
@SuppressWarnings("unchecked")
@@ -1725,6 +1727,7 @@ public <T> T readValue(URL src) throws IOException
17251727
* @since 2.11
17261728
*
17271729
* @deprecated since 2.20 deprecated as it calls {@link JsonFactory#createParser(URL)}.
1730+
* Instead, use equivalent methods that take InputStream inputs instead.
17281731
*/
17291732
@Deprecated // @since 2.20
17301733
@SuppressWarnings("unchecked")
@@ -2019,6 +2022,7 @@ public <T> MappingIterator<T> readValues(File src) throws IOException
20192022
* @param src URL to read to access JSON content to parse.
20202023
*
20212024
* @deprecated since 2.20 deprecated as it calls {@link JsonFactory#createParser(URL)}.
2025+
* Instead, use equivalent methods that take InputStream inputs instead.
20222026
*/
20232027
@Deprecated // @since 2.20
20242028
public <T> MappingIterator<T> readValues(URL src) throws IOException

0 commit comments

Comments
 (0)