Skip to content

Commit fee1332

Browse files
chore(internal): format identity methods
1 parent e282b93 commit fee1332

File tree

155 files changed

+3379
-1270
lines changed

Some content is hidden

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

155 files changed

+3379
-1270
lines changed

finch-java-core/src/main/kotlin/com/tryfinch/api/core/Timeout.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,14 @@ private constructor(
157157
return true
158158
}
159159

160-
return /* spotless:off */ other is Timeout && connect == other.connect && read == other.read && write == other.write && request == other.request /* spotless:on */
160+
return other is Timeout &&
161+
connect == other.connect &&
162+
read == other.read &&
163+
write == other.write &&
164+
request == other.request
161165
}
162166

163-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(connect, read, write, request) /* spotless:on */
167+
override fun hashCode(): Int = Objects.hash(connect, read, write, request)
164168

165169
override fun toString() =
166170
"Timeout{connect=$connect, read=$read, write=$write, request=$request}"

finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccessTokenCreateParams.kt

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -567,12 +567,17 @@ private constructor(
567567
return true
568568
}
569569

570-
return /* spotless:off */ other is Body && code == other.code && clientId == other.clientId && clientSecret == other.clientSecret && redirectUri == other.redirectUri && additionalProperties == other.additionalProperties /* spotless:on */
570+
return other is Body &&
571+
code == other.code &&
572+
clientId == other.clientId &&
573+
clientSecret == other.clientSecret &&
574+
redirectUri == other.redirectUri &&
575+
additionalProperties == other.additionalProperties
571576
}
572577

573-
/* spotless:off */
574-
private val hashCode: Int by lazy { Objects.hash(code, clientId, clientSecret, redirectUri, additionalProperties) }
575-
/* spotless:on */
578+
private val hashCode: Int by lazy {
579+
Objects.hash(code, clientId, clientSecret, redirectUri, additionalProperties)
580+
}
576581

577582
override fun hashCode(): Int = hashCode
578583

@@ -585,10 +590,13 @@ private constructor(
585590
return true
586591
}
587592

588-
return /* spotless:off */ other is AccessTokenCreateParams && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
593+
return other is AccessTokenCreateParams &&
594+
body == other.body &&
595+
additionalHeaders == other.additionalHeaders &&
596+
additionalQueryParams == other.additionalQueryParams
589597
}
590598

591-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(body, additionalHeaders, additionalQueryParams) /* spotless:on */
599+
override fun hashCode(): Int = Objects.hash(body, additionalHeaders, additionalQueryParams)
592600

593601
override fun toString() =
594602
"AccessTokenCreateParams{body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"

finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountCreateResponse.kt

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ private constructor(
556556
return true
557557
}
558558

559-
return /* spotless:off */ other is AuthenticationType && value == other.value /* spotless:on */
559+
return other is AuthenticationType && value == other.value
560560
}
561561

562562
override fun hashCode() = value.hashCode()
@@ -569,12 +569,29 @@ private constructor(
569569
return true
570570
}
571571

572-
return /* spotless:off */ other is AccountCreateResponse && accessToken == other.accessToken && accountId == other.accountId && authenticationType == other.authenticationType && companyId == other.companyId && connectionId == other.connectionId && products == other.products && providerId == other.providerId && additionalProperties == other.additionalProperties /* spotless:on */
572+
return other is AccountCreateResponse &&
573+
accessToken == other.accessToken &&
574+
accountId == other.accountId &&
575+
authenticationType == other.authenticationType &&
576+
companyId == other.companyId &&
577+
connectionId == other.connectionId &&
578+
products == other.products &&
579+
providerId == other.providerId &&
580+
additionalProperties == other.additionalProperties
573581
}
574582

575-
/* spotless:off */
576-
private val hashCode: Int by lazy { Objects.hash(accessToken, accountId, authenticationType, companyId, connectionId, products, providerId, additionalProperties) }
577-
/* spotless:on */
583+
private val hashCode: Int by lazy {
584+
Objects.hash(
585+
accessToken,
586+
accountId,
587+
authenticationType,
588+
companyId,
589+
connectionId,
590+
products,
591+
providerId,
592+
additionalProperties,
593+
)
594+
}
578595

579596
override fun hashCode(): Int = hashCode
580597

finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountDisconnectParams.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,14 @@ private constructor(
197197
return true
198198
}
199199

200-
return /* spotless:off */ other is AccountDisconnectParams && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
200+
return other is AccountDisconnectParams &&
201+
additionalHeaders == other.additionalHeaders &&
202+
additionalQueryParams == other.additionalQueryParams &&
203+
additionalBodyProperties == other.additionalBodyProperties
201204
}
202205

203-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
206+
override fun hashCode(): Int =
207+
Objects.hash(additionalHeaders, additionalQueryParams, additionalBodyProperties)
204208

205209
override fun toString() =
206210
"AccountDisconnectParams{additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"

finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountIntrospectParams.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,12 @@ private constructor(
158158
return true
159159
}
160160

161-
return /* spotless:off */ other is AccountIntrospectParams && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
161+
return other is AccountIntrospectParams &&
162+
additionalHeaders == other.additionalHeaders &&
163+
additionalQueryParams == other.additionalQueryParams
162164
}
163165

164-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(additionalHeaders, additionalQueryParams) /* spotless:on */
166+
override fun hashCode(): Int = Objects.hash(additionalHeaders, additionalQueryParams)
165167

166168
override fun toString() =
167169
"AccountIntrospectParams{additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"

0 commit comments

Comments
 (0)