Skip to content

Commit c59d2c5

Browse files
committed
Update deprecated addModelMap method according to SonarLint java:S1123
1 parent e02477c commit c59d2c5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import io.kubernetes.client.common.KubernetesObject;
2020
import io.kubernetes.client.openapi.ApiException;
2121
import java.io.File;
22-
import java.io.FileInputStream;
22+
2323
import java.io.IOException;
2424
import java.net.URI;
2525
import java.net.URL;
@@ -35,7 +35,6 @@
3535
import java.util.concurrent.ConcurrentHashMap;
3636
import java.util.jar.JarEntry;
3737
import java.util.jar.JarFile;
38-
import java.util.jar.JarInputStream;
3938

4039
import org.apache.commons.lang3.tuple.MutablePair;
4140
import org.apache.commons.lang3.tuple.Pair;
@@ -88,6 +87,10 @@ public class ModelMapper {
8887
*
8988
* <p>Note that the the so-called apiGroupVersion equals to the "apiVersion" in the kubenretes
9089
* resource yamls.
90+
*
91+
* @deprecated This method is deprecated. Please use the alternative method with the correct
92+
* parameters. For example, use {@link #addModelMap(String, String, String, Class)}
93+
* instead.
9194
*/
9295
@Deprecated
9396
public static void addModelMap(String apiGroupVersion, String kind, Class<?> clazz) {
@@ -107,6 +110,8 @@ public static void addModelMap(String apiGroupVersion, String kind, Class<?> cla
107110
* @param version the version
108111
* @param kind the kind
109112
* @param clazz the clazz
113+
* @deprecated This method is deprecated and will be removed in a future version.
114+
* Use the non-deprecated method(s) instead.
110115
*/
111116
@Deprecated
112117
public static void addModelMap(String group, String version, String kind, Class<?> clazz) {

0 commit comments

Comments
 (0)