diff --git a/mock/ohos.common_event_manager.cj b/mock/ohos.common_event_manager.cj index e963115..864431e 100644 --- a/mock/ohos.common_event_manager.cj +++ b/mock/ohos.common_event_manager.cj @@ -67,7 +67,7 @@ public class CommonEventManager { return () } - public init() { + init() { super() } } @@ -1067,7 +1067,7 @@ public class Support { ] public static const COMMON_EVENT_CONNECTIVITY_CHANGE: String = "usual.event.CONNECTIVITY_CHANGE" - public init() { + init() { super() } } diff --git a/ohos/common_event_manager/common_event_manager.cj b/ohos/common_event_manager/common_event_manager.cj index 3338a34..1b1f7b3 100644 --- a/ohos/common_event_manager/common_event_manager.cj +++ b/ohos/common_event_manager/common_event_manager.cj @@ -38,6 +38,7 @@ public import ohos.value_type.CommonEventValueType syscap: "SystemCapability.Notification.CommonEvent" ] public class CommonEventManager { + init() {} /** * Publishes a common event. * diff --git a/ohos/common_event_manager/support.cj b/ohos/common_event_manager/support.cj index 98a1ab0..9f611c9 100644 --- a/ohos/common_event_manager/support.cj +++ b/ohos/common_event_manager/support.cj @@ -27,6 +27,7 @@ import ohos.labels.APILevel syscap: "SystemCapability.Notification.CommonEvent" ] public class Support { + init() {} /** * This commonEvent means when the device is booted or system upgrade completed, and only be sent by system. * This API can be called only by system applications.