mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
[mod-commands] SetInspectionOptionFix -> UpdateInspectionOptionFix (ModCommand)
GitOrigin-RevId: a1916285a58398848a6ce3c477399b3a86370efc
This commit is contained in:
committed by
intellij-monorepo-bot
parent
176f6a543e
commit
c0b3b031e7
@@ -110,14 +110,15 @@ public class ExtractMethodRecommenderInspection extends AbstractBaseJavaLocalIns
|
||||
List<LocalQuickFix> fixes = new ArrayList<>();
|
||||
fixes.add(new ExtractMethodFix(from, count, output, inputVariables));
|
||||
if (inputVariables.size() > 1) {
|
||||
fixes.add(new SetInspectionOptionFix(ExtractMethodRecommenderInspection.this, "maxParameters",
|
||||
JavaAnalysisBundle.message("inspection.extract.method.dont.suggest.parameters", inputVariables.size()),
|
||||
inputVariables.size() - 1));
|
||||
fixes.add(new UpdateInspectionOptionFix(ExtractMethodRecommenderInspection.this, "maxParameters",
|
||||
JavaAnalysisBundle.message("inspection.extract.method.dont.suggest.parameters",
|
||||
inputVariables.size()),
|
||||
inputVariables.size() - 1).asQuickFix());
|
||||
}
|
||||
if (textRange.getLength() < 10_000) {
|
||||
fixes.add(new SetInspectionOptionFix(ExtractMethodRecommenderInspection.this, "minLength",
|
||||
JavaAnalysisBundle.message("inspection.extract.method.dont.suggest.length"),
|
||||
textRange.getLength() + 1));
|
||||
fixes.add(new UpdateInspectionOptionFix(ExtractMethodRecommenderInspection.this, "minLength",
|
||||
JavaAnalysisBundle.message("inspection.extract.method.dont.suggest.length"),
|
||||
textRange.getLength() + 1).asQuickFix());
|
||||
}
|
||||
int firstLineBreak = textRange.substring(block.getText()).indexOf('\n');
|
||||
if (firstLineBreak > -1) {
|
||||
|
||||
Reference in New Issue
Block a user