iemejia commented on a change in pull request #11263: [BEAM-9325] Override 
proper write method in UnownedOutputStream
URL: https://github.com/apache/beam/pull/11263#discussion_r401049373
 
 

 ##########
 File path: 
sdks/java/core/src/main/java/org/apache/beam/sdk/util/UnownedOutputStream.java
 ##########
 @@ -53,4 +53,9 @@ public int hashCode() {
   public String toString() {
     return MoreObjects.toStringHelper(UnownedOutputStream.class).add("out", 
out).toString();
   }
+
+  @Override
+  public void write(byte[] b, int off, int len) throws IOException {
+    out.write(b, off, len);
 
 Review comment:
   Wondering if we should do the bounds check here too (like in 
`FilterOutputStream` or we assume that the delegated does the check? opinions 
@lukecwik 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to