Skip to content

Commit cb87e2c

Browse files
authored
Merge pull request #619 from yue9944882/cleanup/remove-duplicated-patch-format
Chore: Remove duplicated patch format from ApiClient
2 parents 0d3afd8 + 3600991 commit cb87e2c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

kubernetes/src/main/java/io/kubernetes/client/ApiClient.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ public class ApiClient {
7373

7474
private HttpLoggingInterceptor loggingInterceptor;
7575

76-
public static final String PATCH_FORMAT_JSON_PATCH = "application/json-patch+json";
77-
public static final String PATCH_FORMAT_JSON_MERGE_PATCH = "application/merge-patch+json";
78-
public static final String PATCH_FORMAT_STRATEGIC_MERGE_PATCH = "application/strategic-merge-patch+json";
79-
8076
/*
8177
* Constructor for ApiClient
8278
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ public void testOverridePatchFormatInterceptor() throws IOException, ApiExceptio
6868
WireMock.verify(
6969
1,
7070
patchRequestedFor(urlPathEqualTo("/apis"))
71-
.withHeader("Content-Type", equalTo(ApiClient.PATCH_FORMAT_STRATEGIC_MERGE_PATCH)));
71+
.withHeader("Content-Type", equalTo(V1Patch.PATCH_FORMAT_STRATEGIC_MERGE_PATCH)));
7272
}
7373
}

0 commit comments

Comments
 (0)