mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
unused return value local inspection: don't treat void return types
This commit is contained in:
+1
@@ -53,6 +53,7 @@ public class UnusedReturnValueLocalInspection extends BaseJavaLocalInspectionToo
|
||||
@Override
|
||||
public ProblemDescriptor[] checkMethod(@NotNull PsiMethod method, @NotNull InspectionManager manager, boolean isOnTheFly) {
|
||||
if (method.isConstructor() ||
|
||||
PsiType.VOID.equals(method.getReturnType()) ||
|
||||
myGlobal.IGNORE_BUILDER_PATTERN && PropertyUtil.isSimplePropertySetter(method) ||
|
||||
method.hasModifierProperty(PsiModifier.NATIVE)) return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user