Skip to content

Commit 2e90b4e

Browse files
committed
refactor(core): Avoid generating (Integer|Double).hashCode
1 parent 4e410f0 commit 2e90b4e

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

posthog/src/main/java/com/posthog/internal/PostHogLocalEvaluationModels.kt

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,40 +18,40 @@ public data class LocalEvaluationResponse(
1818
/**
1919
* Complete feature flag definition for local evaluation
2020
*/
21-
@IgnoreJRERequirement
21+
// not a data class to avoid (int Integer.hashCode(int))
2222
@PostHogInternal
23-
public data class FlagDefinition(
24-
val id: Int,
25-
val name: String,
26-
val key: String,
27-
val active: Boolean,
28-
val filters: FlagFilters,
29-
val version: Int,
23+
public class FlagDefinition(
24+
public val id: Int,
25+
public val name: String,
26+
public val key: String,
27+
public val active: Boolean,
28+
public val filters: FlagFilters,
29+
public val version: Int,
3030
)
3131

3232
/**
3333
* Flag filters containing groups and multivariate config
3434
*/
35-
@IgnoreJRERequirement
35+
// not a data class to avoid (int Integer.hashCode(int))
3636
@PostHogInternal
37-
public data class FlagFilters(
38-
val groups: List<FlagConditionGroup>?,
39-
val multivariate: MultiVariateConfig?,
40-
val payloads: Map<String, Any?>?,
37+
public class FlagFilters(
38+
public val groups: List<FlagConditionGroup>?,
39+
public val multivariate: MultiVariateConfig?,
40+
public val payloads: Map<String, Any?>?,
4141
@SerializedName("aggregation_group_type_index")
42-
val aggregationGroupTypeIndex: Int?,
42+
public val aggregationGroupTypeIndex: Int?,
4343
)
4444

4545
/**
4646
* A condition group with properties and rollout percentage
4747
*/
48-
@IgnoreJRERequirement
48+
// not a data class to avoid (int Integer.hashCode(int))
4949
@PostHogInternal
50-
public data class FlagConditionGroup(
51-
val properties: List<FlagProperty>?,
50+
public class FlagConditionGroup(
51+
public val properties: List<FlagProperty>?,
5252
@SerializedName("rollout_percentage")
53-
val rolloutPercentage: Int?,
54-
val variant: String?,
53+
public val rolloutPercentage: Int?,
54+
public val variant: String?,
5555
)
5656

5757
/**
@@ -81,12 +81,12 @@ public data class MultiVariateConfig(
8181
/**
8282
* A variant definition with key and rollout percentage
8383
*/
84-
@IgnoreJRERequirement
84+
// not a data class to avoid (double Double.hashCode(double))
8585
@PostHogInternal
86-
public data class VariantDefinition(
87-
val key: String,
86+
public class VariantDefinition(
87+
public val key: String,
8888
@SerializedName("rollout_percentage")
89-
val rolloutPercentage: Double,
89+
public val rolloutPercentage: Double,
9090
)
9191

9292
@PostHogInternal

0 commit comments

Comments
 (0)