Skip to content

Commit

Permalink
fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
yanxutao89 committed Sep 19, 2024
1 parent df5ac5c commit 1fa221b
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions core/src/test/java/com/alibaba/fastjson2/issues_2900/Issue2944.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<Employee> employees;
class Department {
private final String name;
private final List<Employee> employees;

public String getName() {
return name;
}
public String getName() {
return name;
}

public List<Employee> getEmployees() {
return employees;
}
public List<Employee> getEmployees() {
return employees;
}

public Department(String name, List<Employee> employees) {
this.name = name;
this.employees = employees;
}
public Department(String name, List<Employee> 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 + '\'' +
'}';
}
}
}

0 comments on commit 1fa221b

Please sign in to comment.