diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml index 245fe4267a..34642f347d 100644 --- a/.github/workflows/qodana.yml +++ b/.github/workflows/qodana.yml @@ -68,6 +68,7 @@ jobs: QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} with: upload-result: true + github-token: ${{ secrets.GITHUB_TOKEN }} - name: Upload SARIF file for GitHub Advanced Security Dashboard uses: github/codeql-action/upload-sarif@461ef6c76dfe95d5c364de2f431ddbd31a417628 # v3.26.9 with: diff --git a/caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java b/caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java index d5074c2539..8b4ddcbd01 100644 --- a/caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java +++ b/caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java @@ -1671,6 +1671,7 @@ void performCleanUp(@Nullable Runnable task) { * schedule an asynchronous maintenance task. This may occur due to a concurrent write after the * maintenance work had started or if the amortized threshold of work per clean up was reached. */ + @SuppressWarnings("resource") void rescheduleCleanUpIfIncomplete() { if (drainStatusOpaque() != REQUIRED) { return; diff --git a/gradle/plugins/build.gradle.kts b/gradle/plugins/build.gradle.kts index e762cc3309..83ef0690e1 100644 --- a/gradle/plugins/build.gradle.kts +++ b/gradle/plugins/build.gradle.kts @@ -90,4 +90,6 @@ fun setProjectEncoding() { } } -setProjectEncoding() +if (System.getenv("CI").isNullOrEmpty()) { + setProjectEncoding() +} diff --git a/qodana.yaml b/qodana.yaml index 705621c19b..9f15e6adb1 100644 --- a/qodana.yaml +++ b/qodana.yaml @@ -1,5 +1,6 @@ version: "1.0" projectJDK: "21" +linter: jetbrains/qodana-jvm-community:2024.2 profile: name: qodana.recommended licenseRules: