In #26, the behavior of JBlock#block() method changed in a breaking-way: now a new block is added with braces and indent. The previous behavior was adding a block with no indent and no braces.
In AndroidAnnotations, we are using the old behavior extensively: we create no-indent no-braces blocks as placeholders, so we can easily insert code in the desired order later. To achieve this now, we have to create the blocks in the following way:
In #26, the behavior of
JBlock#block()
method changed in a breaking-way: now a new block is added with braces and indent. The previous behavior was adding a block with no indent and no braces.In AndroidAnnotations, we are using the old behavior extensively: we create no-indent no-braces blocks as placeholders, so we can easily insert code in the desired order later. To achieve this now, we have to create the blocks in the following way:
It would be nice if the API would provide a much shorter convenience method, for example:
Or maybe this, too: