Java: Handle similar parameters of multiple parametrized duplicates (IDEA-191738)

This commit is contained in:
Pavel Dolgov
2018-05-14 15:16:50 +03:00
parent 91bed9ee8c
commit c3717c3abd
7 changed files with 74 additions and 15 deletions
@@ -0,0 +1,11 @@
class Node {
String getType() { return ""; }
String foo(Node left, Node right) {
String leftType = left.getType().substring(1);
<selection>String rightType = right.getType().substring(1);</selection>
String type = "A".substring(1);
return leftType + rightType + type;
}
}