Community
Participate
Working Groups
When a method is moved to another class, all '//' comments directly prepending this method are silently removed. For example: public class C { D aD; // Here is some comment public void f() { } } When now moving (ALT+SHIFT+V) method 'f' to class 'D', also the comment '// Here is...' is removed. This is bad, because such a comment in general must be regarded as related to method f(). In the worst case (which happend to me), the comment is some important outcommented code (in my case it were a bunch of JUnit testcases, which I had planned to use later in the future). Proposed fix: Do not remove prepending comments.
*** This bug has been marked as a duplicate of 150558 ***