Skip to content

Commit 710e1ff

Browse files
style(client): disable formatting for java boilerplate (#326)
1 parent d514efc commit 710e1ff

324 files changed

Lines changed: 1577 additions & 8737 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

buildSrc/src/main/kotlin/lithic.java.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ configure<SpotlessExtension> {
2121
importOrder()
2222
removeUnusedImports()
2323
palantirJavaFormat()
24+
toggleOffOn()
2425
}
2526
}
2627

buildSrc/src/main/kotlin/lithic.kotlin.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ kotlin {
1515
configure<SpotlessExtension> {
1616
kotlin {
1717
ktfmt().kotlinlangStyle()
18+
toggleOffOn()
1819
}
1920
}
2021

lithic-java-core/src/main/kotlin/com/lithic/api/errors/LithicError.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ constructor(
2626
return true
2727
}
2828

29-
return other is LithicError && this.additionalProperties == other.additionalProperties
29+
return /* spotless:off */ other is LithicError && this.additionalProperties == other.additionalProperties /* spotless:on */
3030
}
3131

3232
override fun hashCode(): Int {
33-
return Objects.hash(additionalProperties)
33+
return /* spotless:off */ Objects.hash(additionalProperties) /* spotless:on */
3434
}
3535

3636
override fun toString() = "LithicError{additionalProperties=$additionalProperties}"

lithic-java-core/src/main/kotlin/com/lithic/api/models/Account.kt

Lines changed: 9 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -462,24 +462,14 @@ private constructor(
462462
return true
463463
}
464464

465-
return other is SpendLimit &&
466-
this.daily == other.daily &&
467-
this.lifetime == other.lifetime &&
468-
this.monthly == other.monthly &&
469-
this.additionalProperties == other.additionalProperties
465+
return /* spotless:off */ other is SpendLimit && this.daily == other.daily && this.lifetime == other.lifetime && this.monthly == other.monthly && this.additionalProperties == other.additionalProperties /* spotless:on */
470466
}
471467

472468
private var hashCode: Int = 0
473469

474470
override fun hashCode(): Int {
475471
if (hashCode == 0) {
476-
hashCode =
477-
Objects.hash(
478-
daily,
479-
lifetime,
480-
monthly,
481-
additionalProperties,
482-
)
472+
hashCode = /* spotless:off */ Objects.hash(daily, lifetime, monthly, additionalProperties) /* spotless:on */
483473
}
484474
return hashCode
485475
}
@@ -501,7 +491,7 @@ private constructor(
501491
return true
502492
}
503493

504-
return other is State && this.value == other.value
494+
return /* spotless:off */ other is State && this.value == other.value /* spotless:on */
505495
}
506496

507497
override fun hashCode() = value.hashCode()
@@ -711,26 +701,14 @@ private constructor(
711701
return true
712702
}
713703

714-
return other is AccountHolder &&
715-
this.businessAccountToken == other.businessAccountToken &&
716-
this.email == other.email &&
717-
this.phoneNumber == other.phoneNumber &&
718-
this.token == other.token &&
719-
this.additionalProperties == other.additionalProperties
704+
return /* spotless:off */ other is AccountHolder && this.businessAccountToken == other.businessAccountToken && this.email == other.email && this.phoneNumber == other.phoneNumber && this.token == other.token && this.additionalProperties == other.additionalProperties /* spotless:on */
720705
}
721706

722707
private var hashCode: Int = 0
723708

724709
override fun hashCode(): Int {
725710
if (hashCode == 0) {
726-
hashCode =
727-
Objects.hash(
728-
businessAccountToken,
729-
email,
730-
phoneNumber,
731-
token,
732-
additionalProperties,
733-
)
711+
hashCode = /* spotless:off */ Objects.hash(businessAccountToken, email, phoneNumber, token, additionalProperties) /* spotless:on */
734712
}
735713
return hashCode
736714
}
@@ -939,30 +917,14 @@ private constructor(
939917
return true
940918
}
941919

