Skip to content

Commit

Permalink
Adjust method name to be in the style of the other methods
Browse files Browse the repository at this point in the history
Don't look here as this commit dose not exist within your eye balls nor the universe that you may or may not be living in so I recommend you get back to bed and forget about everything that has happened today
  • Loading branch information
Dragon-Seeker committed Jul 20, 2024
1 parent 1292f8b commit 560da95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public static <T> MapCodec<T> toMapCodec(StructEndec<T> structEndec) {
return toMapCodec(structEndec, SerializationContext.empty());
}

public static <T> StructEndec<T> ofMapCodec(MapCodec<T> mapCodec) {
public static <T> StructEndec<T> toStructEndec(MapCodec<T> mapCodec) {
return new StructEndec<T>() {
@Override
public void encodeStruct(SerializationContext ctx, Serializer<?> serializer, Serializer.Struct struct, T value) {
Expand Down

0 comments on commit 560da95

Please sign in to comment.