-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new test for pulling up method in anonymous class that should fail (
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
org.eclipse.jdt.ui.tests.refactoring/resources/PullUp/testFail36/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,24 @@ | ||
package p; | ||
|
||
public class A { | ||
public class BaseTargetClass {} | ||
|
||
public class OriginalClass { | ||
public int data = 60; | ||
public void memberMethod() {} | ||
|
||
public class NestedOriginalClass extends BaseTargetClass { | ||
void setup() { | ||
new BaseTargetClass() { | ||
void method() { | ||
methodHelper(); | ||
} | ||
|
||
void methodHelper() { | ||
System.out.println("Helper Method in Anonymous Class: " + data); | ||
} | ||
}; | ||
} | ||
} | ||
} | ||
} |
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