Skip to content

Commit 73dc9e5

Browse files
committed
Review comments fixes. Removed Test cases of removed code. FasterXML#5064
1 parent 9da0c35 commit 73dc9e5

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,12 +1529,6 @@ public <T> T readValue(InputStream src, Class<T> valueType) throws IOException
15291529
return (T) forType(valueType).readValue(src);
15301530
}
15311531

1532-
@SuppressWarnings("unchecked")
1533-
public <T> T readValue(InputStream src, T... reified) throws IOException
1534-
{
1535-
return forType(getClassOf(reified)).readValue(src);
1536-
}
1537-
15381532
/**
15391533
* Method that binds content read from given input source,
15401534
* using configuration of this reader.
@@ -1605,15 +1599,6 @@ public <T> T readValue(String src, Class<T> valueType) throws IOException
16051599
return (T) forType(valueType).readValue(src);
16061600
}
16071601

1608-
@SuppressWarnings("unchecked")
1609-
public <T> T readValue(String src, T... reified) throws IOException {
1610-
if (reified.length > 0) {
1611-
throw new IllegalArgumentException("Please don't pass any values here. Java will detect class automatically.");
1612-
}
1613-
1614-
return readValue(src, getClassOf(reified));
1615-
}
1616-
16171602
/**
16181603
* Utility method to get the class type from a varargs array.
16191604
*

src/test/java/com/fasterxml/jackson/databind/ObjectReaderTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,6 @@ public void testCanPassResultToOverloadedMethod() throws Exception {
461461
ObjectReader reader = MAPPER.readerFor(POJO.class).at("/foo/bar/caller");
462462

463463
process(reader.readValue(source, POJO.class));
464-
465-
POJO pojo = reader.readValue(source);
466-
process(pojo);
467464
}
468465

469466
void process(POJO pojo) {

0 commit comments

Comments
 (0)