942-
return other is VerificationAddress &&
943-
this.address1 == other.address1 &&
944-
this.address2 == other.address2 &&
945-
this.city == other.city &&
946-
this.country == other.country &&
947-
this.postalCode == other.postalCode &&
948-
this.state == other.state &&
949-
this.additionalProperties == other.additionalProperties
920+
return /* spotless:off */ other is VerificationAddress && this.address1 == other.address1 && this.address2 == other.address2 && this.city == other.city && this.country == other.country && this.postalCode == other.postalCode && this.state == other.state && this.additionalProperties == other.additionalProperties /* spotless:on */
950921
}
951922

952923
private var hashCode: Int = 0
953924

954925
override fun hashCode(): Int {
955926
if (hashCode == 0) {
956-
hashCode =
957-
Objects.hash(
958-
address1,
959-
address2,
960-
city,
961-
country,
962-
postalCode,
963-
state,
964-
additionalProperties,
965-
)
927+
hashCode = /* spotless:off */ Objects.hash(address1, address2, city, country, postalCode, state, additionalProperties) /* spotless:on */
966928
}
967929
return hashCode
968930
}
@@ -976,34 +938,14 @@ private constructor(
976938
return true
977939
}
978940

979-
return other is Account &&
980-
this.accountHolder == other.accountHolder &&
981-
this.authRuleTokens == other.authRuleTokens &&
982-
this.cardholderCurrency == other.cardholderCurrency &&
983-
this.spendLimit == other.spendLimit &&
984-
this.state == other.state &&
985-
this.token == other.token &&
986-
this.verificationAddress == other.verificationAddress &&
987-
this.created == other.created &&
988-
this.additionalProperties == other.additionalProperties
941+
return /* spotless:off */ other is Account && this.accountHolder == other.accountHolder && this.authRuleTokens == other.authRuleTokens && this.cardholderCurrency == other.cardholderCurrency && this.spendLimit == other.spendLimit && this.state == other.state && this.token == other.token && this.verificationAddress == other.verificationAddress && this.created == other.created && this.additionalProperties == other.additionalProperties /* spotless:on */
989942
}
990943

991944
private var hashCode: Int = 0
992945

993946
override fun hashCode(): Int {
994947
if (hashCode == 0) {
995-
hashCode =
996-
Objects.hash(
997-
accountHolder,
998-
authRuleTokens,
999-
cardholderCurrency,
1000-
spendLimit,
1001-
state,
1002-
token,
1003-
verificationAddress,
1004-
created,
1005-
additionalProperties,
1006-
)
948+
hashCode = /* spotless:off */ Objects.hash(accountHolder, authRuleTokens, cardholderCurrency, spendLimit, state, token, verificationAddress, created, additionalProperties) /* spotless:on */
1007949
}
1008950
return hashCode
1009951
}

lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountFinancialAccountType.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ private constructor(
2121
return true
2222
}
2323

24-
return other is AccountFinancialAccountType && this.value == other.value
24+
return /* spotless:off */ other is AccountFinancialAccountType && this.value == other.value /* spotless:on */
2525
}
2626

2727
override fun hashCode() = value.hashCode()

lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolder.kt

Lines changed: 14 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -978,32 +978,14 @@ private constructor(
978978
return true
979979
}
980980

981-
return other is AccountHolderBusinessResponse &&
982-
this.address == other.address &&
983-
this.dbaBusinessName == other.dbaBusinessName &&
984-
this.governmentId == other.governmentId &&
985-
this.legalBusinessName == other.legalBusinessName &&
986-
this.parentCompany == other.parentCompany &&
987-
this.phoneNumbers == other.phoneNumbers &&
988-
this.entityToken == other.entityToken &&
989-
this.additionalProperties == other.additionalProperties
981+
return /* spotless:off */ other is AccountHolderBusinessResponse && this.address == other.address && this.dbaBusinessName == other.dbaBusinessName && this.governmentId == other.governmentId && this.legalBusinessName == other.legalBusinessName && this.parentCompany == other.parentCompany && this.phoneNumbers == other.phoneNumbers && this.entityToken == other.entityToken && this.additionalProperties == other.additionalProperties /* spotless:on */
990982
}
991983

992984
private var hashCode: Int = 0
993985

