mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#212 reproducer
This commit is contained in:
parent
3700052cc6
commit
13dbc3cccf
@ -33,14 +33,16 @@ public class Person {
|
||||
this.married = married;
|
||||
}
|
||||
|
||||
public Boolean isEngaged() {
|
||||
return engaged != null && !engaged;
|
||||
}
|
||||
|
||||
// START: please note: deliberately ordered, first getEngaged, then isEngaged.
|
||||
public Boolean getEngaged() {
|
||||
return engaged;
|
||||
}
|
||||
|
||||
public Boolean isEngaged() {
|
||||
return engaged != null && !engaged;
|
||||
}
|
||||
// END
|
||||
|
||||
public void setEngaged(Boolean engaged) {
|
||||
this.engaged = engaged;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user