File tree Expand file tree Collapse file tree 11 files changed +28
-13
lines changed
main/java/com/basistech/rosette/apimodel/jackson
test/java/com/basistech/rosette/apimodel Expand file tree Collapse file tree 11 files changed +28
-13
lines changed Original file line number Diff line number Diff line change 1919 <parent >
2020 <groupId >com.basistech.rosette</groupId >
2121 <artifactId >rosette-api-java-binding</artifactId >
22- <version >1.9.1 -SNAPSHOT</version >
22+ <version >1.9.101 -SNAPSHOT</version >
2323 </parent >
2424 <artifactId >rosette-api-annotations</artifactId >
2525 <name >rosette-api-annotations</name >
Original file line number Diff line number Diff line change 1919 <parent >
2020 <groupId >com.basistech.rosette</groupId >
2121 <artifactId >rosette-api-java-binding</artifactId >
22- <version >1.9.1 -SNAPSHOT</version >
22+ <version >1.9.101 -SNAPSHOT</version >
2323 </parent >
2424 <artifactId >rosette-api</artifactId >
2525 <name >rosette-api</name >
Original file line number Diff line number Diff line change 1919 <parent >
2020 <groupId >com.basistech.rosette</groupId >
2121 <artifactId >rosette-api-java-binding</artifactId >
22- <version >1.9.1 -SNAPSHOT</version >
22+ <version >1.9.101 -SNAPSHOT</version >
2323 </parent >
2424 <artifactId >rosette-api-common</artifactId >
2525 <name >rosette-api-common</name >
Original file line number Diff line number Diff line change 2020 <parent >
2121 <groupId >com.basistech.rosette</groupId >
2222 <artifactId >rosette-api-java-binding</artifactId >
23- <version >1.9.1 -SNAPSHOT</version >
23+ <version >1.9.101 -SNAPSHOT</version >
2424 </parent >
2525 <groupId >com.basistech.rosette</groupId >
2626 <artifactId >rosette-api-examples</artifactId >
Original file line number Diff line number Diff line change 2020 <parent >
2121 <groupId >com.basistech.rosette</groupId >
2222 <artifactId >rosette-api-java-binding</artifactId >
23- <version >1.9.1 -SNAPSHOT</version >
23+ <version >1.9.101 -SNAPSHOT</version >
2424 </parent >
2525 <artifactId >rosette-api-json</artifactId >
2626 <name >rosette-api-json</name >
Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ protected NameMixin (
4141 //
4242 }
4343
44+ @ JsonCreator
45+ protected NameMixin (String name ) {
46+ //
47+ }
48+
4449 @ JsonPOJOBuilder (withPrefix = "" )
4550 abstract class NameBuilderMixin {
4651 }
Original file line number Diff line number Diff line change 2424import java .lang .reflect .ParameterizedType ;
2525import java .lang .reflect .Type ;
2626import java .util .ArrayList ;
27+ import java .util .Arrays ;
2728import java .util .Collection ;
2829import java .util .HashMap ;
2930import java .util .HashSet ;
@@ -58,7 +59,7 @@ public ModelTest(Boolean inputStreams) {
5859
5960 @ Parameterized .Parameters (name = "inputStreamContent: {0}" )
6061 public static Collection <Object []> data () {
61- return Lists . newArrayList (new Object [] {Boolean .FALSE }, new Object [] {Boolean .TRUE });
62+ return Arrays . asList (new Object [] {Boolean .FALSE }, new Object [] {Boolean .TRUE });
6263 }
6364
6465
Original file line number Diff line number Diff line change @@ -49,5 +49,9 @@ public void testRequestTypes() throws Exception {
4949 json = "{\" names\" : [{\" text\" : \" Joe\" }, {\" text\" : \" Smith\" }], \" threshold\" : 0.8}" ;
5050 request = mapper .readValue (json , NameDeduplicationRequest .class );
5151 assertTrue (request instanceof NameDeduplicationRequest );
52+
53+ json = "{\" names\" : [\" Joe\" , \" Smith\" ], \" threshold\" : 0.8}" ;
54+ request = mapper .readValue (json , NameDeduplicationRequest .class );
55+ assertTrue (request instanceof NameDeduplicationRequest );
5256 }
5357}
Original file line number Diff line number Diff line change 1919 <parent >
2020 <groupId >com.basistech.rosette</groupId >
2121 <artifactId >rosette-api-java-binding</artifactId >
22- <version >1.9.1 -SNAPSHOT</version >
22+ <version >1.9.101 -SNAPSHOT</version >
2323 </parent >
2424 <artifactId >rosette-api-model</artifactId >
2525 <name >rosette-api-model</name >
Original file line number Diff line number Diff line change 1818 <modelVersion >4.0.0</modelVersion >
1919 <groupId >com.basistech.rosette</groupId >
2020 <artifactId >rosette-api-java-binding</artifactId >
21- <version >1.9.1 -SNAPSHOT</version >
21+ <version >1.9.101 -SNAPSHOT</version >
2222 <parent >
2323 <artifactId >open-source-parent</artifactId >
2424 <groupId >com.basistech</groupId >
25- <version >1.1.5 </version >
25+ <version >1.2.0 </version >
2626 <relativePath />
2727 </parent >
2828 <packaging >pom</packaging >
6969 <dependency >
7070 <groupId >com.basistech</groupId >
7171 <artifactId >common-api</artifactId >
72- <version >36.1.3 </version >
72+ <version >36.1.4 </version >
7373 </dependency >
7474 <dependency >
7575 <groupId >com.basistech</groupId >
7676 <artifactId >adm-model</artifactId >
77- <version >2.4.0 </version >
77+ <version >2.4.3 </version >
7878 </dependency >
7979 <dependency >
8080 <groupId >com.basistech</groupId >
8181 <artifactId >adm-json</artifactId >
82- <version >2.4.0</version >
82+ <version >2.4.3</version >
83+ </dependency >
84+ <dependency >
85+ <groupId >com.google.guava</groupId >
86+ <artifactId >guava</artifactId >
87+ <version >18.0</version >
8388 </dependency >
8489 </dependencies >
8590 </dependencyManagement >
You can’t perform that action at this time.
0 commit comments