mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
[java] Improve parentheses fixer in complete statement action
1. Do not add parentheses left to caret 2. Use LongRangeSet to add parentheses at valid overload positions 3. Support vararg methods 4. Filter by outer method call arguments range 5. Do not try to fix anything in already valid inner calls Fixes IDEA-264821 Complete current statement: wrong choice for missing bracket GitOrigin-RevId: d637703725e9e67ddb83e67a1e05d95d7fc4c1fe
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e8a35c538f
commit
33584b6815
@@ -0,0 +1,8 @@
|
||||
import java.util.*;
|
||||
|
||||
public class VarargMethod {
|
||||
void test() {
|
||||
Collection<String> list = new ArrayList<>();
|
||||
list.add(String.format("m", p1, p2));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user