Skip to content

Commit

Permalink
tiny cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Sep 21, 2024
1 parent 0a04c40 commit 80cc0bf
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package com.fasterxml.jackson.databind.tofix;

import com.fasterxml.jackson.annotation.JsonUnwrapped;

import org.junit.jupiter.api.Test;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.testutil.DatabindTestUtil;
import com.fasterxml.jackson.databind.testutil.failure.JacksonTestFailureExpected;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;

// [databind#4697] Inconsistent Serialization with Jackson’s @JsonUnwrapped Annotation
Expand All @@ -16,19 +17,19 @@ public class JsonUnwrappedInconsistentSerialization4697Test
{
public static class First {
@JsonUnwrapped(prefix = "")
public Thrid thrid = new Thrid();
public Third thrid = new Third();
}

public static class Second {
@JsonUnwrapped(prefix = "fromSecond")
public Thrid thrid = new Thrid();
public Third thrid = new Third();
}

public static class Thrid {
public static class Third {
@JsonUnwrapped(prefix = "fromThird")
public Common common = new Common();

public Thrid() {
public Third() {
this.common.a = "a";
this.common.b = "b";
}
Expand Down

0 comments on commit 80cc0bf

Please sign in to comment.