diff options
author | Bruno da Silva Belo <bruno.belo@expertisesolutions.com.br> | 2019-12-17 11:00:09 -0300 |
---|---|---|
committer | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2019-12-17 11:26:57 -0300 |
commit | b6521cc279cda9a9a1591a30c4f63220e196b3af (patch) | |
tree | 4ca24ea6192e20def707809cc0cea291754d3415 | |
parent | c40e948270e84e0e8e1818736c1e77a103695d51 (diff) |
csharp: Suppressing non-events Raise methods.
Summary: ref T8390
Reviewers: lauromoura, felipealmeida, YOhoho, jptiz
Reviewed By: jptiz
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8390
Differential Revision: https://phab.enlightenment.org/D10717
-rw-r--r-- | src/bindings/mono/eina_mono/eina_error.cs | 5 | ||||
-rw-r--r-- | src/bindings/mono/eldbus_mono/eldbus_common.cs | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/bindings/mono/eina_mono/eina_error.cs b/src/bindings/mono/eina_mono/eina_error.cs index 44528cc691..1300e796ab 100644 --- a/src/bindings/mono/eina_mono/eina_error.cs +++ b/src/bindings/mono/eina_mono/eina_error.cs | |||
@@ -17,6 +17,7 @@ | |||
17 | 17 | ||
18 | using System; | 18 | using System; |
19 | using System.Runtime.InteropServices; | 19 | using System.Runtime.InteropServices; |
20 | using System.Diagnostics.CodeAnalysis; | ||
20 | 21 | ||
21 | namespace Eina | 22 | namespace Eina |
22 | { | 23 | { |
@@ -153,6 +154,8 @@ public struct Error : IComparable<Error>, IEquatable<Error> | |||
153 | /// back to the native code. For example, in an event handler. | 154 | /// back to the native code. For example, in an event handler. |
154 | /// <para>Since EFL 1.23.</para> | 155 | /// <para>Since EFL 1.23.</para> |
155 | /// </summary> | 156 | /// </summary> |
157 | [SuppressMessage("Microsoft.Design", "CA1030:UseEventsWhereAppropriate", | ||
158 | Justification = "It's not an event.")] | ||
156 | public static void RaiseIfUnhandledException() | 159 | public static void RaiseIfUnhandledException() |
157 | { | 160 | { |
158 | Error e = Get(); | 161 | Error e = Get(); |
@@ -167,6 +170,8 @@ public struct Error : IComparable<Error>, IEquatable<Error> | |||
167 | /// Raises an exception. | 170 | /// Raises an exception. |
168 | /// <para>Since EFL 1.23.</para> | 171 | /// <para>Since EFL 1.23.</para> |
169 | /// </summary> | 172 | /// </summary> |
173 | [SuppressMessage("Microsoft.Design", "CA1030:UseEventsWhereAppropriate", | ||
174 | Justification = "It's not an event.")] | ||
170 | public static void Raise(Error e) | 175 | public static void Raise(Error e) |
171 | { | 176 | { |
172 | if (e != 0) | 177 | if (e != 0) |
diff --git a/src/bindings/mono/eldbus_mono/eldbus_common.cs b/src/bindings/mono/eldbus_mono/eldbus_common.cs index 9d6a408c47..2606fe92c8 100644 --- a/src/bindings/mono/eldbus_mono/eldbus_common.cs +++ b/src/bindings/mono/eldbus_mono/eldbus_common.cs | |||
@@ -87,7 +87,7 @@ public struct ObjectPath : IEquatable<ObjectPath> | |||
87 | /// </summary> | 87 | /// </summary> |
88 | /// <param name="path">The ObjectPath to be converted.</param> | 88 | /// <param name="path">The ObjectPath to be converted.</param> |
89 | public static string ToString(ObjectPath path) => path.value; | 89 | public static string ToString(ObjectPath path) => path.value; |
90 | 90 | ||
91 | /// <summary> | 91 | /// <summary> |
92 | /// Gets a hash for <see cref="ObjectPath" />. | 92 | /// Gets a hash for <see cref="ObjectPath" />. |
93 | /// <para>Since EFL 1.24.</para> | 93 | /// <para>Since EFL 1.24.</para> |
@@ -1551,6 +1551,8 @@ public static class Common | |||
1551 | /// Register the NullError. | 1551 | /// Register the NullError. |
1552 | /// <para>Since EFL 1.23.</para> | 1552 | /// <para>Since EFL 1.23.</para> |
1553 | /// </summary> | 1553 | /// </summary> |
1554 | [SuppressMessage("Microsoft.Design", "CA1030:UseEventsWhereAppropriate", | ||
1555 | Justification = "It's not an event.")] | ||
1554 | public static void RaiseNullHandle() | 1556 | public static void RaiseNullHandle() |
1555 | { | 1557 | { |
1556 | if (NullHandleError == 0) | 1558 | if (NullHandleError == 0) |