mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
ExpressionUtils#isSimpleExpression: consider Collections.emptyXyz as simple (they are just static field getters)
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ public class TestFile {
|
||||
|
||||
public static Collection<String> example() {
|
||||
final Optional<String> root = Optional.empty();
|
||||
return root.<Collection<String>>map(TestFile::foo).orElseGet(Collections::emptyList);
|
||||
return root.<Collection<String>>map(TestFile::foo).orElse(Collections.emptyList());
|
||||
}
|
||||
|
||||
private static Set<String> foo(String s) {
|
||||
|
||||
Reference in New Issue
Block a user