| Summary: | Clean-up creates bad diff (for SVN, CVS, etc.) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Sven Köhler <sven.koehler> | ||||
| Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | Olivier_Thomann | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | stalebug | ||||||
| Attachments: |
|
||||||
|
Description
Sven Köhler
Created attachment 194152 [details]
copy it to EclipseCleanup.java, run the cleanup wizard, and observe the diff
The diff is
--- EclipseCleanup.java.org 2011-04-27 15:31:30.313115221 +0200
+++ EclipseCleanup.java 2011-04-27 15:31:36.261916231 +0200
@@ -8,7 +8,8 @@
}
class Test2 extends Test1 {
- public void someMethod()
+ @Override
+ public void someMethod()
{
// nothing
}
Instead of
--- EclipseCleanup.java.org 2011-04-27 15:31:30.313115221 +0200
+++ EclipseCleanup.java 2011-04-27 15:31:36.261916231 +0200
@@ -8,7 +8,8 @@
}
class Test2 extends Test1 {
+ @Override
public void someMethod()
{
// nothing
}
We preserve the indentation of the line before the method declaration in front of the @Override annotation. Then we insert an indentation after the annotation. Are you expecting that we preserve the indentation before the method declaration when we insert the indentation after the annotation ? (In reply to comment #2) > We preserve the indentation of the line before the method declaration in front > of the @Override annotation. Then we insert an indentation after the > annotation. > Are you expecting that we preserve the indentation before the method > declaration when we insert the indentation after the annotation ? Yes, it sounds like what I expect. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |