There's actually a subtle but important difference between foo++ and ++foo

This commit is contained in:
Eric Banks 2012-08-09 12:42:50 -04:00
parent 5be7e0621d
commit def077c4e5
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ public class FindCoveredIntervals extends ActiveRegionWalker<GenomeLoc, Long> {
public Long reduce(final GenomeLoc value, Long reduce) {
if (value != null) {
out.println(value.toString());
return reduce++;
return ++reduce;
} else
return reduce;
}