mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-25 01:46:46 +07:00
GitOrigin-RevId: 0ebf69e18055cb4e5a4e74f7483f39afdc072ef4
9 lines
253 B
Java
9 lines
253 B
Java
// "Extract Set from comparison chain" "true-preview"
|
|
|
|
class Orchard {
|
|
boolean check(String fruit) {
|
|
return "Apple"/*1*/./*2*/equals(/*3*/fruit)/* 4 */ ||
|
|
"Pear".equals(fruit) ||/*5*/<caret>
|
|
"Banana".equals(fruit)/*6*/;
|
|
}
|
|
} |