[java-inspections] Extract method recommender: proofreading

GitOrigin-RevId: 747d75760e6a61c34c16b960cc60f2b59f1a59ff
This commit is contained in:
Tagir Valeev
2023-03-13 14:37:48 +00:00
committed by intellij-monorepo-bot
parent eb0a2f748e
commit 4b25e11528
2 changed files with 4 additions and 4 deletions
@@ -637,7 +637,7 @@ inspection.extract.method.preview.html=Extract {0} statements to a method, which
inspection.extract.method.message=Extract method returning ''{0}''
inspection.extract.method.option.min.length=Minimum length of code to extract:|symbols
inspection.extract.method.option.max.parameters=Maximum number of parameters:
inspection.extract.method.dont.suggest.parameters=Don''t suggest to extract method with {0} or more parameters
inspection.extract.method.dont.suggest.length=Don\u2019t suggest to extract methods as short as this
inspection.extract.method.dont.suggest.parameters=Don''t suggest extracting method with {0} or more parameters
inspection.extract.method.dont.suggest.length=Don\u2019t suggest extracting methods as short as this
notification.file.system.issue=File Operation Issue
notification.content.cannot.move.file=Cannot move ''{0}'' into ''{1}'': {2}
@@ -1,13 +1,13 @@
<html>
<body>
Suggests to extract fragments of code to a separate method to make code more clear.
Suggests extracting fragments of code to a separate method to make code more clear.
This inspection has a number of heuristics to select good candidates for extraction,
including the following ones.
<ul>
<li>The extracted fragment has no non-local control flow</li>
<li>The extracted fragment has exactly one output variable</li>
<li>There are no similar uses of output variable inside the extracted fragment and outside it</li>
<li>The extracted fragment has only few input parameters (no more than three by default; configured by inspection option)</li>
<li>The extracted fragment has only few input parameters (no more than three by default; configured with the inspection option)</li>
<li>The extracted fragment is not smaller than the configured length (500 characters by default) but no bigger than 60% of the containing method body</li>
</ul>
</body>