mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
Cleanup (warnings; formatting)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -16,16 +16,11 @@
|
||||
package com.intellij.psi;
|
||||
|
||||
import com.intellij.util.ArrayFactory;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* Represents a Java statement.
|
||||
*/
|
||||
public interface PsiStatement extends PsiElement {
|
||||
/**
|
||||
* The empty array of PSI statements which can be reused to avoid unnecessary allocations.
|
||||
*/
|
||||
PsiStatement[] EMPTY_ARRAY = new PsiStatement[0];
|
||||
|
||||
ArrayFactory<PsiStatement> ARRAY_FACTORY = count -> count == 0 ? PsiStatement.EMPTY_ARRAY : new PsiStatement[count];
|
||||
}
|
||||
ArrayFactory<PsiStatement> ARRAY_FACTORY = count -> count == 0 ? EMPTY_ARRAY : new PsiStatement[count];
|
||||
}
|
||||
Reference in New Issue
Block a user