yatatsu / AutoBundle

AutoBundle generates boilerplate code for field binding with android.os.Bundle
Apache License 2.0
135 stars 13 forks source link

Syntax Error when using custom setter #16

Closed yatatsu closed 8 years ago

yatatsu commented 8 years ago

Here is generated code.

  public static void bind(FooActivity target, Bundle source) {
    if (source.containsKey("item")) {
      ItemConverter itemConverter = new ItemConverter();
      target.setItem( (Item) itemConverter.original(source.getParcelable("item") ); // <- ")" expected 
    }
  }