This commit is contained in:
Looly
2023-04-18 11:17:32 +08:00
parent 315890ddc2
commit f66b5fe55e
3 changed files with 52 additions and 1 deletions

View File

@@ -122,7 +122,7 @@ public interface JSON extends Converter, Cloneable, Serializable {
* @since 4.0.6
*/
@SuppressWarnings("unchecked")
default <T> T getByPath(final String expression, final Class<T> resultType){
default <T> T getByPath(final String expression, final Type resultType){
return (T) config().getConverter().convert(resultType, getByPath(expression));
}