Files
Tagir Valeev 5905b6f62a [java-inspections] TrivialFunctionalExpressionUsageInspection: more accurate side-effect handling
IDEA-355026 "Trivial usage of functional expression" breaks semantics if one argument updates the variable used in another

GitOrigin-RevId: e3d9374ecc427d62cee0d821473e9119ae240fc5
2024-10-01 14:50:18 +00:00

15 lines
353 B
Java

// "Replace method call on lambda with lambda body" "true-preview"
import java.util.function.IntBinaryOperator;
public class Main {
public static void main(String[] args) {
int l = 1;
int q = 2;
System.out.println(l + " " + q);
int i = q;
q++;
l = i;
System.out.println(l + " " + q);
}
}