Skip to content

Commit

Permalink
Fix fabric8io#1661: Remove generic parameter from KubernetesResource
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorniew committed Jul 26, 2019
1 parent ab7438b commit 5f576c4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Fix #1589: Move HorizontalPodAutoscaler to autoscaling/v1
* Fix #1553: Allow to explicitly set non-matching field selectors using `withoutField`
* Cleaned up kubernetes-model pom.xml
* Fix #1661: Remove generic parameter from KubernetesResource

Dependency Upgrade

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package io.fabric8.kubernetes.api.model;

public interface HasMetadata extends KubernetesResource {
public interface HasMetadata<E extends HasMetadata<E>> extends KubernetesResource<E> {

ObjectMeta getMetadata();
void setMetadata(ObjectMeta metadata);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
import java.io.Serializable;

@JsonDeserialize(using = KubernetesDeserializer.class)
public interface KubernetesResource<E extends io.fabric8.kubernetes.api.model.HasMetadata> extends Serializable {
public interface KubernetesResource extends Serializable {
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.io.Serializable;

@JsonDeserialize(using = KubernetesDeserializer.class)
public interface KubernetesResourceList<E extends io.fabric8.kubernetes.api.model.HasMetadata> extends Serializable {
public interface KubernetesResourceList<E extends io.fabric8.kubernetes.api.model.HasMetadata<E>> extends Serializable {

ListMeta getMetadata();

Expand Down

0 comments on commit 5f576c4

Please sign in to comment.