diff --git a/src/common/ReflectionCache.cj b/src/common/ReflectionCache.cj index 2b95ed4..c793b54 100644 --- a/src/common/ReflectionCache.cj +++ b/src/common/ReflectionCache.cj @@ -28,8 +28,6 @@ public class FieldMetadata { public var variable: ?InstanceVariableInfo = None /// 是否可变(反序列化只写 var) public var mutable: Bool = false - - public init() {} } /** diff --git a/src/json/JsonOption.cj b/src/json/JsonOption.cj index d5f7938..bedd058 100644 --- a/src/json/JsonOption.cj +++ b/src/json/JsonOption.cj @@ -20,8 +20,6 @@ public class JsonOption { /// 递归深度上限(默认 64) public var maxDepth: Int64 = 64 - public init() {} - /// 默认选项实例 public static let instance: JsonOption = JsonOption() } diff --git a/src/tests/JsonSerializer_test.cj b/src/tests/JsonSerializer_test.cj index 02154de..b86eb1b 100644 --- a/src/tests/JsonSerializer_test.cj +++ b/src/tests/JsonSerializer_test.cj @@ -67,7 +67,6 @@ open class MidParent <: GrandParent { class LeafChild <: MidParent { public var _lc: String = "" - public init() {} } // 三级继承(全标宏):爷 → 父 → 子 每层都标注 @SerializerParent @@ -83,7 +82,6 @@ open class MidAll <: GrandAll { class LeafAll <: MidAll { public var _la: String = "" - public init() {} } func makeUser(): User {