scwhittle commented on code in PR #37745:
URL: https://github.com/apache/beam/pull/37745#discussion_r2878150449


##########
sdks/java/core/src/main/java/org/apache/beam/sdk/coders/BigDecimalCoder.java:
##########
@@ -55,7 +55,7 @@ public void encode(BigDecimal value, OutputStream outStream) 
throws IOException,
   @Override
   public void encode(BigDecimal value, OutputStream outStream, Context context)
       throws IOException, CoderException {
-    checkNotNull(value, String.format("cannot encode a null %s", 
BigDecimal.class.getSimpleName()));
+    checkNotNull(value, "cannot encode a null %s", 
BigDecimal.class.getSimpleName());

Review Comment:
   just remove the message? doesn't add much beyond location
   ditto below



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to