panbingkun commented on code in PR #46527:
URL: https://github.com/apache/spark/pull/46527#discussion_r1599491825


##########
mllib/src/main/scala/org/apache/spark/ml/feature/StopWordsRemover.scala:
##########
@@ -129,9 +130,9 @@ class StopWordsRemover @Since("1.5.0") (@Since("1.5.0") 
override val uid: String
     if (Locale.getAvailableLocales.contains(Locale.getDefault)) {
       Locale.getDefault
     } else {
-      logWarning(s"Default locale set was [${Locale.getDefault.toString}]; 
however, it was " +

Review Comment:
   `toString` is `redundant` in our scenario. Let's remove it.



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


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

Reply via email to