Skip to content

Commit e9ce455

Browse files
committed
DetektMain unhappy, using Annotation implementation instead
1 parent d8b3aa8 commit e9ce455

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/settings/CodeWhispererSettings.kt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import com.intellij.openapi.components.Service
99
import com.intellij.openapi.components.State
1010
import com.intellij.openapi.components.Storage
1111
import com.intellij.openapi.components.service
12+
import com.intellij.util.xmlb.annotations.Property
1213

1314
@Service
1415
@State(name = "codewhispererSettings", storages = [Storage("aws.xml")])
@@ -115,9 +116,12 @@ class CodeWhispererSettings : PersistentStateComponent<CodeWhispererConfiguratio
115116
}
116117

117118
class CodeWhispererConfiguration : BaseState() {
118-
var value by map<CodeWhispererConfigurationType, Boolean>()
119-
var intValue by map<CodeWhispererIntConfigurationType, Int>()
120-
var stringValue by map<CodeWhispererStringConfigurationType, String>()
119+
@get:Property
120+
val value by map<CodeWhispererConfigurationType, Boolean>()
121+
@get:Property
122+
val intValue by map<CodeWhispererIntConfigurationType, Int>()
123+
@get:Property
124+
val stringValue by map<CodeWhispererStringConfigurationType, String>()
121125
}
122126

123127
enum class CodeWhispererConfigurationType {

0 commit comments

Comments
 (0)