Cleanup (warnings; formatting)

This commit is contained in:
Roman Shevchenko
2017-04-19 17:18:06 +02:00
parent f71fdbba2c
commit 1215b14eca
3 changed files with 66 additions and 83 deletions

View File

@@ -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];
}