diff --git a/core/src/test/java/com/alibaba/fastjson2/issues_2900/Issue2944.java b/core/src/test/java/com/alibaba/fastjson2/issues_2900/Issue2944.java index 6e01af6b78..d0cb3ed73b 100644 --- a/core/src/test/java/com/alibaba/fastjson2/issues_2900/Issue2944.java +++ b/core/src/test/java/com/alibaba/fastjson2/issues_2900/Issue2944.java @@ -23,56 +23,56 @@ public void test() { Department parsed = jsonObject.toJavaObject(Department.class); assertEquals(payload, JSON.toJSONString(parsed)); } -} -class Department { - private final String name; - private final List employees; + class Department { + private final String name; + private final List employees; - public String getName() { - return name; - } + public String getName() { + return name; + } - public List getEmployees() { - return employees; - } + public List getEmployees() { + return employees; + } - public Department(String name, List employees) { - this.name = name; - this.employees = employees; - } + public Department(String name, List employees) { + this.name = name; + this.employees = employees; + } - @Override - public String toString() { - return "Department{" + - "name='" + name + '\'' + - ", employees=" + employees + - '}'; + @Override + public String toString() { + return "Department{" + + "name='" + name + '\'' + + ", employees=" + employees + + '}'; + } } -} -class Employee { - private final Integer id; - private final String name; + class Employee { + private final Integer id; + private final String name; - public Integer getId() { - return id; - } + public Integer getId() { + return id; + } - public String getName() { - return name; - } + public String getName() { + return name; + } - public Employee(int id, String name) { - this.id = id; - this.name = name; - } + public Employee(int id, String name) { + this.id = id; + this.name = name; + } - @Override - public String toString() { - return "Employee{" + - "id=" + id + - ", name='" + name + '\'' + - '}'; + @Override + public String toString() { + return "Employee{" + + "id=" + id + + ", name='" + name + '\'' + + '}'; + } } }