994986
override fun hashCode(): Int {
995987
if (hashCode == 0) {
996-
hashCode =
997-
Objects.hash(
998-
address,
999-
dbaBusinessName,
1000-
governmentId,
1001-
legalBusinessName,
1002-
parentCompany,
1003-
phoneNumbers,
1004-
entityToken,
1005-
additionalProperties,
1006-
)
988+
hashCode = /* spotless:off */ Objects.hash(address, dbaBusinessName, governmentId, legalBusinessName, parentCompany, phoneNumbers, entityToken, additionalProperties) /* spotless:on */
1007989
}
1008990
return hashCode
1009991
}
@@ -1214,32 +1196,14 @@ private constructor(
12141196
return true
12151197
}
12161198

1217-
return other is AccountHolderIndividualResponse &&
1218-
this.address == other.address &&
1219-
this.dob == other.dob &&
1220-
this.email == other.email &&
1221-
this.firstName == other.firstName &&
1222-
this.lastName == other.lastName &&
1223-
this.phoneNumber == other.phoneNumber &&
1224-
this.entityToken == other.entityToken &&
1225-
this.additionalProperties == other.additionalProperties
1199+
return /* spotless:off */ other is AccountHolderIndividualResponse && this.address == other.address && this.dob == other.dob && this.email == other.email && this.firstName == other.firstName && this.lastName == other.lastName && this.phoneNumber == other.phoneNumber && this.entityToken == other.entityToken && this.additionalProperties == other.additionalProperties /* spotless:on */
12261200
}
12271201

12281202
private var hashCode: Int = 0
12291203

12301204
override fun hashCode(): Int {
12311205
if (hashCode == 0) {
1232-
hashCode =
1233-
Objects.hash(
1234-
address,
1235-
dob,
1236-
email,
1237-
firstName,
1238-
lastName,
1239-
phoneNumber,
1240-
entityToken,
1241-
additionalProperties,
1242-
)
1206+
hashCode = /* spotless:off */ Objects.hash(address, dob, email, firstName, lastName, phoneNumber, entityToken, additionalProperties) /* spotless:on */
12431207
}
12441208
return hashCode
12451209
}
@@ -1261,7 +1225,7 @@ private constructor(
12611225
return true
12621226
}
12631227

1264-
return other is ExemptionType && this.value == other.value
1228+
return /* spotless:off */ other is ExemptionType && this.value == other.value /* spotless:on */
12651229
}
12661230

12671231
override fun hashCode() = value.hashCode()
@@ -1318,7 +1282,7 @@ private constructor(
13181282
return true
13191283
}
13201284

1321-
return other is Status && this.value == other.value
1285+
return /* spotless:off */ other is Status && this.value == other.value /* spotless:on */
13221286
}
13231287

13241288
override fun hashCode() = value.hashCode()
@@ -1393,7 +1357,7 @@ private constructor(
13931357
return true
13941358
}
13951359

1396-
return other is StatusReason && this.value == other.value
1360+
return /* spotless:off */ other is StatusReason && this.value == other.value /* spotless:on */
13971361
}
13981362

13991363
override fun hashCode() = value.hashCode()
@@ -1518,7 +1482,7 @@ private constructor(
15181482
return true
15191483
}
15201484

1521-
return other is UserType && this.value == other.value
1485+
return /* spotless:off */ other is UserType && this.value == other.value /* spotless:on */
15221486
}
15231487

15241488
override fun hashCode() = value.hashCode()
@@ -1743,7 +1707,7 @@ private constructor(
17431707
return true
17441708
}
17451709

1746-
return other is Status && this.value == other.value
1710+
return /* spotless:off */ other is Status && this.value == other.value /* spotless:on */
17471711
}
17481712

17491713
override fun hashCode() = value.hashCode()
@@ -1818,7 +1782,7 @@ private constructor(
18181782
return true
18191783
}
18201784

1821-
return other is StatusReason && this.value == other.value
1785+
return /* spotless:off */ other is StatusReason && this.value == other.value /* spotless:on */
18221786
}
18231787

18241788
override fun hashCode() = value.hashCode()
@@ -1938,26 +1902,14 @@ private constructor(
19381902
return true
19391903
}
19401904

1941-
return other is AccountHolderVerificationApplication &&
1942-
this.created == other.created &&
1943-
this.status == other.status &&
1944-
this.statusReasons == other.statusReasons &&
1945-
this.updated == other.updated &&
1946-
this.additionalProperties == other.additionalProperties
1905+
return /* spotless:off */ other is AccountHolderVerificationApplication && this.created == other.created && this.status == other.status && this.statusReasons == other.statusReasons && this.updated == other.updated && this.additionalProperties == other.additionalProperties /* spotless:on */
19471906
}
19481907

