Skip to content

Commit 5163949

Browse files
committed
rename createInputListv1
1 parent ba7c470 commit 5163949

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/com/uid2/operator/vertx/UIDOperatorVerticle.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,39 +1201,39 @@ private InputUtil.InputVal[] getIdentityMapV2Input(RoutingContext rc) {
12011201
Supplier<InputUtil.InputVal[]> getInputList = null;
12021202
final JsonArray emails = JsonParseUtils.parseArray(obj, "email", rc);
12031203
if (emails != null && !emails.isEmpty()) {
1204-
getInputList = () -> createInputListV1(emails, IdentityType.Email, InputUtil.IdentityInputType.Raw);
1204+
getInputList = () -> createInputList(emails, IdentityType.Email, InputUtil.IdentityInputType.Raw);
12051205
}
12061206

12071207
final JsonArray emailHashes = JsonParseUtils.parseArray(obj, "email_hash", rc);
12081208
if (emailHashes != null && !emailHashes.isEmpty()) {
12091209
if (getInputList != null) {
12101210
return null; // only one type of input is allowed
12111211
}
1212-
getInputList = () -> createInputListV1(emailHashes, IdentityType.Email, InputUtil.IdentityInputType.Hash);
1212+
getInputList = () -> createInputList(emailHashes, IdentityType.Email, InputUtil.IdentityInputType.Hash);
12131213
}
12141214

12151215
final JsonArray phones = this.phoneSupport ? JsonParseUtils.parseArray(obj,"phone", rc) : null;
12161216
if (phones != null && !phones.isEmpty()) {
12171217
if (getInputList != null) {
12181218
return null; // only one type of input is allowed
12191219
}
1220-
getInputList = () -> createInputListV1(phones, IdentityType.Phone, InputUtil.IdentityInputType.Raw);
1220+
getInputList = () -> createInputList(phones, IdentityType.Phone, InputUtil.IdentityInputType.Raw);
12211221
}
12221222

12231223
final JsonArray phoneHashes = this.phoneSupport ? JsonParseUtils.parseArray(obj,"phone_hash", rc) : null;
12241224
if (phoneHashes != null && !phoneHashes.isEmpty()) {
12251225
if (getInputList != null) {
12261226
return null; // only one type of input is allowed
12271227
}
1228-
getInputList = () -> createInputListV1(phoneHashes, IdentityType.Phone, InputUtil.IdentityInputType.Hash);
1228+
getInputList = () -> createInputList(phoneHashes, IdentityType.Phone, InputUtil.IdentityInputType.Hash);
12291229
}
12301230

12311231
if (emails == null && emailHashes == null && phones == null && phoneHashes == null) {
12321232
return null;
12331233
}
12341234

12351235
return getInputList == null ?
1236-
createInputListV1(null, IdentityType.Email, InputUtil.IdentityInputType.Raw) : // handle empty array
1236+
createInputList(null, IdentityType.Email, InputUtil.IdentityInputType.Raw) : // handle empty array
12371237
getInputList.get();
12381238
}
12391239

@@ -1528,7 +1528,7 @@ private void recordRefreshDurationStats(Integer siteId, String apiContact, Durat
15281528
c.increment();
15291529
}
15301530

1531-
private InputUtil.InputVal[] createInputListV1(JsonArray a, IdentityType identityType, InputUtil.IdentityInputType inputType) {
1531+
private InputUtil.InputVal[] createInputList(JsonArray a, IdentityType identityType, InputUtil.IdentityInputType inputType) {
15321532
if (a == null || a.isEmpty()) {
15331533
return new InputUtil.InputVal[0];
15341534
}

0 commit comments

Comments
 (0)