You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Joern Kottmann (JIRA)" <de...@uima.apache.org> on 2018/12/10 10:02:00 UTC
[jira] [Commented] (UIMA-5924) Refactor loops with Java 5 for each
loops
[ https://issues.apache.org/jira/browse/UIMA-5924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16714512#comment-16714512 ]
Joern Kottmann commented on UIMA-5924:
--------------------------------------
Only the loops where it seemed to be an advantage to replace have been replaced, many of the existing for_i loops are still in place. Most while loops with iterators have been replaced.
> Refactor loops with Java 5 for each loops
> -----------------------------------------
>
> Key: UIMA-5924
> URL: https://issues.apache.org/jira/browse/UIMA-5924
> Project: UIMA
> Issue Type: Improvement
> Reporter: Joern Kottmann
> Assignee: Marshall Schor
> Priority: Minor
> Attachments: uimaj-5924.patch
>
>
> In some places it looks nicer to use the Java5 for each loop instead of a while or for loop. Lets only refactor the loops where there is a clear advantage in readability, e.g. while iterator loop for collections, or for loops which declare a loop variable in the first line.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)