Martin Wiesner created OPENNLP-1671:
---------------------------------------

             Summary: Convert while loops with duplicated code to do-while loops
                 Key: OPENNLP-1671
                 URL: https://issues.apache.org/jira/browse/OPENNLP-1671
             Project: OpenNLP
          Issue Type: Improvement
    Affects Versions: 2.5.1
            Reporter: Martin Wiesner
            Assignee: Martin Wiesner
             Fix For: 2.5.2


_ADSentenceStream_ (line 162) and _DefaultSDContextGenerator_ (line 241) 
contain duplicated code with while loops, each, and can be converted to a 
do-while loop, avoiding that duplication.

A fix is trivial.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to