NotNull annotations (IDEA-CR-62327)

GitOrigin-RevId: aa4b828f3d87accdc94da8be872e788abd121911
This commit is contained in:
Tagir Valeev
2020-05-05 15:13:30 +00:00
committed by intellij-monorepo-bot
parent 92d15819de
commit ca5c55d746
2 changed files with 5 additions and 4 deletions
@@ -20,7 +20,7 @@ public class JavaDfaSliceValueFilter implements SliceValueFilter {
}
@Override
public boolean allowed(PsiElement element) {
public boolean allowed(@NotNull PsiElement element) {
if (myDfType instanceof DfConstantType && element instanceof PsiLiteralValue) {
Object constValue = ((DfConstantType<?>)myDfType).getValue();
if (!(constValue instanceof PsiElement)) {
@@ -34,7 +34,7 @@ public class JavaDfaSliceValueFilter implements SliceValueFilter {
}
@Override
public String toString() {
public @NotNull String toString() {
return myDfType.toString();
}
}
@@ -3,16 +3,17 @@ package com.intellij.slicer;
import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NotNull;
public interface SliceValueFilter {
/**
* @param element to test
* @return true if this element passes the filter
*/
boolean allowed(PsiElement element);
boolean allowed(@NotNull PsiElement element);
/**
* @return String representation
*/
@Nls String toString();
@NotNull @Nls String toString();
}