kinow commented on a change in pull request #222:
URL: https://github.com/apache/commons-text/pull/222#discussion_r615449277



##########
File path: 
src/main/java/org/apache/commons/text/translate/UnicodeUnpairedSurrogateRemover.java
##########
@@ -31,12 +31,9 @@
      */
     @Override
     public boolean translate(final int codepoint, final Writer writer) throws 
IOException {
-        if (codepoint >= Character.MIN_SURROGATE && codepoint <= 
Character.MAX_SURROGATE) {
-            // It's a surrogate. Write nothing and say we've translated.
-            return true;
-        }
+        // It's a surrogate. Write nothing and say we've translated.

Review comment:
       @arturobernalg I think this comment here doesn't relate to the single 
return statement now (it is, and it is not, true and false now).
   
   Maybe change it to `// If true, it is a surrogate. Write nothing and say 
we've translated. Otherwise return false, and don't translate 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.

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


Reply via email to