From 52ca1803d3830c2c74b0fb7b343a8943d573383d Mon Sep 17 00:00:00 2001 From: Toshiaki Kameyama Date: Fri, 16 Nov 2018 18:35:01 +0900 Subject: [PATCH] Call chain into sequence: use registerProblemWithoutOfflineInformation() #KT-28231 Fixed --- .../ConvertCallChainIntoSequenceInspection.kt | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/inspections/collections/ConvertCallChainIntoSequenceInspection.kt b/idea/src/org/jetbrains/kotlin/idea/inspections/collections/ConvertCallChainIntoSequenceInspection.kt index 7936f5e33b0..9fb2d7116bb 100644 --- a/idea/src/org/jetbrains/kotlin/idea/inspections/collections/ConvertCallChainIntoSequenceInspection.kt +++ b/idea/src/org/jetbrains/kotlin/idea/inspections/collections/ConvertCallChainIntoSequenceInspection.kt @@ -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() ) })