Skip to content

Commit

Permalink
KISS
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille committed Oct 3, 2024
1 parent b02db2e commit ac56253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/io/github/mmm/entity/Entity.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ static <E extends Entity> Id<E> getId(E entity) {
* {@link Entity} was {@code null}.
*/
@SuppressWarnings("unchecked")
static <E extends Entity> Class<? extends E> getJavaClass(E entity) {
static <E extends Entity> Class<E> getJavaClass(E entity) {

if (entity == null) {
return null;
}
return (Class<? extends E>) entity.getJavaClass();
return (Class<E>) entity.getJavaClass();
}

}

0 comments on commit ac56253

Please sign in to comment.