mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
notnull
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
* Copyright 2000-2015 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.
|
||||
@@ -210,7 +210,7 @@ public class RefJavaManagerImpl extends RefJavaManager {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeReference(final RefElement refElement) {
|
||||
public void removeReference(@NotNull final RefElement refElement) {
|
||||
if (refElement instanceof RefMethod) {
|
||||
RefMethod refMethod = (RefMethod)refElement;
|
||||
RefParameter[] params = refMethod.getParameters();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2015 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.
|
||||
@@ -41,7 +41,7 @@ public interface RefManagerExtension<T> {
|
||||
|
||||
void cleanup();
|
||||
|
||||
void removeReference(RefElement refElement);
|
||||
void removeReference(@NotNull RefElement refElement);
|
||||
|
||||
@Nullable
|
||||
RefElement createRefElement(PsiElement psiElement);
|
||||
|
||||
@@ -52,6 +52,7 @@ public abstract class PsiAnchor {
|
||||
public abstract int getStartOffset();
|
||||
public abstract int getEndOffset();
|
||||
|
||||
@NotNull
|
||||
public static PsiAnchor create(@NotNull final PsiElement element) {
|
||||
if (!element.isValid()) {
|
||||
throw new PsiInvalidElementAccessException(element);
|
||||
@@ -125,7 +126,7 @@ public abstract class PsiAnchor {
|
||||
return elementType instanceof IStubFileElementType && vFile != null && ((IStubFileElementType)elementType).shouldBuildStubFor(vFile);
|
||||
}
|
||||
|
||||
public static int calcStubIndex(StubBasedPsiElement psi) {
|
||||
public static int calcStubIndex(@NotNull StubBasedPsiElement psi) {
|
||||
if (psi instanceof PsiFile) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user