mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-52755 (assert: ProblemDescriptorBase.<init>)
This commit is contained in:
+4
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user