Skip to content

Commit d64d992

Browse files
authored
added JvmField annotation to prevent generating getters (#255)
Signed-off-by: Petar Dzepina <petar.dzepina@vroom.com>
1 parent d4a4aaa commit d64d992

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/kotlin/org/opensearch/commons/alerting/action/AlertingActions.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ object AlertingActions {
1212
const val DELETE_MONITOR_ACTION_NAME = "cluster:admin/opendistro/alerting/monitor/delete"
1313
const val GET_FINDINGS_ACTION_NAME = "cluster:admin/opensearch/alerting/findings/get"
1414

15+
@JvmField
1516
val INDEX_MONITOR_ACTION_TYPE =
1617
ActionType(INDEX_MONITOR_ACTION_NAME, ::IndexMonitorResponse)
17-
18+
@JvmField
1819
val GET_ALERTS_ACTION_TYPE =
1920
ActionType(GET_ALERTS_ACTION_NAME, ::GetAlertsResponse)
20-
21+
@JvmField
2122
val DELETE_MONITOR_ACTION_TYPE =
2223
ActionType(DELETE_MONITOR_ACTION_NAME, ::DeleteMonitorResponse)
23-
24+
@JvmField
2425
val GET_FINDINGS_ACTION_TYPE =
2526
ActionType(GET_FINDINGS_ACTION_NAME, ::GetFindingsResponse)
2627
}

0 commit comments

Comments
 (0)