Call chain into sequence: use registerProblemWithoutOfflineInformation() #KT-28231 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-11-16 18:35:01 +09:00
committed by Mikhail Glukhikh
parent 6c3f01ce2c
commit 52ca1803d3
@@ -52,15 +52,14 @@ class ConvertCallChainIntoSequenceInspection : AbstractKotlinInspection() {
ProblemHighlightType.GENERIC_ERROR_OR_WARNING
else
ProblemHighlightType.INFORMATION
holder.registerProblem(
holder.manager.createProblemDescriptor(
qualified,
rangeInElement,
"Call chain on collection could be converted into 'Sequence' to improve performance",
highlightType,
isOnTheFly,
ConvertCallChainIntoSequenceFix()
)
holder.registerProblemWithoutOfflineInformation(
qualified,
"Call chain on collection could be converted into 'Sequence' to improve performance",
isOnTheFly,
highlightType,
rangeInElement,
ConvertCallChainIntoSequenceFix()
)
})