mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-42870 - assert: CreateConstructorFromThisOrSuperFix.isAvailableImpl
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@ public abstract class CreateConstructorFromThisOrSuperFix extends CreateFromUsag
|
||||
if (method == null || !method.isConstructor()) return false;
|
||||
if (CreateMethodFromUsageFix.hasErrorsInArgumentList(myMethodCall)) return false;
|
||||
List<PsiClass> targetClasses = getTargetClasses(myMethodCall);
|
||||
LOG.assertTrue(targetClasses.size() == 1);
|
||||
if (targetClasses.isEmpty()) return false;
|
||||
|
||||
if (CreateFromUsageUtils.shouldShowTag(offset, ref.getReferenceNameElement(), myMethodCall)) {
|
||||
setText(QuickFixBundle.message("create.constructor.text", targetClasses.get(0).getName()));
|
||||
|
||||
Reference in New Issue
Block a user