@@ -22,7 +22,7 @@ public class BuilderSimpleTest extends XmlTestUtil
22
22
// // Simple 2-property value class, builder with standard naming
23
23
24
24
@ JsonDeserialize (builder =SimpleBuilderXY .class )
25
- static class ValueClassXY
25
+ public static class ValueClassXY
26
26
{
27
27
final int _x , _y ;
28
28
@@ -32,7 +32,7 @@ protected ValueClassXY(int x, int y) {
32
32
}
33
33
}
34
34
35
- static class SimpleBuilderXY
35
+ public static class SimpleBuilderXY
36
36
{
37
37
public int x , y ;
38
38
@@ -54,7 +54,7 @@ public ValueClassXY build() {
54
54
// // 3-property value, with more varied builder
55
55
56
56
@ JsonDeserialize (builder =BuildABC .class )
57
- static class ValueClassABC
57
+ public static class ValueClassABC
58
58
{
59
59
final int a , b , c ;
60
60
@@ -66,7 +66,7 @@ protected ValueClassABC(int a, int b, int c) {
66
66
}
67
67
68
68
@ JsonIgnoreProperties ({ "d" })
69
- static class BuildABC
69
+ public static class BuildABC
70
70
{
71
71
public int a ; // to be used as is
72
72
private int b , c ;
@@ -91,16 +91,16 @@ public ValueClassABC build() {
91
91
// // Then Builder that is itself immutable
92
92
93
93
@ JsonDeserialize (builder =BuildImmutable .class )
94
- static class ValueImmutable
94
+ public static class ValueImmutable
95
95
{
96
96
final int value ;
97
97
protected ValueImmutable (int v ) { value = v ; }
98
98
}
99
99
100
- static class BuildImmutable {
100
+ public static class BuildImmutable {
101
101
private final int value ;
102
-
103
- private BuildImmutable () { this (0 ); }
102
+
103
+ public BuildImmutable () { this (0 ); }
104
104
private BuildImmutable (int v ) {
105
105
value = v ;
106
106
}
@@ -114,14 +114,14 @@ public ValueImmutable build() {
114
114
// And then with custom naming:
115
115
116
116
@ JsonDeserialize (builder =BuildFoo .class )
117
- static class ValueFoo
117
+ public static class ValueFoo
118
118
{
119
119
final int value ;
120
- protected ValueFoo (int v ) { value = v ; }
120
+ public ValueFoo (int v ) { value = v ; }
121
121
}
122
122
123
123
@ JsonPOJOBuilder (withPrefix ="foo" , buildMethodName ="construct" )
124
- static class BuildFoo {
124
+ public static class BuildFoo {
125
125
private int value ;
126
126
127
127
public BuildFoo fooValue (int v ) {
@@ -137,20 +137,20 @@ public ValueFoo construct() {
137
137
// for [databind#761]
138
138
139
139
@ JsonDeserialize (builder =ValueInterfaceBuilder .class )
140
- interface ValueInterface {
140
+ public interface ValueInterface {
141
141
int getX ();
142
142
}
143
143
144
144
@ JsonDeserialize (builder =ValueInterface2Builder .class )
145
- interface ValueInterface2 {
145
+ public interface ValueInterface2 {
146
146
int getX ();
147
147
}
148
148
149
- static class ValueInterfaceImpl implements ValueInterface
149
+ public static class ValueInterfaceImpl implements ValueInterface
150
150
{
151
151
final int _x ;
152
152
153
- protected ValueInterfaceImpl (int x ) {
153
+ public ValueInterfaceImpl (int x ) {
154
154
_x = x +1 ;
155
155
}
156
156
@@ -160,11 +160,11 @@ public int getX() {
160
160
}
161
161
}
162
162
163
- static class ValueInterface2Impl implements ValueInterface2
163
+ public static class ValueInterface2Impl implements ValueInterface2
164
164
{
165
165
final int _x ;
166
166
167
- protected ValueInterface2Impl (int x ) {
167
+ public ValueInterface2Impl (int x ) {
168
168
_x = x +1 ;
169
169
}
170
170
@@ -174,7 +174,7 @@ public int getX() {
174
174
}
175
175
}
176
176
177
- static class ValueInterfaceBuilder
177
+ public static class ValueInterfaceBuilder
178
178
{
179
179
public int x ;
180
180
@@ -188,7 +188,7 @@ public ValueInterface build() {
188
188
}
189
189
}
190
190
191
- static class ValueInterface2Builder
191
+ public static class ValueInterface2Builder
192
192
{
193
193
public int x ;
194
194
@@ -206,7 +206,7 @@ public ValueInterface2Impl build() {
206
206
// [databind#777]
207
207
@ JsonDeserialize (builder = SelfBuilder777 .class )
208
208
@ JsonPOJOBuilder (buildMethodName = "" , withPrefix = "with" )
209
- static class SelfBuilder777 {
209
+ public static class SelfBuilder777 {
210
210
public int x ;
211
211
212
212
public SelfBuilder777 withX (int value ) {
0 commit comments