Skip to content

Commit 39fb91e

Browse files
committed
Add suppression for ObjectLiteralToLambda in CodeInsightsSettingsFacadeTest
1 parent 1a43925 commit 39fb91e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

plugins/amazonq/codewhisperer/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/codewhisperer/util/CodeInsightsSettingsFacadeTest.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ class CodeInsightsSettingsFacadeTest : HeavyPlatformTestCase() {
3131
}
3232

3333
fun testDisableCodeInsightUntilShouldRevertWhenParentIsDisposed() {
34-
val myFakePopup = Disposable {}
34+
@Suppress("ObjectLiteralToLambda") // JUnit 3 doesn't support SAM lambdas
35+
val myFakePopup = object : Disposable { override fun dispose() {} }
3536
Disposer.register(testRootDisposable, myFakePopup)
3637

3738
// assume users' enable the following two codeinsight functionalities
@@ -76,10 +77,12 @@ class CodeInsightsSettingsFacadeTest : HeavyPlatformTestCase() {
7677
}
7778

7879
fun testDisableCodeInsightUntilShouldAlwaysFlushPendingRevertsBeforeMakingNextChanges() {
79-
val myFakePopup = Disposable {}
80+
@Suppress("ObjectLiteralToLambda") // JUnit 3 doesn't support SAM lambdas
81+
val myFakePopup = object : Disposable { override fun dispose() {} }
8082
Disposer.register(testRootDisposable, myFakePopup)
8183

82-
val myAnotherFakePopup = Disposable {}
84+
@Suppress("ObjectLiteralToLambda") // JUnit 3 doesn't support SAM lambdas
85+
val myAnotherFakePopup = object : Disposable { override fun dispose() {} }
8386
Disposer.register(testRootDisposable, myAnotherFakePopup)
8487

8588
// assume users' enable the following two codeinsight functionalities

0 commit comments

Comments
 (0)