Mercurial > hg > Database > Alice
changeset 276:3e0d1ac4f4a8
Refactor iterating process with for-each sentence.
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Oct 2013 01:51:15 +0900 |
parents | 99026285c5dc |
children | ba4eea27d70d |
files | src/alice/codesegment/CodeSegment.java |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alice/codesegment/CodeSegment.java Sun Sep 29 17:40:26 2013 +0900 +++ b/src/alice/codesegment/CodeSegment.java Fri Oct 18 01:51:15 2013 +0900 @@ -18,8 +18,7 @@ public void recycle(){ ids.setCounter(list.size()); - for (Iterator<Receiver> it = list.iterator();it.hasNext();){ - Receiver receiver = it.next(); + for (Receiver receiver : list) { ids.recommand(receiver); } }