-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix move of method with private method call when classes in same CU (#…
…1405) * Fix move of method with private method call when classes in same CU - fix MemberVisibilityAdjustor.thresholdTypeToMethod() so that when two classes are in same compilation unit but are separate, use a threshold of default (null) instead of private - add new test to MoveInstanceMethodTests - fixes #1300
- Loading branch information
Showing
4 changed files
with
51 additions
and
3 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
17 changes: 17 additions & 0 deletions
17
org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test70/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,17 @@ | ||
class B { | ||
public void f() { | ||
|
||
} | ||
} | ||
|
||
class A { | ||
B b; | ||
|
||
public void m() { | ||
n(); | ||
} | ||
|
||
private void n() { | ||
|
||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test70/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,17 @@ | ||
class B { | ||
public void f() { | ||
|
||
} | ||
|
||
public void m(A a) { | ||
a.n(); | ||
} | ||
} | ||
|
||
class A { | ||
B b; | ||
|
||
void n() { | ||
|
||
} | ||
} |
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