Skip to content

Commit 94d2561

Browse files
committed
Modify the constructor of BadAnnotatedSubject
1 parent ad27aa0 commit 94d2561

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/org/apache/ibatis/autoconstructor/BadAnnotatedSubject.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ public BadAnnotatedSubject(final int id, final String name, final int age, final
3434
}
3535

3636
@AutomapConstructor
37-
public BadAnnotatedSubject(final int id, final String name, final int age, final Integer height, final Integer weight) {
37+
public BadAnnotatedSubject(final int id, final String name, final int age) {
3838
this.id = id;
3939
this.name = name;
4040
this.age = age;
41-
this.height = height == null ? 0 : height;
42-
this.weight = weight == null ? 0 : weight;
41+
this.height = 0;
42+
this.weight = 0;
4343
}
4444
}

0 commit comments

Comments
 (0)