mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[groovy] initialize array factory with lambda & remove unnecessary interfaces
This commit is contained in:
+2
-15
@@ -16,7 +16,6 @@
|
||||
|
||||
package org.jetbrains.plugins.groovy.lang.psi.api.statements.typedef;
|
||||
|
||||
import com.intellij.psi.NavigatablePsiElement;
|
||||
import com.intellij.psi.PsiClass;
|
||||
import com.intellij.psi.PsiField;
|
||||
import com.intellij.psi.PsiMethod;
|
||||
@@ -31,24 +30,12 @@ import org.jetbrains.plugins.groovy.lang.psi.api.statements.GrTopLevelDefinition
|
||||
import org.jetbrains.plugins.groovy.lang.psi.api.statements.typedef.members.GrMember;
|
||||
import org.jetbrains.plugins.groovy.lang.psi.api.statements.typedef.members.GrMembersDeclaration;
|
||||
import org.jetbrains.plugins.groovy.lang.psi.api.statements.typedef.members.GrMethod;
|
||||
import org.jetbrains.plugins.groovy.lang.psi.api.toplevel.GrTopStatement;
|
||||
import org.jetbrains.plugins.groovy.lang.psi.api.types.GrTypeParameterList;
|
||||
|
||||
/**
|
||||
* @autor: Dmitry.Krasilschikov
|
||||
* @date: 18.03.2007
|
||||
*/
|
||||
public interface GrTypeDefinition
|
||||
extends GrTopStatement, NavigatablePsiElement, PsiClass, GrTopLevelDefinition, GrDocCommentOwner, GrMember {
|
||||
public interface GrTypeDefinition extends PsiClass, GrTopLevelDefinition, GrDocCommentOwner, GrMember {
|
||||
|
||||
GrTypeDefinition[] EMPTY_ARRAY = new GrTypeDefinition[0];
|
||||
ArrayFactory<GrTypeDefinition> ARRAY_FACTORY = new ArrayFactory<GrTypeDefinition>() {
|
||||
@NotNull
|
||||
@Override
|
||||
public GrTypeDefinition[] create(int count) {
|
||||
return new GrTypeDefinition[count];
|
||||
}
|
||||
};
|
||||
ArrayFactory<GrTypeDefinition> ARRAY_FACTORY = GrTypeDefinition[]::new;
|
||||
|
||||
boolean isTrait();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user