Comparing alibaba/fastjson2 8e11bea..2859d84

View on GitHub
2 changed files with 4 additions and 4 deletions.
+2, -2core/src/main/java/com/alibaba/fastjson2/reader/ObjectReaderImplEnum.java
@@ -194,7 +194,7 @@ public final class ObjectReaderImplEnum
if (fieldType instanceof ParameterizedType) {
Type rawType = ((ParameterizedType) fieldType).getRawType();
if (List.class.isAssignableFrom((Class<?>) rawType)) {
throw new JSONException(this.getClass().getSimpleName() + "s parses error, JSONReader not forward when field type belongs to collection to avoid OOM");
throw new JSONException(this.getClass().getSimpleName() + " parses error, JSONReader not forward when field type belongs to collection to avoid OOM");
}
}
}
@@ -266,7 +266,7 @@ public final class ObjectReaderImplEnum
if (fieldType instanceof ParameterizedType) {
Type rawType = ((ParameterizedType) fieldType).getRawType();
if (List.class.isAssignableFrom((Class<?>) rawType)) {
throw new JSONException(this.getClass().getSimpleName() + "s parses error, JSONReader not forward when field type belongs to collection to avoid OOM");
throw new JSONException(this.getClass().getSimpleName() + " parses error, JSONReader not forward when field type belongs to collection to avoid OOM");
}
}
}
+2, -2core/src/main/java/com/alibaba/fastjson2/reader/ObjectReaderImplEnum2X4.java
@@ -133,7 +133,7 @@ public final class ObjectReaderImplEnum2X4
if (fieldType instanceof ParameterizedType) {
Type rawType = ((ParameterizedType) fieldType).getRawType();
if (List.class.isAssignableFrom((Class<?>) rawType)) {
throw new JSONException(this.getClass().getSimpleName() + "s parses error, JSONReader not forward when field type belongs to collection to avoid OOM");
throw new JSONException(this.getClass().getSimpleName() + " parses error, JSONReader not forward when field type belongs to collection to avoid OOM");
}
}
}
@@ -178,7 +178,7 @@ public final class ObjectReaderImplEnum2X4
if (fieldType instanceof ParameterizedType) {
Type rawType = ((ParameterizedType) fieldType).getRawType();
if (List.class.isAssignableFrom((Class<?>) rawType)) {
throw new JSONException(this.getClass().getSimpleName() + "s parses error, JSONReader not forward when field type belongs to collection to avoid OOM");
throw new JSONException(this.getClass().getSimpleName() + " parses error, JSONReader not forward when field type belongs to collection to avoid OOM");
}
}
}