mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NotNull annotations (IDEA-CR-62327)
GitOrigin-RevId: aa4b828f3d87accdc94da8be872e788abd121911
This commit is contained in:
committed by
intellij-monorepo-bot
parent
92d15819de
commit
ca5c55d746
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user