Skip to content

Commit e2d8574

Browse files
committed
style: fix formatting
1 parent 165c631 commit e2d8574

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

util/src/main/java/io/kubernetes/client/util/ServerSideApply.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
* <pre>{@code
3535
* // Simple server-side apply
3636
* V1Pod appliedPod = ServerSideApply.apply(
37-
* apiClient,
38-
* V1Pod.class,
39-
* V1PodList.class,
40-
* deployment,
37+
* apiClient,
38+
* V1Pod.class,
39+
* V1PodList.class,
40+
* deployment,
4141
* "my-field-manager"
4242
* );
4343
*
@@ -363,14 +363,14 @@ private String getPluralFromResource() {
363363
}
364364
return pluralize(kind);
365365
}
366-
366+
367367
/**
368368
* Simple pluralization for Kubernetes resource kinds.
369369
*/
370370
private String pluralize(String kind) {
371371
String lower = kind.toLowerCase();
372372
// Special cases for Kubernetes kinds
373-
if (lower.endsWith("s") || lower.endsWith("x") || lower.endsWith("z")
373+
if (lower.endsWith("s") || lower.endsWith("x") || lower.endsWith("z")
374374
|| lower.endsWith("ch") || lower.endsWith("sh")) {
375375
return lower + "es";
376376
}

util/src/test/java/io/kubernetes/client/util/ServerSideApplyTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ void apply_nullResource_throwsNullPointerException() {
232232
@Test
233233
void apply_nullApi_throwsNullPointerException() {
234234
V1Pod pod = createPod("test-pod", "default");
235-
assertThatThrownBy(() ->
235+
assertThatThrownBy(() ->
236236
ServerSideApply.apply((GenericKubernetesApi<V1Pod, V1PodList>) null, pod, "test-manager"))
237237
.isInstanceOf(NullPointerException.class);
238238
}
@@ -288,7 +288,7 @@ void apply_conflict_throwsApiException() {
288288
void builder_missingApiTypeClass_throwsNullPointerException() {
289289
V1Pod pod = createPod("test-pod", "default");
290290

291-
assertThatThrownBy(() ->
291+
assertThatThrownBy(() ->
292292
ServerSideApply.<V1Pod, V1PodList>builder(apiClient)
293293
.apiListTypeClass(V1PodList.class)
294294
.resource(pod)
@@ -302,7 +302,7 @@ void builder_missingApiTypeClass_throwsNullPointerException() {
302302
void builder_missingApiListTypeClass_throwsNullPointerException() {
303303
V1Pod pod = createPod("test-pod", "default");
304304

305-
assertThatThrownBy(() ->
305+
assertThatThrownBy(() ->
306306
ServerSideApply.<V1Pod, V1PodList>builder(apiClient)
307307
.apiTypeClass(V1Pod.class)
308308
.resource(pod)
@@ -314,7 +314,7 @@ void builder_missingApiListTypeClass_throwsNullPointerException() {
314314

315315
@Test
316316
void builder_missingResource_throwsNullPointerException() {
317-
assertThatThrownBy(() ->
317+
assertThatThrownBy(() ->
318318
ServerSideApply.<V1Pod, V1PodList>builder(apiClient)
319319
.apiTypeClass(V1Pod.class)
320320
.apiListTypeClass(V1PodList.class)

0 commit comments

Comments
 (0)