-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved support for maps, lists and sets from Java8 processor
Allow usage of such types without runtime mode. Add MapAnalyzer.Runtime since Map<String, Object> does not work by default. Improved error message: instruct user what to do in case of such errors. Use optimized converter for collection generic arguments.
- Loading branch information
Showing
17 changed files
with
405 additions
and
108 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
examples/Jackson/src/main/java/com/dslplatform/jackson/PersonBuilder.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,18 @@ | ||
package com.dslplatform.jackson; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
|
||
public class ImmutablePerson { | ||
|
||
public final String firstName; | ||
public final String lastName; | ||
public final int age; | ||
|
||
//JsonCreator can be used for selecting the appropriate constructor when there are multiple ones | ||
@JsonCreator | ||
public ImmutablePerson(String firstName, String lastName, int age) { | ||
this.firstName = firstName; | ||
this.lastName = lastName; | ||
this.age = age; | ||
} | ||
} |
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
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
Oops, something went wrong.