19491908
private var hashCode: Int = 0
19501909

19511910
override fun hashCode(): Int {
19521911
if (hashCode == 0) {
1953-
hashCode =
1954-
Objects.hash(
1955-
created,
1956-
status,
1957-
statusReasons,
1958-
updated,
1959-
additionalProperties,
1960-
)
1912+
hashCode = /* spotless:off */ Objects.hash(created, status, statusReasons, updated, additionalProperties) /* spotless:on */
19611913
}
19621914
return hashCode
19631915
}
@@ -1971,58 +1923,14 @@ private constructor(
19711923
return true
19721924
}
19731925

1974-
return other is AccountHolder &&
1975-
this.accountToken == other.accountToken &&
1976-
this.beneficialOwnerEntities == other.beneficialOwnerEntities &&
1977-
this.beneficialOwnerIndividuals == other.beneficialOwnerIndividuals &&
1978-
this.businessAccountToken == other.businessAccountToken &&
1979-
this.businessEntity == other.businessEntity &&
1980-
this.controlPerson == other.controlPerson &&
1981-
this.created == other.created &&
1982-
this.email == other.email &&
1983-
this.exemptionType == other.exemptionType &&
1984-
this.externalId == other.externalId &&
1985-
this.individual == other.individual &&
1986-
this.natureOfBusiness == other.natureOfBusiness &&
1987-
this.phoneNumber == other.phoneNumber &&
1988-
this.status == other.status &&
1989-
this.statusReasons == other.statusReasons &&
1990-
this.token == other.token &&
1991-
this.userType == other.userType &&
1992-
this.verificationApplication == other.verificationApplication &&
1993-
this.requiredDocuments == other.requiredDocuments &&
1994-
this.websiteUrl == other.websiteUrl &&
1995-
this.additionalProperties == other.additionalProperties
1926+
return /* spotless:off */ other is AccountHolder && this.accountToken == other.accountToken && this.beneficialOwnerEntities == other.beneficialOwnerEntities && this.beneficialOwnerIndividuals == other.beneficialOwnerIndividuals && this.businessAccountToken == other.businessAccountToken && this.businessEntity == other.businessEntity && this.controlPerson == other.controlPerson && this.created == other.created && this.email == other.email && this.exemptionType == other.exemptionType && this.externalId == other.externalId && this.individual == other.individual && this.natureOfBusiness == other.natureOfBusiness && this.phoneNumber == other.phoneNumber && this.status == other.status && this.statusReasons == other.statusReasons && this.token == other.token && this.userType == other.userType && this.verificationApplication == other.verificationApplication && this.requiredDocuments == other.requiredDocuments && this.websiteUrl == other.websiteUrl && this.additionalProperties == other.additionalProperties /* spotless:on */
19961927
}
19971928

19981929
private var hashCode: Int = 0
19991930

20001931
override fun hashCode(): Int {
20011932
if (hashCode == 0) {
2002-
hashCode =
2003-
Objects.hash(
2004-
accountToken,
2005-
beneficialOwnerEntities,
2006-
beneficialOwnerIndividuals,
2007-
businessAccountToken,
2008-
businessEntity,
2009-
controlPerson,
2010-
created,
2011-
email,
2012-
exemptionType,
2013-
externalId,
2014-
individual,
2015-
natureOfBusiness,
2016-
phoneNumber,
2017-
status,
2018-
statusReasons,
2019-
token,
2020-
userType,
2021-
verificationApplication,
2022-
requiredDocuments,
2023-
websiteUrl,
2024-
additionalProperties,
2025-
)
1933+
hashCode = /* spotless:off */ Objects.hash(accountToken, beneficialOwnerEntities, beneficialOwnerIndividuals, businessAccountToken, businessEntity, controlPerson, created, email, exemptionType, externalId, individual, natureOfBusiness, phoneNumber, status, statusReasons, token, userType, verificationApplication, requiredDocuments, websiteUrl, additionalProperties) /* spotless:on */
20261934
}
20271935
return hashCode
20281936
}

0 commit comments

Comments
 (0)