mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Java: annotating (IDEA-321503)
GitOrigin-RevId: 4898d67d2fe9fbb5abfed0b326b03b8543448c2a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
18898ebca6
commit
9c2b546f0a
@@ -1,6 +1,8 @@
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.psi;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -13,11 +15,11 @@ public interface PsiTemplate extends PsiExpression {
|
||||
/**
|
||||
* @return the fragments of this template.
|
||||
*/
|
||||
List<PsiLiteralExpression> getFragments();
|
||||
@NotNull List<@NotNull PsiLiteralExpression> getFragments();
|
||||
|
||||
/**
|
||||
* @return the embedded expression in this template;
|
||||
*/
|
||||
List<PsiExpression> getEmbeddedExpressions();
|
||||
@NotNull List<@NotNull PsiExpression> getEmbeddedExpressions();
|
||||
|
||||
}
|
||||
@@ -28,7 +28,7 @@ public final class PsiTemplateImpl extends ExpressionPsiElement implements PsiTe
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PsiLiteralExpression> getFragments() {
|
||||
public @NotNull List<@NotNull PsiLiteralExpression> getFragments() {
|
||||
final List<PsiLiteralExpression> result = new ArrayList<>();
|
||||
PsiElement @NotNull [] children = getChildren();
|
||||
for (int i = 0, length = children.length; i < length; i += 2) {
|
||||
@@ -38,7 +38,7 @@ public final class PsiTemplateImpl extends ExpressionPsiElement implements PsiTe
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PsiExpression> getEmbeddedExpressions() {
|
||||
public @NotNull List<@NotNull PsiExpression> getEmbeddedExpressions() {
|
||||
final List<PsiExpression> result = new ArrayList<>();
|
||||
PsiElement @NotNull [] children = getChildren();
|
||||
for (int i = 1, length = children.length; i < length; i += 2) {
|
||||
|
||||
Reference in New Issue
Block a user