mysema/scalagen — Issue #24: Improve for/if handling
Author: timowest
Created: 2012-01-17 21:29:38+00:00
State: open

for (p <- paths) {
if (p.contains(".svn")) {
//continue
} else if (suffix == null || p.endsWith(suffix)) {
additions.add(new Resource(p, false, false))
}
}

should be translated as

for (p <- paths if !p.contains(".svn") && (suffix == null || p.endsWith(suffix))) {
additions.add(new Resource(p, false, false))
}