mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix BeanUtilTest的变量赋值错误;
This commit is contained in:
@@ -342,9 +342,9 @@ public class BeanUtilTest {
|
|||||||
student.setNo(3158L);
|
student.setNo(3158L);
|
||||||
|
|
||||||
final Student student2 = new Student();
|
final Student student2 = new Student();
|
||||||
student.setName("李四");
|
student2.setName("李四");
|
||||||
student.setAge(125);
|
student2.setAge(125);
|
||||||
student.setNo(8848L);
|
student2.setNo(8848L);
|
||||||
|
|
||||||
final List<Student> studentList = ListUtil.view(student, student2);
|
final List<Student> studentList = ListUtil.view(student, student2);
|
||||||
|
|
||||||
@@ -669,9 +669,9 @@ public class BeanUtilTest {
|
|||||||
student.setNo(3158L);
|
student.setNo(3158L);
|
||||||
|
|
||||||
final Student student2 = new Student();
|
final Student student2 = new Student();
|
||||||
student.setName("李四");
|
student2.setName("李四");
|
||||||
student.setAge(125);
|
student2.setAge(125);
|
||||||
student.setNo(8848L);
|
student2.setNo(8848L);
|
||||||
|
|
||||||
final List<Student> studentList = ListUtil.view(student, student2);
|
final List<Student> studentList = ListUtil.view(student, student2);
|
||||||
final List<Person> people = BeanUtil.copyToList(studentList, Person.class);
|
final List<Person> people = BeanUtil.copyToList(studentList, Person.class);
|
||||||
|
Reference in New Issue
Block a user