java2xtend
java2xtend copied to clipboard
';' is only allowed in block expressions
public class Foo { public String foo() { if(1>2) return "foo"; else return "bar"; } }
Will be converted to
class Foo { def foo(){ if (1 > 2) return 'foo'; else return 'bar'; } }
which has syntax errors, as the ';' are only allowed within block epressions