@@ -78,17 +78,6 @@ abstract static class StringWrapperMixIn {
78
78
}
79
79
80
80
// [databind#2020]
81
- @ JsonIgnoreProperties ("size" )
82
- abstract class MyPairMixIn8 { // with and without <Long, String>
83
- @ JsonCreator
84
- public Pair2020 with (@ JsonProperty ("value0" ) Object value0 ,
85
- @ JsonProperty ("value1" ) Object value1 )
86
- {
87
- // body does not matter, only signature
88
- return null ;
89
- }
90
- }
91
-
92
81
static class Pair2020 {
93
82
final int x , y ;
94
83
@@ -97,14 +86,23 @@ private Pair2020(int x0, int y0) {
97
86
y = y0 ;
98
87
}
99
88
100
- @ JsonCreator
101
89
static Pair2020 with (Object x0 , Object y0 ) {
102
- // static Pair2020 with(@JsonProperty("value0") Object x0, @JsonProperty("value1")Object y0) {
103
- return new Pair2020 (((Number ) x0 ).intValue (),
90
+ return new Pair2020 (((Number ) x0 ).intValue (),
104
91
((Number ) y0 ).intValue ());
105
92
}
106
93
}
107
94
95
+ @ JsonIgnoreProperties ("size" )
96
+ static class MyPairMixIn8 { // with and without <Long, String>
97
+ @ JsonCreator
98
+ static TestMixinDeserForCreators .Pair2020 with (@ JsonProperty ("value0" ) Object value0 ,
99
+ @ JsonProperty ("value1" ) Object value1 )
100
+ {
101
+ // body does not matter, only signature
102
+ return null ;
103
+ }
104
+ }
105
+
108
106
/*
109
107
/**********************************************************
110
108
/* Unit tests
@@ -144,7 +142,6 @@ public void testFactoryDelegateMixIn() throws IOException
144
142
}
145
143
146
144
// [databind#2020]
147
- /*
148
145
public void testFactoryPropertyMixin () throws Exception
149
146
{
150
147
ObjectMapper objectMapper = new ObjectMapper ();
@@ -155,5 +152,4 @@ public void testFactoryPropertyMixin() throws Exception
155
152
assertEquals (456 , pair2 .x );
156
153
assertEquals (789 , pair2 .y );
157
154
}
158
- */
159
155
}
0 commit comments