44
55import java .lang .reflect .Type ;
66import java .util .*;
7- import java .util .zip .CRC32 ;
87
98class CodegenImplObject {
109
@@ -217,7 +216,7 @@ private static void appendMissingRequiredProperties(StringBuilder lines, ClassDe
217216 }
218217 }
219218 if (desc .onMissingProperties == null || !desc .ctor .parameters .isEmpty ()) {
220- append (lines , "throw new com.jsoniter.JsonException(\" missing required properties: \" + missingFields);" );
219+ append (lines , "throw new com.jsoniter.spi. JsonException(\" missing required properties: \" + missingFields);" );
221220 } else {
222221 if (desc .onMissingProperties .field != null ) {
223222 append (lines , String .format ("obj.%s = missingFields;" , desc .onMissingProperties .field .getName ()));
@@ -230,7 +229,7 @@ private static void appendMissingRequiredProperties(StringBuilder lines, ClassDe
230229 private static void appendOnUnknownField (StringBuilder lines , ClassDescriptor desc ) {
231230 if (desc .asExtraForUnknownProperties ) {
232231 if (desc .onExtraProperties == null ) {
233- append (lines , "throw new com.jsoniter.JsonException('extra property: ' + field.toString());" .replace ('\'' , '"' ));
232+ append (lines , "throw new com.jsoniter.spi. JsonException('extra property: ' + field.toString());" .replace ('\'' , '"' ));
234233 } else {
235234 append (lines , "if (extra == null) { extra = new java.util.HashMap(); }" );
236235 append (lines , "extra.put(field.toString(), iter.readAny());" );
@@ -292,7 +291,7 @@ private static void addFieldDispatch(
292291 Binding field = (Binding ) entry .getValue ();
293292 if (field .asExtraWhenPresent ) {
294293 append (lines , String .format (
295- "throw new com.jsoniter.JsonException('extra property: %s');" .replace ('\'' , '"' ),
294+ "throw new com.jsoniter.spi. JsonException('extra property: %s');" .replace ('\'' , '"' ),
296295 field .name ));
297296 } else if (field .shouldSkip ) {
298297 append (lines , "iter.skip();" );
0 commit comments