srowen commented on a change in pull request #25335: [SPARK-28601][CORE][SQL] 
Use StandardCharsets.UTF_8 instead of "UTF-8" string representation
URL: https://github.com/apache/spark/pull/25335#discussion_r310200731
 
 

 ##########
 File path: 
sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/sources/TextSocketStreamSuite.scala
 ##########
 @@ -416,7 +417,7 @@ class TextSocketStreamSuite extends StreamTest with 
SharedSQLContext with Before
 
         while (true) {
           val line = messageQueue.take() + "\n"
-          clientSocketChannel.write(ByteBuffer.wrap(line.getBytes("UTF-8")))
+          
clientSocketChannel.write(ByteBuffer.wrap(line.getBytes(StandardCharsets.UTF_8.name())))
 
 Review comment:
   No need for `.name()`?

----------------------------------------------------------------
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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to