From fdeafa10e2dcfee734d050f2f11ab50a350f69cc Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 16 Mar 2023 12:41:05 +0700 Subject: Fix rethrow syntax - see https://github.com/bcgit/bc-csharp/issues/425 --- crypto/test/src/math/test/PrimesTest.cs | 2 +- crypto/test/src/test/BaseBlockCipherTest.cs | 4 ++-- crypto/test/src/test/PkixPolicyMappingTest.cs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'crypto/test/src') diff --git a/crypto/test/src/math/test/PrimesTest.cs b/crypto/test/src/math/test/PrimesTest.cs index 4456ef2c1..6854e160b 100644 --- a/crypto/test/src/math/test/PrimesTest.cs +++ b/crypto/test/src/math/test/PrimesTest.cs @@ -142,7 +142,7 @@ namespace Org.BouncyCastle.Math.Tests continue; } - throw e; + throw; } } diff --git a/crypto/test/src/test/BaseBlockCipherTest.cs b/crypto/test/src/test/BaseBlockCipherTest.cs index 87fb01056..aca912131 100644 --- a/crypto/test/src/test/BaseBlockCipherTest.cs +++ b/crypto/test/src/test/BaseBlockCipherTest.cs @@ -115,9 +115,9 @@ namespace Org.BouncyCastle.Tests + Hex.ToHexString(cText)); } } - catch (TestFailedException e) + catch (TestFailedException) { - throw e; + throw; } catch (Exception e) { diff --git a/crypto/test/src/test/PkixPolicyMappingTest.cs b/crypto/test/src/test/PkixPolicyMappingTest.cs index 4dbfe0ad5..66e09309c 100644 --- a/crypto/test/src/test/PkixPolicyMappingTest.cs +++ b/crypto/test/src/test/PkixPolicyMappingTest.cs @@ -144,9 +144,9 @@ namespace Org.BouncyCastle.Tests return ""; } - catch (TestFailedException e) + catch (TestFailedException) { - throw e; + throw; } catch (Exception e) { -- cgit 1.5.1