From 439640cf6cf89c80e185c97c31f1284ee3c0168c Mon Sep 17 00:00:00 2001 From: Kazuki Ota Date: Thu, 25 Nov 2021 22:14:57 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BE=8B=E5=A4=96=E3=81=AE=E5=86=8D=E3=82=B9?= =?UTF-8?q?=E3=83=AD=E3=83=BC=E6=99=82=E3=81=AB=20stack=20trace=20?= =?UTF-8?q?=E3=81=8C=E6=B6=88=E3=81=88=E3=81=A6=E3=81=97=E3=81=BE=E3=81=86?= =?UTF-8?q?=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://docs.microsoft.com/ja-jp/dotnet/fundamentals/code-analysis/quality-rules/ca2200 --- Chino.Android/ExposureNotificationClient.cs | 22 +++++++++---------- .../ExposureStateBroadcastReceiver.cs | 4 ++-- Chino.iOS/ExposureNotificationClient.cs | 18 +++++++-------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Chino.Android/ExposureNotificationClient.cs b/Chino.Android/ExposureNotificationClient.cs index 511f9a7..b5a1a03 100644 --- a/Chino.Android/ExposureNotificationClient.cs +++ b/Chino.Android/ExposureNotificationClient.cs @@ -62,7 +62,7 @@ public void Init(Context applicationContext) { throw exception.ToENException(); } - throw exception; + throw; } } @@ -96,7 +96,7 @@ public override async Task StartAsync() { throw exception.ToENException(); } - throw exception; + throw; } } @@ -119,7 +119,7 @@ public override async Task StopAsync() { throw exception.ToENException(); } - throw exception; + throw; } } @@ -142,7 +142,7 @@ public override async Task IsEnabledAsync() { throw exception.ToENException(); } - throw exception; + throw; } } @@ -165,7 +165,7 @@ public override async Task GetVersionAsync() { throw exception.ToENException(); } - throw exception; + throw; } } @@ -189,7 +189,7 @@ public override async Task> GetStatusesAsync() { throw exception.ToENException(); } - throw exception; + throw; } } @@ -302,7 +302,7 @@ public override async Task ProvideDiagnosisKeysAsync { throw exception.ToENException(); } - throw exception; + throw; } } @@ -326,7 +326,7 @@ public override async Task> GetTemporaryExposureKeyHi { throw exception.ToENException(); } - throw exception; + throw; } } @@ -406,7 +406,7 @@ public override async Task ProvideDiagnosisKeysAsync { throw exception.ToENException(); } - throw exception; + throw; } } #pragma warning restore CS0618 // Type or member is obsolete @@ -430,7 +430,7 @@ public override async Task RequestPreAuthorizedTemporaryExposureKeyHistoryAsync( { throw exception.ToENException(); } - throw exception; + throw; } } @@ -495,7 +495,7 @@ public override async Task RequestPreAuthorizedTemporaryExposureKeyReleaseAsync( { throw exception.ToENException(); } - throw exception; + throw; } finally { diff --git a/Chino.Android/ExposureStateBroadcastReceiver.cs b/Chino.Android/ExposureStateBroadcastReceiver.cs index 83c3fc8..d9aca5b 100644 --- a/Chino.Android/ExposureStateBroadcastReceiver.cs +++ b/Chino.Android/ExposureStateBroadcastReceiver.cs @@ -195,7 +195,7 @@ public override bool OnStartJob(JobParameters @params) else { handler.ExceptionOccurred(exception); - throw exception; + throw; } } finally @@ -307,7 +307,7 @@ public override bool OnStartJob(JobParameters @params) else { handler.ExceptionOccurred(exception); - throw exception; + throw; } } finally diff --git a/Chino.iOS/ExposureNotificationClient.cs b/Chino.iOS/ExposureNotificationClient.cs index d283f89..930694a 100644 --- a/Chino.iOS/ExposureNotificationClient.cs +++ b/Chino.iOS/ExposureNotificationClient.cs @@ -66,7 +66,7 @@ public async Task ActivateAsync() { throw exception.ToENException(); } - throw exception; + throw; } finally { @@ -108,7 +108,7 @@ public async override Task StartAsync() { throw exception.ToENException(); } - throw exception; + throw; } } @@ -126,7 +126,7 @@ public async override Task StopAsync() { throw exception.ToENException(); } - throw exception; + throw; } } @@ -144,7 +144,7 @@ public async override Task IsEnabledAsync() { throw exception.ToENException(); } - throw exception; + throw; } } @@ -171,7 +171,7 @@ public async override Task> GetStatusesAsync() { throw exception.ToENException(); } - throw exception; + throw; } } @@ -198,7 +198,7 @@ public async override Task> GetTemporaryExposureKeyHi { throw exception.ToENException(); } - throw exception; + throw; } } @@ -358,7 +358,7 @@ out NSProgress result else { Handler.ExceptionOccurred(exception); - throw exception; + throw; } } finally @@ -452,7 +452,7 @@ public override async Task RequestPreAuthorizedTemporaryExposureKeyHistoryAsync( { throw exception.ToENException(); } - throw exception; + throw; } } @@ -476,7 +476,7 @@ public override async Task RequestPreAuthorizedTemporaryExposureKeyReleaseAsync( { throw exception.ToENException(); } - throw exception; + throw; } } }