Skip to content

Commit

Permalink
chore: upgrade to the latest intellij version
Browse files Browse the repository at this point in the history
  • Loading branch information
kmruiz committed Jan 16, 2025
1 parent cb7b558 commit b58be3f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
# IntelliJ platform dependencies
intellij-min = "2024.1.1"
intellij-min = "2024.3.1.1"
intellij-minBuild = "241.15989.155"
intellij-minRelease = "241"
intellij-type = "IU"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.mongodb.jbplugin.observability.probe

import com.intellij.codeInspection.ProblemsHolder
import com.intellij.database.util.common.containsElements
import com.intellij.openapi.application.readAction
import com.intellij.openapi.components.Service
import com.intellij.openapi.diagnostic.Logger
Expand Down Expand Up @@ -162,10 +161,10 @@ class InspectionStatusChangedProbe(
psiElement: () -> PsiElement
): Boolean = runCatching {
readAction<Boolean> {
elementsWithProblems.containsElements {
elementsWithProblems.find {
it.on.get()?.source == psiElement ||
it.on.get()?.source?.isEquivalentTo(psiElement()) == true
}
} != null
}
}.getOrDefault(false)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public Document findMovieById(String id) {
.first();
}

public List<Document> findMoviesByYear(int year) {
public List<Document> findMoviesByYear(String year) {
return client
.getDatabase("sample_mflix")
.getCollection("movies")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.mongodb.jbplugin.dialects.springquery

import com.intellij.database.util.common.containsElements
import com.intellij.lang.injection.InjectedLanguageManager
import com.intellij.psi.JavaPsiFacade
import com.intellij.psi.PsiAnnotation
Expand Down Expand Up @@ -272,9 +271,9 @@ object SpringAtQueryDialectParser : DialectParser<PsiElement> {
private fun findParentMethodWithQueryAnnotation(source: PsiElement): PsiMethod? {
return source.findTopParentBy { method ->
method as? PsiMethod ?: return@findTopParentBy false
method.annotations.containsElements {
method.annotations.find {
it.hasQualifiedName(QUERY_FQN)
}
} != null
} as? PsiMethod
}

Expand Down

0 comments on commit b58be3f

Please sign in to comment.