Keep xxx on one line bug?
When I create a getter or setter and I have "Keep simple methods on one line" on in the Work in Progress tab of Code Style, I expect:
public String getAimExp() { return aimExp; }
Instead, IDEA produces:
public String getAimExp() {
return aimExp;
}
I thought this was a bug, but then I found request http://www.intellij.net/tracker/idea/viewSCR?publicId=21186 which was marked Fixed without any discussion or comments. Another bug, http://www.intellij.net/tracker/idea/viewSCR?publicId=16070, was marked Obsolete, even though part of his request is not obsolete - he requested different settings for creating methods.
What does everyone think? Why wouldn't you want getters and setters to be placed on one line if you have "Keep simple methods on one line" checked?
Please sign in to leave a comment.
There might be a separate option to generate getters/setters in one line but
it looks like "keep simple methods in one line" should not affect this.
"Keep" and "generate" are not the same.
-
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Keith Lea" <keith@cs.oswego.edu> wrote in message
news:82340.1072642183917.JavaMail.itn@is.intellij.net...
line" on in the Work in Progress tab of Code Style, I expect:
>
>
>
>
>
http://www.intellij.net/tracker/idea/viewSCR?publicId=21186 which was marked
Fixed without any discussion or comments. Another bug,
http://www.intellij.net/tracker/idea/viewSCR?publicId=16070, was marked
Obsolete, even though part of his request is not obsolete - he requested
different settings for creating methods.
>
placed on one line if you have "Keep simple methods on one line" checked?