diff --git a/build.gradle b/build.gradle index 3943308c..f73930aa 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { } group 'com.daveme.chocolateCakePHP' -version '0.6.2' +version '0.6.3' sourceCompatibility = 1.8 diff --git a/src/main/kotlin/controller/ControllerMethodLineMarker.kt b/src/main/kotlin/controller/ControllerMethodLineMarker.kt index 84b719ec..d1c68264 100644 --- a/src/main/kotlin/controller/ControllerMethodLineMarker.kt +++ b/src/main/kotlin/controller/ControllerMethodLineMarker.kt @@ -36,7 +36,10 @@ class ControllerMethodLineMarker : LineMarkerProvider { .createLineMarkerInfo(nameIdentifier) } - private fun addLineMarkerUnique(collection: MutableCollection>, newMarker: LineMarkerInfo<*>?) { + private fun addLineMarkerUnique( + collection: MutableCollection>, + newMarker: LineMarkerInfo<*>? + ) { if (newMarker == null) { return } @@ -52,10 +55,10 @@ class ControllerMethodLineMarker : LineMarkerProvider { } override fun collectSlowLineMarkers( - list: MutableList, - collection: MutableCollection> + elements: MutableList, + result: MutableCollection> ) { - for (element in list) { + for (element in elements) { val settings = Settings.getInstance(element.project) if (!settings.enabled) { return @@ -64,7 +67,8 @@ class ControllerMethodLineMarker : LineMarkerProvider { val virtualFile = file.virtualFile ?: continue val controllerName = virtualFile.nameWithoutExtension.controllerBaseName() ?: continue val info = getRelatedFiles(file, controllerName, element) - addLineMarkerUnique(collection, info) + addLineMarkerUnique(result, info) } } + }