edit: thank you.
i was just thinking, it still ignores spaces after
any asterisk, not just one in javadoc. . . but then i realized. last time i used CheckStyle, it didn't like lines ending with operators like multiplication asterisk. so i don't think we need to change it.
yes, it definitely works:
- Code: Select all
int x = 2 *{space}
2;
CheckStyle says '*' should be on a new line.
oh, wow! your pattern only allows
one space after an asterisk. i wonder why? oh, because in "whatever*{space}{space}", the first space matches the [^\*] in the pattern, and the second one matches the \s+. i like it this way. . . Eclipse only puts one space there, anyway.
- Code: Select all
1:/*
2: *{space}
3: *{space}{space}
4: */
CheckStyle says line 3 has trailing spaces! i'm getting way too excited about this.
