Files
openide/java/java-tests/testData/ig/com/siyeh/igfixes/inline/afterTwoVarsRename.java
Tagir Valeev 965bef7bb4 [java-refactoring] InlineLocalHandler: fixes after review of IDEA-371649
1. Exclude an option to rename the original variable if the type differs
2. Rename actions


(cherry picked from commit 2fd3bb261163cbd5b0d4af0f986e27250abb0956)

IJ-CR-162628

GitOrigin-RevId: 5d489d1030cf375d2a511be9edc9200a62bd045b
2025-06-26 15:32:14 +00:00

19 lines
436 B
Java

// "Inline variable|->Keep 'exp' name" "true-preview"
package com.example;
import java.util.ArrayList;
import java.util.List;
public class Demo {
static class ExposureSpecification {
}
public static void main(String[] args) {
List<ExposureSpecification> vExposures = new ArrayList<>();
for (ExposureSpecification exp : vExposures) {
// ... lines of code using exp ...
System.out.println(exp);
}
}
}