Skip to content

Commit df9b5df

Browse files
committed
improve: remove sealess type change
The curret implementation changed the underlying type, what is not we expect when passing an instance will create issues when some compares GVKs that are first passed then read. On the other hand if the user passes an instance of GVKP just can casr back. Signed-off-by: Attila Mészáros <[email protected]>
1 parent e764a11 commit df9b5df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/GenericKubernetesDependentResource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
public class GenericKubernetesDependentResource<P extends HasMetadata>
1010
extends KubernetesDependentResource<GenericKubernetesResource, P> {
1111

12-
private final GroupVersionKindPlural groupVersionKind;
12+
private final GroupVersionKind groupVersionKind;
1313

1414
public GenericKubernetesDependentResource(GroupVersionKind groupVersionKind) {
1515
this(GroupVersionKindPlural.from(groupVersionKind));
@@ -27,7 +27,7 @@ public GenericKubernetesDependentResource(GroupVersionKindPlural groupVersionKin
2727
}
2828

2929
@SuppressWarnings("unused")
30-
public GroupVersionKindPlural getGroupVersionKind() {
30+
public GroupVersionKind getGroupVersionKind() {
3131
return groupVersionKind;
3232
}
3333
}

0 commit comments

Comments
 (0)