This commit is contained in:
Alexey Kudravtsev
2015-04-24 14:17:18 +03:00
parent 336f10adda
commit 285b2e2409
3 changed files with 6 additions and 5 deletions
@@ -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;
}