diff --git a/java/java-analysis-impl/src/com/intellij/codeInspection/reference/RefJavaManagerImpl.java b/java/java-analysis-impl/src/com/intellij/codeInspection/reference/RefJavaManagerImpl.java index 96bb8becf44a..8fe745ca59b6 100644 --- a/java/java-analysis-impl/src/com/intellij/codeInspection/reference/RefJavaManagerImpl.java +++ b/java/java-analysis-impl/src/com/intellij/codeInspection/reference/RefJavaManagerImpl.java @@ -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(); diff --git a/platform/analysis-api/src/com/intellij/codeInspection/lang/RefManagerExtension.java b/platform/analysis-api/src/com/intellij/codeInspection/lang/RefManagerExtension.java index 12691a0480a8..13ff7e624664 100644 --- a/platform/analysis-api/src/com/intellij/codeInspection/lang/RefManagerExtension.java +++ b/platform/analysis-api/src/com/intellij/codeInspection/lang/RefManagerExtension.java @@ -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 { void cleanup(); - void removeReference(RefElement refElement); + void removeReference(@NotNull RefElement refElement); @Nullable RefElement createRefElement(PsiElement psiElement); diff --git a/platform/core-impl/src/com/intellij/psi/PsiAnchor.java b/platform/core-impl/src/com/intellij/psi/PsiAnchor.java index b79a231010c3..f344e76db0b8 100644 --- a/platform/core-impl/src/com/intellij/psi/PsiAnchor.java +++ b/platform/core-impl/src/com/intellij/psi/PsiAnchor.java @@ -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; }