use of com.siyeh.ig.fixes.IntroduceConstantFix in project intellij-community by JetBrains.
the class MagicNumberInspection method buildFixes.
@NotNull
@Override
protected InspectionGadgetsFix[] buildFixes(Object... infos) {
final PsiElement context = (PsiElement) infos[0];
final InspectionGadgetsFix fix = SuppressForTestsScopeFix.build(this, context);
if (fix == null) {
return new InspectionGadgetsFix[] { new IntroduceConstantFix() };
}
return new InspectionGadgetsFix[] { new IntroduceConstantFix(), fix };
}
Aggregations