Call chain into sequence: use registerProblemWithoutOfflineInformation() #KT-28231 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
6c3f01ce2c
commit
52ca1803d3
+8
-9
@@ -52,15 +52,14 @@ class ConvertCallChainIntoSequenceInspection : AbstractKotlinInspection() {
|
|||||||
ProblemHighlightType.GENERIC_ERROR_OR_WARNING
|
ProblemHighlightType.GENERIC_ERROR_OR_WARNING
|
||||||
else
|
else
|
||||||
ProblemHighlightType.INFORMATION
|
ProblemHighlightType.INFORMATION
|
||||||
holder.registerProblem(
|
|
||||||
holder.manager.createProblemDescriptor(
|
holder.registerProblemWithoutOfflineInformation(
|
||||||
qualified,
|
qualified,
|
||||||
rangeInElement,
|
"Call chain on collection could be converted into 'Sequence' to improve performance",
|
||||||
"Call chain on collection could be converted into 'Sequence' to improve performance",
|
isOnTheFly,
|
||||||
highlightType,
|
highlightType,
|
||||||
isOnTheFly,
|
rangeInElement,
|
||||||
ConvertCallChainIntoSequenceFix()
|
ConvertCallChainIntoSequenceFix()
|
||||||
)
|
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user