Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/replaceWithConstantValue/afterSideEffect.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

12 lines
172 B
Java

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