Rearranger 2.9 eating blank lines (that I don't want it to).

Attached code...

It gloms the call to method1() and method2() together, when the original code has a blank line between them.

What setting controls this?



Attachment(s):
Test.java
rearranger-config
0
Avatar
Permanently deleted user

It appears to be a bug. Nothing inside a code block (including method body) should change, unless there are blank lines adjacent to the brace and the "Remove initial and final blank lines inside code block" spacing option is on. That setting is not causing this problem. I'll look into this right away.

By the way, I see you have several rules (16-18,20-22) which exclude "^ejb." methods, then rule 24 which matches those methods. You could simplify your rules by raising the priority of rule 24 to 2. Doing so forces all ejb methods to match to rule 24, and you can remove the "whose names do not match ^ejb." condition on the other rules. Not a big deal until you add the next set of methods that are supposed to be excluded from rules 16-22. :)

-Dave

0
Avatar
Permanently deleted user

Thanks Dave.

As for your "by the way"... I understand the words, but not in that order =) I haven't played around with priorities yet, so I'll give that a look.

And I haven't said this yet, but thanks for this plugin. It was the sole impetus to move me to the 4.x version of the IDE. I absolutely love it.

0
Avatar
Permanently deleted user

It's fixed in 3.0. Some comment-generation code was trying to remove excess blank lines before a method that follows a generated comment. Unfortunately it found the first blank line inside the method and removed it also.

Thanks for your kind comments.
-Dave

0

请先登录再写评论。