@@ -29,17 +29,17 @@ public CombinedSchema build() {
29
29
return new CombinedSchema (this );
30
30
}
31
31
32
- public Builder criterion (final ValidationCriterion criterion ) {
32
+ public Builder criterion (ValidationCriterion criterion ) {
33
33
this .criterion = criterion ;
34
34
return this ;
35
35
}
36
36
37
- public Builder subschema (final Schema subschema ) {
37
+ public Builder subschema (Schema subschema ) {
38
38
this .subschemas .add (subschema );
39
39
return this ;
40
40
}
41
41
42
- public Builder subschemas (final Collection <Schema > subschemas ) {
42
+ public Builder subschemas (Collection <Schema > subschemas ) {
43
43
this .subschemas = subschemas ;
44
44
return this ;
45
45
}
@@ -127,23 +127,23 @@ public void validate(int subschemaCount, int matchingCount) {
127
127
}
128
128
};
129
129
130
- public static Builder allOf (final Collection <Schema > schemas ) {
130
+ public static Builder allOf (Collection <Schema > schemas ) {
131
131
return builder (schemas ).criterion (ALL_CRITERION );
132
132
}
133
133
134
- public static Builder anyOf (final Collection <Schema > schemas ) {
134
+ public static Builder anyOf (Collection <Schema > schemas ) {
135
135
return builder (schemas ).criterion (ANY_CRITERION );
136
136
}
137
137
138
138
public static Builder builder () {
139
139
return new Builder ();
140
140
}
141
141
142
- public static Builder builder (final Collection <Schema > subschemas ) {
142
+ public static Builder builder (Collection <Schema > subschemas ) {
143
143
return new Builder ().subschemas (subschemas );
144
144
}
145
145
146
- public static Builder oneOf (final Collection <Schema > schemas ) {
146
+ public static Builder oneOf (Collection <Schema > schemas ) {
147
147
return builder (schemas ).criterion (ONE_CRITERION );
148
148
}
149
149
@@ -157,7 +157,7 @@ public static Builder oneOf(final Collection<Schema> schemas) {
157
157
* @param builder
158
158
* the builder containing the validation criterion and the subschemas to be checked
159
159
*/
160
- public CombinedSchema (final Builder builder ) {
160
+ public CombinedSchema (Builder builder ) {
161
161
super (builder );
162
162
this .criterion = requireNonNull (builder .criterion , "criterion cannot be null" );
163
163
this .subschemas = requireNonNull (builder .subschemas , "subschemas cannot be null" );
@@ -176,7 +176,7 @@ public Collection<Schema> getSubschemas() {
176
176
}
177
177
178
178
@ Override
179
- public boolean definesProperty (final String field ) {
179
+ public boolean definesProperty (String field ) {
180
180
List <Schema > matching = new ArrayList <>();
181
181
for (Schema subschema : subschemas ) {
182
182
if (subschema .definesProperty (field )) {
0 commit comments