-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add missing object_creation_expression identifier extractor
- Loading branch information
Showing
5 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
bin/tests/scenarios/change_object_in_classe_instantiation/base.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,9 @@ | ||
public class GitHubBuilder { | ||
public GitHubBuilder withProxy(final Proxy p) { | ||
return withConnector(new HttpConnector() { | ||
public HttpURLConnection connect(URL url) throws IOException { | ||
return (HttpURLConnection) url.openConnection(p); | ||
} | ||
}); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
bin/tests/scenarios/change_object_in_classe_instantiation/left.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,11 @@ | ||
public class GitHubBuilder { | ||
private String a; | ||
|
||
public GitHubBuilder withProxy(final Proxy p) { | ||
return withConnector(new HttpConnector() { | ||
public HttpURLConnection connect(URL url) throws IOException { | ||
return (HttpURLConnection) url.openConnection(p); | ||
} | ||
}); | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
bin/tests/scenarios/change_object_in_classe_instantiation/merge.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 @@ | ||
public class GitHubBuilder { private String a ; public GitHubBuilder withProxy ( final Proxy p ) { return withConnector ( new ImpatientHttpConnector ( new HttpConnector ( ) { public HttpURLConnection connect ( URL url ) throws IOException { return ( HttpURLConnection ) url . openConnection ( p ) ; } } ) ) ; } } |
9 changes: 9 additions & 0 deletions
9
bin/tests/scenarios/change_object_in_classe_instantiation/right.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,9 @@ | ||
public class GitHubBuilder { | ||
public GitHubBuilder withProxy(final Proxy p) { | ||
return withConnector(new ImpatientHttpConnector(new HttpConnector() { | ||
public HttpURLConnection connect(URL url) throws IOException { | ||
return (HttpURLConnection) url.openConnection(p); | ||
} | ||
})); | ||
} | ||
} |
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