Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/replaceWithConstantValue/beforeSideEffect.java
Tagir Valeev cf2584bfdd [java-inspections] ReplaceWithConstantValueFix: suggest to extract side effects when applicable
Fixes IDEA-323618 Side-effect ignored by code assist

GitOrigin-RevId: 6206743a4af64948f95d722708e42caf05dda2f3
2023-07-03 21:09:36 +00:00

11 lines
180 B
Java

// "Replace with '0'" "true-preview"
import java.util.stream.*;
class Test {
public static void method() {
int a = 1;
int b = 0;
a = (a + b)<caret> - (b = a);
}
}