diff --git a/src/main/java/io/github/murdos/easyrandom/protobuf/ProtobufMessageBuilderRandomizer.java b/src/main/java/io/github/murdos/easyrandom/protobuf/ProtobufMessageBuilderRandomizer.java index 1d0af01..4d71a24 100644 --- a/src/main/java/io/github/murdos/easyrandom/protobuf/ProtobufMessageBuilderRandomizer.java +++ b/src/main/java/io/github/murdos/easyrandom/protobuf/ProtobufMessageBuilderRandomizer.java @@ -20,6 +20,9 @@ import org.jeasy.random.EasyRandomParameters; import org.jeasy.random.api.Randomizer; +/** + * Generate a random Protobuf {@link Message.Builder}. + */ public class ProtobufMessageBuilderRandomizer implements Randomizer { private final ProtobufMessageRandomizer protobufMessageRandomizer; @@ -37,6 +40,7 @@ public ProtobufMessageBuilderRandomizer( ); } + @SuppressWarnings("unchecked") private static Class retrieveMessageClassFromBuilderClass(Class messageBuilderClass) { return (Class) messageBuilderClass.getEnclosingClass(); } @@ -45,4 +49,8 @@ private static Class retrieveMessageClassFromBuilderClass(Class