-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix push down to allow moving fields/methods to inner/local classes (#…
…1693) - add logic to PushDownRefactoringProcessor.checkReferencesToPushedDownMembers() to ignore members in the declaring CU that will end up being targets of the move (i.e. they extend the declaring class) - add new test to PushDownTests - fixes #1691
- Loading branch information
Showing
4 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
org.eclipse.jdt.ui.tests.refactoring/resources/PushDown/test40/in/A.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package p; | ||
|
||
class A { | ||
int f; | ||
|
||
void mA() { | ||
class B extends A { | ||
public void mB() { | ||
f = 0; | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
org.eclipse.jdt.ui.tests.refactoring/resources/PushDown/test40/out/A.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package p; | ||
|
||
class A { | ||
void mA() { | ||
class B extends A { | ||
int f; | ||
|
||
public void mB() { | ||
f = 0; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters