Skip to content

Commit 89ec81c

Browse files
author
Varun Rathore
committed
Fix typo errors
1 parent 7097b0b commit 89ec81c

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

src/main/java/com/google/firebase/remoteconfig/ServerTemplate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ public interface Builder {
2828
ServerTemplate build();
2929
}
3030
/**
31-
* Proccess the template data with a condition evaluator
31+
* Process the template data with a condition evaluator
3232
* based on the provided context.
3333
*/
3434
ServerConfig evaluate(KeysAndValues context) throws FirebaseRemoteConfigException;
3535
/**
36-
* Proccess the template data without context.
36+
* Process the template data without context.
3737
*/
3838
ServerConfig evaluate() throws FirebaseRemoteConfigException;
3939
/**

src/main/java/com/google/firebase/remoteconfig/ServerTemplateImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public ServerConfig evaluate(@Nullable KeysAndValues context)
8686

8787
Map<String, Value> configValues = new HashMap<>();
8888
ImmutableMap<String, String> defaultConfigValues = defaultConfig.keysAndValues;
89-
// Initializes config Value objects with default values.
89+
// Initializes configValue objects with default values.
9090
for (String configName : defaultConfigValues.keySet()) {
9191
configValues.put(configName, new Value(ValueSource.DEFAULT,
9292
defaultConfigValues.get(configName)));

src/main/java/com/google/firebase/remoteconfig/internal/ServerTemplateResponse.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public final class ServerTemplateResponse {
3333
@Key("parameters")
3434
private Map<String, ParameterResponse> parameters;
3535

36-
@Key("serverConditions")
36+
@Key("conditions")
3737
private List<ServerConditionResponse> serverConditions;
3838

3939
@Key("parameterGroups")
@@ -104,7 +104,7 @@ public static final class ServerConditionResponse {
104104
@Key("name")
105105
private String name;
106106

107-
@Key("serverCondition")
107+
@Key("condition")
108108
private OneOfConditionResponse condition;
109109

110110
public String getName() {
@@ -250,7 +250,7 @@ public static final class PercentConditionResponse {
250250
@Key("microPercentRange")
251251
private MicroPercentRangeResponse microPercentRange;
252252

253-
@Key("percentConditionOperator")
253+
@Key("percentOperator")
254254
private String percentOperator;
255255

256256
@Key("seed")

src/test/resources/getServerRemoteConfig.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"serverConditions": [
2+
"conditions": [
33
{
44
"name": "custom_signal",
5-
"serverCondition": {
5+
"condition": {
66
"orCondition": {
77
"conditions": [
88
{
@@ -26,15 +26,15 @@
2626
},
2727
{
2828
"name": "percent",
29-
"serverCondition": {
29+
"condition": {
3030
"orCondition": {
3131
"conditions": [
3232
{
3333
"andCondition": {
3434
"conditions": [
3535
{
3636
"percent": {
37-
"percentConditionOperator": "BETWEEN",
37+
"percentOperator": "BETWEEN",
3838
"seed": "3maarirs9xzs",
3939
"microPercentRange": {
4040
"microPercentLowerBound": 12000000,
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"name": "chained_conditions",
54-
"serverCondition": {
54+
"condition": {
5555
"orCondition": {
5656
"conditions": [
5757
{
@@ -77,7 +77,7 @@
7777
},
7878
{
7979
"percent": {
80-
"percentConditionOperator": "BETWEEN",
80+
"percentOperator": "BETWEEN",
8181
"seed": "cla24qoibb61",
8282
"microPercentRange": {
8383
"microPercentLowerBound": 25000000,

src/test/resources/getServerTemplateData.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"serverConditions": [
2+
"conditions": [
33
{
44
"name": "custom_signal",
5-
"serverCondition": {
5+
"condition": {
66
"orCondition": {
77
"conditions": [
88
{
@@ -26,15 +26,15 @@
2626
},
2727
{
2828
"name": "percent",
29-
"serverCondition": {
29+
"condition": {
3030
"orCondition": {
3131
"conditions": [
3232
{
3333
"andCondition": {
3434
"conditions": [
3535
{
3636
"percent": {
37-
"percentConditionOperator": "BETWEEN",
37+
"percentOperator": "BETWEEN",
3838
"seed": "3maarirs9xzs",
3939
"microPercentRange": {
4040
"microPercentLowerBound": 12000000,
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"name": "chained_conditions",
54-
"serverCondition": {
54+
"condition": {
5555
"orCondition": {
5656
"conditions": [
5757
{
@@ -75,7 +75,7 @@
7575
]
7676
},
7777
"percent": {
78-
"percentConditionOperator": "BETWEEN",
78+
"percentOperator": "BETWEEN",
7979
"seed": "cla24qoibb61",
8080
"microPercentRange": {
8181
"microPercentLowerBound": 25000000,

0 commit comments

Comments
 (0)