mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
do not break qualifier removal into 2 transactions: one to remove qualifier and another one to remove leading dot (IllegalArgumentException is thrown by ChangeSignatureDetector)
This commit is contained in:
+3
-2
@@ -191,8 +191,9 @@ public class PsiJavaCodeReferenceElementImpl extends CompositePsiElement impleme
|
||||
public void deleteChildInternal(@NotNull final ASTNode child) {
|
||||
if (getChildRole(child) == ChildRole.QUALIFIER) {
|
||||
final ASTNode dot = findChildByRole(ChildRole.DOT);
|
||||
super.deleteChildInternal(child);
|
||||
deleteChildInternal(dot);
|
||||
/*super.deleteChildInternal(child);
|
||||
deleteChildInternal(dot);*/
|
||||
deleteChildRange(child.getPsi(), dot.getPsi());
|
||||
}
|
||||
else {
|
||||
super.deleteChildInternal(child);
|
||||
|
||||
+1
-1
@@ -2,6 +2,6 @@ import util.Pair;
|
||||
|
||||
class Client {
|
||||
void method() {
|
||||
Pair<String, Pair<Integer,Boolean>> p = PairProvider.getPair();
|
||||
Pair<String,Pair<Integer,Boolean>> p = PairProvider.getPair();
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@ class Super {
|
||||
void m1(String p2) {}
|
||||
|
||||
/**
|
||||
* @see #m1( String)
|
||||
* @see #m1(String)
|
||||
*/
|
||||
void m2() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user