Hi Robert,

mache das morgen rückgängig und werde dann auch den Typo ändern.

Gruß,
Jonathan.

Von meinem iPhone gesendet
(Möglicherweise hat Siri geschrieben, also bitte ich um Nachsicht wegen des Satzbaues)

> Am 31.03.2014 um 18:37 schrieb Robert Metzger <notifications@github.com>:
> 
> In quickstart-java/src/main/resources/archetype-resources/src/main/java/WordCountJob.java:
> 
> >  			int sum = 0;
> >  			while (records.hasNext()) {
> > -				current = records.next();
> > -				sum += current.getField(1, IntValue.class).getValue();
> > +				// set the first tupel in the record to the current word
> > +				if (sum == 0) {
> > +					this.output.setField(0, records.next().getField(0, StringValue.class));
> > +				} else {
> > +					records.next();
> > +				}
> I think this statement makes the code harder to understand. it is very important that the users see the next() call in each iteration.
> 
> —
> Reply to this email directly or view it on GitHub.