Wrong wrapping and suggestion for multiline ?: statements
mattnathan opened this issue · 3 comments
mattnathan commented
Given the following code:
String s = "";
Object o = s.isEmpty() ? s.concat("a").cnn| :
s.concat("b");
One of the suggested wrappings results in
String s = "";
Object o = checkNotNull(s.isEmpty() ? s.concat("a")):
s.concat("b");
mattnathan commented
Appears this is more complicated that originally thought:
- start with the first code sample
- begin completion of
cnn
but escape/cancel without applying it - note that the space between the
.cnn
and the:
is now missing - Try completion again
- Notice the suggestions are now incorrect
If you continue cancelling and retrying you get more and more incorrect suggestions, and exceptions in the log
ukcrpb6 commented
ukcrpb6 commented
fixed