inspection view: entity in RefElementNode can be null => use @Nullable

This commit is contained in:
Dmitry Batkovich
2016-08-12 12:47:17 +03:00
parent 9af4afc997
commit 7dbe9895c8
2 changed files with 2 additions and 2 deletions
@@ -403,7 +403,7 @@ public class UnusedDeclarationPresentation extends DefaultInspectionToolPresenta
@NotNull
@Override
public RefElementNode createRefNode(@NotNull RefEntity entity) {
public RefElementNode createRefNode(@Nullable RefEntity entity) {
return new RefElementNode(entity, this) {
@Nullable
@Override
@@ -50,7 +50,7 @@ public interface InspectionToolPresentation extends ProblemDescriptionsProcessor
final boolean groupBySeverity);
@NotNull
default RefElementNode createRefNode(@NotNull RefEntity entity) {
default RefElementNode createRefNode(@Nullable RefEntity entity) {
return new RefElementNode(entity, this);
}