Skip to content

Commit f5abfe3

Browse files
committed
Manually merge #1423
1 parent d2eeef7 commit f5abfe3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2290,7 +2290,7 @@ public <T> T readValue(JsonParser p, Class<T> valueType)
22902290
* expected for result type (or has other mismatch issues)
22912291
*/
22922292
@SuppressWarnings("unchecked")
2293-
public <T> T readValue(JsonParser p, TypeReference<?> valueTypeRef)
2293+
public <T> T readValue(JsonParser p, TypeReference<T> valueTypeRef)
22942294
throws IOException, JsonParseException, JsonMappingException
22952295
{
22962296
DeserializationContext ctxt = createDeserializationContext(p);
@@ -3660,7 +3660,7 @@ public <T> T convertValue(Object fromValue, Class<T> toValueType)
36603660
* See {@link #convertValue(Object, Class)}
36613661
*/
36623662
@SuppressWarnings("unchecked")
3663-
public <T> T convertValue(Object fromValue, TypeReference<?> toValueTypeRef)
3663+
public <T> T convertValue(Object fromValue, TypeReference<T> toValueTypeRef)
36643664
throws IllegalArgumentException
36653665
{
36663666
return (T) _convert(fromValue, _typeFactory.constructType(toValueTypeRef));

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ public <T> T readValue(JsonParser p, Class<T> valueType) throws IOException
977977
* (data-format specific) parser is given.
978978
*/
979979
@SuppressWarnings("unchecked")
980-
public <T> T readValue(JsonParser p, TypeReference<?> valueTypeRef) throws IOException
980+
public <T> T readValue(JsonParser p, TypeReference<T> valueTypeRef) throws IOException
981981
{
982982
return (T) forType(valueTypeRef).readValue(p);
983983
}
@@ -1050,7 +1050,7 @@ public <T> Iterator<T> readValues(JsonParser p, Class<T> valueType) throws IOExc
10501050
* NOTE: this method never tries to auto-detect format, since actual
10511051
* (data-format specific) parser is given.
10521052
*/
1053-
public <T> Iterator<T> readValues(JsonParser p, TypeReference<?> valueTypeRef) throws IOException {
1053+
public <T> Iterator<T> readValues(JsonParser p, TypeReference<T> valueTypeRef) throws IOException {
10541054
return forType(valueTypeRef).readValues(p);
10551055
}
10561056

0 commit comments

Comments
 (0)