Skip to content

Commit d218c8f

Browse files
committed
Simplify handling as per @jhonnen's suggestions
1 parent 66cf5b3 commit d218c8f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

jr-objects/src/main/java/com/fasterxml/jackson/jr/ob/impl/JSONWriter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,6 @@ protected String dateToString(Date v) {
789789
* @since 2.17
790790
*/
791791
protected String pathToString(Path value) {
792-
// return value.toUri().toString();
793792
return value.toString();
794793
}
795794

jr-objects/src/main/java/com/fasterxml/jackson/jr/ob/impl/SimpleValueReader.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,7 @@ protected Path _readPath(JsonParser p) throws IOException {
278278
}
279279
String v = p.getValueAsString();
280280
try {
281-
// return Paths.get(new URI(v));
282-
return Paths.get(new File(v).toURI());
281+
return Paths.get(v);
283282
} catch (Exception e) {
284283
throw new JSONObjectException("Failed to bind `java.nio.file.Path` from value '"+v+"'");
285284
}

0 commit comments

Comments
 (0)