File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
jr-objects/src/main/java/com/fasterxml/jackson/jr/ob/impl Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -789,7 +789,6 @@ protected String dateToString(Date v) {
789
789
* @since 2.17
790
790
*/
791
791
protected String pathToString (Path value ) {
792
- // return value.toUri().toString();
793
792
return value .toString ();
794
793
}
795
794
Original file line number Diff line number Diff line change @@ -278,8 +278,7 @@ protected Path _readPath(JsonParser p) throws IOException {
278
278
}
279
279
String v = p .getValueAsString ();
280
280
try {
281
- // return Paths.get(new URI(v));
282
- return Paths .get (new File (v ).toURI ());
281
+ return Paths .get (v );
283
282
} catch (Exception e ) {
284
283
throw new JSONObjectException ("Failed to bind `java.nio.file.Path` from value '" +v +"'" );
285
284
}
You can’t perform that action at this time.
0 commit comments