Skip to content

Commit

Permalink
change class
Browse files Browse the repository at this point in the history
  • Loading branch information
firestar committed Nov 7, 2023
1 parent 9f7414c commit a6499ac
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ public boolean equals(Object obj) {
}
return super.equals(obj);
}
public static Object cast(DataEntry dataEntry, Class<DataEntry> clazz) throws JsonProcessingException {
public static Object cast(DataEntry dataEntry, Class<?> clazz) throws JsonProcessingException {
return new ObjectMapper().readValue(new ObjectMapper().writeValueAsString(dataEntry), clazz);
}
public Object cast(Class<DataEntry> clazz) throws JsonProcessingException {
public Object cast(Class<?> clazz) throws JsonProcessingException {
return new ObjectMapper().readValue(new ObjectMapper().writeValueAsString(this), clazz);
}
}

0 comments on commit a6499ac

Please sign in to comment.