-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#207: Fix mapping Optional of Enum to Optional of the same Enum.
Closes #207
- Loading branch information
1 parent
2b0e3c3
commit 9c85f06
Showing
6 changed files
with
105 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/test/java/io/beanmapper/testmodel/enums/OptionalEnumModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package io.beanmapper.testmodel.enums; | ||
|
||
import java.util.Optional; | ||
|
||
public class OptionalEnumModel { | ||
|
||
private Optional<Day> day; | ||
|
||
public OptionalEnumModel(Day day) { | ||
this.day = Optional.ofNullable(day); | ||
} | ||
|
||
public Optional<Day> getDay() { | ||
return day; | ||
} | ||
} |
Oops, something went wrong.