-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: changing vars to vals (#65)
Signed-off-by: Nicklas Lundin <[email protected]>
- Loading branch information
Showing
11 changed files
with
60 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
OpenFeature/src/main/java/dev/openfeature/sdk/FlagEvaluationOptions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package dev.openfeature.sdk | ||
|
||
data class FlagEvaluationOptions( | ||
var hooks: List<Hook<*>> = listOf(), | ||
var hookHints: Map<String, Any> = mapOf() | ||
val hooks: List<Hook<*>> = listOf(), | ||
val hookHints: Map<String, Any> = mapOf() | ||
) |
10 changes: 5 additions & 5 deletions
10
OpenFeature/src/main/java/dev/openfeature/sdk/HookContext.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package dev.openfeature.sdk | ||
|
||
data class HookContext<T>( | ||
var flagKey: String, | ||
val flagKey: String, | ||
val type: FlagValueType, | ||
var defaultValue: T, | ||
var ctx: EvaluationContext?, | ||
var clientMetadata: ClientMetadata?, | ||
var providerMetadata: ProviderMetadata | ||
val defaultValue: T, | ||
val ctx: EvaluationContext?, | ||
val clientMetadata: ClientMetadata?, | ||
val providerMetadata: ProviderMetadata | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
OpenFeature/src/main/java/dev/openfeature/sdk/ImmutableStructure.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters