mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
Java: introduce PsiArrayInitializerExpression.isEmpty() as well (IJ-CR-176760)
GitOrigin-RevId: 2f0757929d780ff01930cc8001001daf59ec4500
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5db7b62f2e
commit
1143fea0b7
@@ -22,4 +22,11 @@ public interface PsiArrayInitializerExpression extends PsiExpression {
|
||||
default int getInitializerCount() {
|
||||
return getInitializers().length;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@code true} if this array initializer expression contains no expressions
|
||||
*/
|
||||
default boolean isEmpty() {
|
||||
return getInitializerCount() == 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user