mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
consistent ARRAY_FACTORY
This commit is contained in:
@@ -39,7 +39,8 @@ import java.util.Map;
|
||||
*/
|
||||
public interface PyClass extends PsiNameIdentifierOwner, PyStatement, PyDocStringOwner, StubBasedPsiElement<PyClassStub>,
|
||||
ScopeOwner, PyDecoratable, PyTypedElement, PyQualifiedNameOwner, PyStatementListContainer, PyWithAncestors {
|
||||
ArrayFactory<PyClass> ARRAY_FACTORY = count -> new PyClass[count];
|
||||
PyClass[] EMPTY_ARRAY = new PyClass[0];
|
||||
ArrayFactory<PyClass> ARRAY_FACTORY = count -> count == 0 ? EMPTY_ARRAY : new PyClass[count];
|
||||
|
||||
@Nullable
|
||||
ASTNode getNameNode();
|
||||
|
||||
@@ -39,7 +39,7 @@ public interface PyFunction extends PsiNamedElement, StubBasedPsiElement<PyFunct
|
||||
PyPossibleClassMember, PyTypeCommentOwner, PyAnnotationOwner {
|
||||
|
||||
PyFunction[] EMPTY_ARRAY = new PyFunction[0];
|
||||
ArrayFactory<PyFunction> ARRAY_FACTORY = count -> new PyFunction[count];
|
||||
ArrayFactory<PyFunction> ARRAY_FACTORY = count -> count == 0 ? EMPTY_ARRAY : new PyFunction[count];
|
||||
|
||||
/**
|
||||
* Returns the AST node for the function name identifier.
|
||||
|
||||
Reference in New Issue
Block a user