Skip to content

Commit

Permalink
Yet another enumeration fix...
Browse files Browse the repository at this point in the history
  • Loading branch information
danielperano committed Jan 12, 2024
1 parent 98e042f commit fe6e1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/main/java/com/myworldvw/buoy/NativeMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public <T> NativeMapper register(Class<T> targetType, ObjectHandlers<T> handlers
}

public <T extends Enum<?>> NativeMapper registerEnum(Class<T> enumeration){
layouts.put(enumeration.getClass(), ValueLayout.JAVA_INT);
layouts.put(enumeration, ValueLayout.JAVA_INT);
return this;
}

Expand Down

0 comments on commit fe6e1e3

Please sign in to comment.