The continue should complete the while and skip to the next iteration.

On 12/03/13 14:53, Matthew Buckett wrote:
>
> In impl/src/main/java/uk/ac/ox/oucs/vle/XcriOxCapPopulatorImpl.java:
>
> > +			DescriptiveTextType descriptiveTextType = iter.next();
> > +			
> > +			String text = "";
> > +			if (!descriptiveTextType.isXhtml()) {
> > +				text = parse(descriptiveTextType.getValue());
> > +			} else {
> > +				text = descriptiveTextType.getValue();
> > +			}
> > +			
> > +			if (null != descriptiveTextType.getType()) {
> > +				if (descriptiveTextType.getType().equals(type)) {
> > +					sb.append(text+" ");
> > +					continue;
> > +				}
> > +			}
> > +			sb.append(text+" ");
>
> This looks to always append the text no matter what the type is.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/ox-it/wl-course-signup/pull/55/files#r3336161>.
>