Skip to content

Commit

Permalink
immutables#1339 Steps to reproduce.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Simkin committed Oct 20, 2021
1 parent 6a75a95 commit 720bcaf
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package org.immutables.fixture.jackson.i1339;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.immutables.value.Value;

import java.util.List;

@JsonSerialize
@Value.Immutable
@JsonDeserialize(as = ImmutableCar.class)
public abstract class AbstractCar implements Car {
@Override
@JsonDeserialize(as = ImmutableTire.class)
public abstract List<Tire> getTires();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package org.immutables.fixture.jackson.i1339;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.immutables.value.Value;

@Value.Immutable
@JsonDeserialize(as = ImmutableTire.class)
public abstract class AbstractTire implements Tire { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package org.immutables.fixture.jackson.i1339;

import java.util.List;

public interface Car {
List<Tire> getTires();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package org.immutables.fixture.jackson.i1339;

import org.immutables.value.Value;

@Value.Immutable
public interface Tire {
}

0 comments on commit 720bcaf

Please sign in to comment.