From 08e8fa2e9a1781d3c4dddedb873eb8794b2b0ead Mon Sep 17 00:00:00 2001 From: Brendan Burns <5751682+brendandburns@users.noreply.github.com> Date: Thu, 26 Sep 2024 19:32:54 +0000 Subject: [PATCH] Fixes --- examples/pom.xml | 2 -- .../kubernetes/client/gson/V1MetadataExclusionStrategy.java | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/pom.xml b/examples/pom.xml index 27c4cfea39..83e4ac3273 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -17,12 +17,10 @@ client-java-examples-parent - examples-release-latest diff --git a/kubernetes/src/main/java/io/kubernetes/client/gson/V1MetadataExclusionStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/gson/V1MetadataExclusionStrategy.java index f13a2a5f23..d6679fb164 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/gson/V1MetadataExclusionStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/gson/V1MetadataExclusionStrategy.java @@ -21,8 +21,8 @@ public boolean shouldSkipField(FieldAttributes f) { // Don't serialize the 'managedFields' field. return (f.getDeclaringClass().equals(V1ObjectMeta.class) && f.getName().equalsIgnoreCase("managedFields")); } - + public boolean shouldSkipClass(Class clazz) { return false; } -} \ No newline at end of file +}