IG: remove redundant check for interface (IDEA-CR-38059)

This commit is contained in:
Bas Leijdekkers
2019-01-31 14:47:25 +01:00
parent e376d51da9
commit cf51527892
@@ -1,5 +1,5 @@
/*
* Copyright 2003-2018 Dave Griffith, Bas Leijdekkers
* Copyright 2003-2019 Dave Griffith, Bas Leijdekkers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -124,7 +124,7 @@ public class SerializationUtils {
if (type instanceof PsiClassType) {
final PsiClassType classType = (PsiClassType)type;
final PsiClass psiClass = classType.resolve();
if (psiClass == null || psiClass.isInterface() || psiClass.hasModifierProperty(PsiModifier.ABSTRACT)) {
if (psiClass == null || psiClass.hasModifierProperty(PsiModifier.ABSTRACT)) {
// to avoid false positives
return true;
}