From 1bc249d031e28b72932fd3ea19125f12509ef4da Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Thu, 13 Mar 2014 10:10:50 +0100 Subject: [PATCH] EA-52755 (assert: ProblemDescriptorBase.) --- .../com/siyeh/ig/style/UnnecessaryConstructorInspection.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/style/UnnecessaryConstructorInspection.java b/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/style/UnnecessaryConstructorInspection.java index 64166566e8b5..8b7e23fa1547 100644 --- a/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/style/UnnecessaryConstructorInspection.java +++ b/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/style/UnnecessaryConstructorInspection.java @@ -1,5 +1,5 @@ /* - * Copyright 2003-2011 Dave Griffith, Bas Leijdekkers + * Copyright 2003-2014 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. @@ -110,6 +110,9 @@ public class UnnecessaryConstructorInspection extends BaseInspection { return; } final PsiMethod constructor = constructors[0]; + if (!constructor.isPhysical()) { + return; + } if (!constructor.hasModifierProperty(PsiModifier.PRIVATE) && aClass.hasModifierProperty(PsiModifier.PRIVATE)) { return;