mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
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
19 lines
436 B
Java
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);
|
|
}
|
|
}
|
|
} |