From 8fc8593a0d85b8beb66b42d4f8f17eb44141c62c Mon Sep 17 00:00:00 2001 From: Vaso Putica Date: Fri, 20 Sep 2024 05:43:56 -0500 Subject: [PATCH] COH-30785 Cleanup build warnings in .NET client - additional cleanup [git-p4: depot-paths = "//dev/main.net/": change = 111499] --- src/Coherence/Net/ConfigurableAddressProvider.cs | 6 +++--- tests/Coherence.Tests/Net/Ssl/SslTests.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Coherence/Net/ConfigurableAddressProvider.cs b/src/Coherence/Net/ConfigurableAddressProvider.cs index 0df2eeb..5b23836 100644 --- a/src/Coherence/Net/ConfigurableAddressProvider.cs +++ b/src/Coherence/Net/ConfigurableAddressProvider.cs @@ -1,8 +1,8 @@ /* - * Copyright (c) 2000, 2021, Oracle and/or its affiliates. + * Copyright (c) 2000, 2024, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at - * http://oss.oracle.com/licenses/upl. + * https://oss.oracle.com/licenses/upl. */ using System; using System.Collections.Generic; @@ -306,7 +306,7 @@ protected IEnumerator ResolveAddress(string host, int port) } else { - throw e; + throw; } } diff --git a/tests/Coherence.Tests/Net/Ssl/SslTests.cs b/tests/Coherence.Tests/Net/Ssl/SslTests.cs index 22a39c8..45bd449 100644 --- a/tests/Coherence.Tests/Net/Ssl/SslTests.cs +++ b/tests/Coherence.Tests/Net/Ssl/SslTests.cs @@ -1,8 +1,8 @@ /* - * Copyright (c) 2000, 2020, Oracle and/or its affiliates. + * Copyright (c) 2000, 2024, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at - * http://oss.oracle.com/licenses/upl. + * https://oss.oracle.com/licenses/upl. */ using System; using System.IO; @@ -80,7 +80,7 @@ public void TestSslClientAuthenticationException() client.Echo("Hello World"); Assert.Fail("Expected IOException, but got none."); } - catch (IOException e) + catch (IOException) {} finally {