Tibor17 commented on a change in pull request #332: URL: https://github.com/apache/maven-surefire/pull/332#discussion_r564434105
########## File path: surefire-api/src/main/java/org/apache/maven/surefire/api/stream/AbstractStreamEncoder.java ########## @@ -112,17 +113,17 @@ public void encodeString( CharsetEncoder encoder, ByteBuffer result, String stri { String nonNullString = nonNull( string ); - int counterPosition = result.position(); + int counterPosition = ( (Buffer) result ).position(); Review comment: `position` method is also in the Buffer class. Maybe we can directly declare such type. ---------------------------------------------------------------- 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: us...@infra.apache.org