Closed k3b closed 3 years ago
Hello @k3b, thank you for your bug report, but I'm unsure this is a Save Actions problem. AFAIK there's no quick fix implemented in Save Actions that will optimize from String other = all.substring(12, 13) + all.substring(14, 15);
to other = all.charAt(12) + all.charAt(14);
. Can you disable Save Actions and see if the problem persists? If it doesn't, reopen this issue.
this code is optimized to something that cannot be compiled
will be "optimized" to
which cannot be comiled: Wrong expression type String = char + char
This would work:
other = "" + all.charAt(12) + all.charAt(14);
String = String + char + char
I am using IntelliJ-ultimate 2020.2 with SaveActions 2.2.0 and jdk11