Remove an unnecessary call to `protoBuilder.build()`.
If you don't consume the return value of `build()`, the result is discarded and the only effect is to verify that all required fields are set (which, if desired, can be expressed more directly with `isInitialized()`).
@@ -281,7 +281,7 @@ public class MapsTest extends ProtobufTest {
public void testIsInitialized() throws Exception {
MapMsg.Builder builder = MapMsg.newBuilder();
- builder.build(); // Check no exception.
+ MapMsg unused = builder.build(); // Check no exception.
builder.putStringMessage("foo", MapValue.newBuilder().buildPartial());
try {
builder.build();
