-
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.
Fix extract method refactoring to recognize a member class collision (#…
…1761) - modify ExtractMethodRefactoring.checkForMethodOverride() to also check for a member class - add new test to ExtractMethodTests - fixes #1758
- Loading branch information
Showing
3 changed files
with
24 additions
and
1 deletion.
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
18 changes: 18 additions & 0 deletions
18
...resources/ExtractMethodWorkSpace/ExtractMethodTests/invalidSelection/A_testIssue1758.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,18 @@ | ||
package invalidSelection; | ||
|
||
public class A_testIssue1758 { | ||
public void foo() { | ||
/*]*/int i;/*[*/ | ||
} | ||
} | ||
|
||
class SubClass { | ||
void extracted() { | ||
} | ||
|
||
class InnerClass extends A_testIssue1758 { | ||
void testMethod() { | ||
extracted(); | ||
} | ||
} | ||
} |
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