mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-16 01:19:32 +07:00
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*/;
|
|
}
|
|
} |