[ 
https://issues.apache.org/jira/browse/TEXT-200?focusedWorklogId=584860&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-584860
 ]

ASF GitHub Bot logged work on TEXT-200:
---------------------------------------

                Author: ASF GitHub Bot
            Created on: 19/Apr/21 04:22
            Start Date: 19/Apr/21 04:22
    Worklog Time Spent: 10m 
      Work Description: arturobernalg commented on a change in pull request 
#222:
URL: https://github.com/apache/commons-text/pull/222#discussion_r615534203



##########
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:
       Agree. Changed.
   Thank you




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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 584860)
    Time Spent: 40m  (was: 0.5h)

> Simplify statements
> -------------------
>
>                 Key: TEXT-200
>                 URL: https://issues.apache.org/jira/browse/TEXT-200
>             Project: Commons Text
>          Issue Type: Sub-task
>            Reporter: Arturo Bernal
>            Priority: Minor
>          Time Spent: 40m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to