Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeybohm committed Dec 14, 2020
1 parent 15f89c3 commit 95d0382
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/main/kotlin/controller/ControllerMethodLineMarker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ControllerMethodLineMarker : LineMarkerProvider {

override fun getLineMarkerInfo(psiElement: PsiElement): LineMarkerInfo<*>? = null

private fun getRelatedFiles(file: PsiFile, controllerName: String, element: PsiElement): LineMarkerInfo<*>? {
private fun getRelatedFiles(file: PsiFile, controllerName: String, element: PsiElement): LineMarkerInfo<PsiElement>? {
if (element !is Method) {
return null
}
Expand All @@ -36,7 +36,10 @@ class ControllerMethodLineMarker : LineMarkerProvider {
.createLineMarkerInfo(nameIdentifier)
}

private fun addLineMarkerUnique(collection: MutableCollection<in LineMarkerInfo<*>>, newMarker: LineMarkerInfo<*>?) {
private fun addLineMarkerUnique(
collection: MutableCollection<LineMarkerInfo<PsiElement>>,
newMarker: LineMarkerInfo<PsiElement>?
) {
if (newMarker == null) {
return
}
Expand All @@ -52,8 +55,8 @@ class ControllerMethodLineMarker : LineMarkerProvider {
}

override fun collectSlowLineMarkers(
list: MutableList<out PsiElement>,
collection: MutableCollection<in LineMarkerInfo<*>>
list: List<PsiElement>,
collection: MutableCollection<LineMarkerInfo<PsiElement>>
) {
for (element in list) {
val settings = Settings.getInstance(element.project)
Expand Down

0 comments on commit 95d0382

Please sign in to comment.