Skip to content

Commit f3a1c7d

Browse files
committed
Fix some sonar warnings.
1 parent ac4a368 commit f3a1c7d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

nanoFramework.Aws.IoTCore.Devices/AwsSignatureVersion4/nfArrayListExtensions.cs renamed to nanoFramework.Aws.IoTCore.Devices/AwsSignatureVersion4/NanoArrayListExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace System.Collections
88
/// <summary>
99
/// Extension methods used for canonicalization.
1010
/// </summary>
11-
public static class nfArrayListExtensions
11+
public static class NanoArrayListExtensions
1212
{
1313
/// <summary>
1414
/// Sort an ArrayList

nanoFramework.Aws.IoTCore.Devices/AwsSignatureVersion4/SignerBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public abstract class SignerBase
4444

4545
// algorithm used to hash the canonical request that is supplied to
4646
// the signature computation
47-
internal static SHA256 CanonicalRequestHashAlgorithm = SHA256.Create();
47+
internal static readonly SHA256 CanonicalRequestHashAlgorithm = SHA256.Create();
4848

4949
/// <summary>
5050
/// The service endpoint, including the path to any resource.

nanoFramework.Aws.IoTCore.Devices/nanoFramework.Aws.IoTCore.Devices.nfproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
</PropertyGroup>
3232
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.props" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.props')" />
3333
<ItemGroup>
34-
<Compile Include="AwsSignatureVersion4\nfArrayListExtensions.cs" />
34+
<Compile Include="AwsSignatureVersion4\NanoArrayListExtensions.cs" />
3535
<Compile Include="AwsSignatureVersion4\HMACSHA256.cs" />
36-
<Compile Include="AwsSignatureVersion4\nfOrdinalComparer.cs" />
37-
<Compile Include="AwsSignatureVersion4\nfStringComparer.cs" />
36+
<Compile Include="AwsSignatureVersion4\NanoOrdinalComparer.cs" />
37+
<Compile Include="AwsSignatureVersion4\NanoStringComparer.cs" />
3838
<Compile Include="AwsSignatureVersion4\SHA256.cs" />
3939
<Compile Include="CloudToDeviceMessage.cs" />
4040
<Compile Include="ConfirmationStatus.cs" />

0 commit comments

Comments
 (0)