Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Move Java helper methods out of extern class #855

Merged
merged 3 commits into from
Oct 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adjust Python as well
robin-aws committed Oct 11, 2024
commit 991cbfc5ea04f243eb5bfbce9470b176208304d0
Original file line number Diff line number Diff line change
@@ -27,8 +27,7 @@ def Digest(input: HMacInput):
output = hmac.GetResult()
return Wrappers.Result_Success(_dafny.Seq(output))

# Extend generated class
class HMac(aws_cryptography_primitives.internaldafny.generated.HMAC.HMac):
class HMac:

@staticmethod
def Build(digest):

Unchanged files with check annotations Beta

byte[] utf8Bytes = utf8.GetBytes(str.Elements);
return Result<ibyteseq, icharseq>.create_Success(byteseq.FromArray(utf8Bytes));
}
catch (EncoderFallbackException e)

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (StandardLibrary, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsDynamodb, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (StandardLibrary, 6.0.x, macos-12)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsKms, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographyPrimitives, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsKms, 6.0.x, macos-12)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographyPrimitives, 6.0.x, macos-12)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsDynamodb, 6.0.x, macos-12)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (StandardLibrary, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (StandardLibrary, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographyPrimitives, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographyPrimitives, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsDynamodb, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsDynamodb, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / generateEncryptVectors (TestVectorsAwsCryptographicMaterialProviders, ubuntu-latest, net, 6.0.x)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsKms, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsKms, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (TestVectorsAwsCryptographicMaterialProviders, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (TestVectorsAwsCryptographicMaterialProviders, 6.0.x, macos-12)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / generateEncryptVectors (TestVectorsAwsCryptographicMaterialProviders, macos-12, net, 6.0.x)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (TestVectorsAwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (TestVectorsAwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, macos-12)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / testInteroperablity (TestVectorsAwsCryptographicMaterialProviders, ubuntu-latest, net, net, 6.0.x)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / testInteroperablity (TestVectorsAwsCryptographicMaterialProviders, ubuntu-latest, python, net, 6....

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / testInteroperablity (TestVectorsAwsCryptographicMaterialProviders, ubuntu-latest, java, net, 6.0.x)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / testInteroperablity (TestVectorsAwsCryptographicMaterialProviders, macos-12, net, net, 6.0.x)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / testInteroperablity (TestVectorsAwsCryptographicMaterialProviders, macos-12, python, net, 6.0.x)

The variable 'e' is declared but never used

Check warning on line 25 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / testInteroperablity (TestVectorsAwsCryptographicMaterialProviders, macos-12, java, net, 6.0.x)

The variable 'e' is declared but never used
{
return Result<ibyteseq, icharseq>
.create_Failure(Dafny.Sequence<char>.FromString("Input contains invalid Unicode characters"));
}
catch (ArgumentNullException e)

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (StandardLibrary, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsDynamodb, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (StandardLibrary, 6.0.x, macos-12)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsKms, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographyPrimitives, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsKms, 6.0.x, macos-12)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographyPrimitives, 6.0.x, macos-12)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsDynamodb, 6.0.x, macos-12)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (StandardLibrary, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (StandardLibrary, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographyPrimitives, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographyPrimitives, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsDynamodb, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsDynamodb, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / generateEncryptVectors (TestVectorsAwsCryptographicMaterialProviders, ubuntu-latest, net, 6.0.x)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsKms, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsKms, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (TestVectorsAwsCryptographicMaterialProviders, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (TestVectorsAwsCryptographicMaterialProviders, 6.0.x, macos-12)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / generateEncryptVectors (TestVectorsAwsCryptographicMaterialProviders, macos-12, net, 6.0.x)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (TestVectorsAwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (TestVectorsAwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, macos-12)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / testInteroperablity (TestVectorsAwsCryptographicMaterialProviders, ubuntu-latest, net, net, 6.0.x)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / testInteroperablity (TestVectorsAwsCryptographicMaterialProviders, ubuntu-latest, python, net, 6....

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / testInteroperablity (TestVectorsAwsCryptographicMaterialProviders, ubuntu-latest, java, net, 6.0.x)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / testInteroperablity (TestVectorsAwsCryptographicMaterialProviders, macos-12, net, net, 6.0.x)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / testInteroperablity (TestVectorsAwsCryptographicMaterialProviders, macos-12, python, net, 6.0.x)

The variable 'e' is declared but never used

Check warning on line 30 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / testInteroperablity (TestVectorsAwsCryptographicMaterialProviders, macos-12, java, net, 6.0.x)

The variable 'e' is declared but never used
{
return Result<ibyteseq, icharseq>
.create_Failure(Dafny.Sequence<char>.FromString("Input is null"));
string decoded = utf8.GetString(bytes.Elements);
return Result<icharseq, icharseq>.create_Success(charseq.FromString(decoded));
}
catch (ArgumentException e)

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (StandardLibrary, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsDynamodb, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (StandardLibrary, 6.0.x, macos-12)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsKms, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographyPrimitives, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsKms, 6.0.x, macos-12)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographyPrimitives, 6.0.x, macos-12)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsDynamodb, 6.0.x, macos-12)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (StandardLibrary, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (StandardLibrary, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographyPrimitives, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographyPrimitives, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsDynamodb, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsDynamodb, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / generateEncryptVectors (TestVectorsAwsCryptographicMaterialProviders, ubuntu-latest, net, 6.0.x)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsKms, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (ComAmazonawsKms, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (TestVectorsAwsCryptographicMaterialProviders, 6.0.x, ubuntu-latest)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (TestVectorsAwsCryptographicMaterialProviders, 6.0.x, macos-12)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / generateEncryptVectors (TestVectorsAwsCryptographicMaterialProviders, macos-12, net, 6.0.x)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (TestVectorsAwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (TestVectorsAwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, macos-12)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / testInteroperablity (TestVectorsAwsCryptographicMaterialProviders, ubuntu-latest, net, net, 6.0.x)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / testInteroperablity (TestVectorsAwsCryptographicMaterialProviders, ubuntu-latest, python, net, 6....

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / testInteroperablity (TestVectorsAwsCryptographicMaterialProviders, ubuntu-latest, java, net, 6.0.x)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / testInteroperablity (TestVectorsAwsCryptographicMaterialProviders, macos-12, net, net, 6.0.x)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / testInteroperablity (TestVectorsAwsCryptographicMaterialProviders, macos-12, python, net, 6.0.x)

The variable 'e' is declared but never used

Check warning on line 45 in StandardLibrary/runtimes/net/Extern/UTF8.cs

GitHub Actions / pr-interop-test / testInteroperablity (TestVectorsAwsCryptographicMaterialProviders, macos-12, java, net, 6.0.x)

The variable 'e' is declared but never used
{
// GetString is defined as returning ArgumentException, ArgumentNullException, DecoderFallbackException
// Both ArgumentNullException and DecoderFallbackException are children of ArgumentException
}
}
private static void WorkForThread(object? state)

Check warning on line 58 in AwsCryptographicMaterialProviders/runtimes/net/tests/LocalCMC.Tests/LocalCMCTests.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 58 in AwsCryptographicMaterialProviders/runtimes/net/tests/LocalCMC.Tests/LocalCMCTests.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 58 in AwsCryptographicMaterialProviders/runtimes/net/tests/LocalCMC.Tests/LocalCMCTests.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 58 in AwsCryptographicMaterialProviders/runtimes/net/tests/LocalCMC.Tests/LocalCMCTests.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
Console.WriteLine("TestLotsOfAdd");
Random random = ThreadSafeRandom.getSecureRandom();
// ONLY USED FOR TESTING
public partial class ThreadSafeRandom
{
[ThreadStatic] private static SecureRandom? _local;

Check warning on line 98 in AwsCryptographicMaterialProviders/runtimes/net/tests/LocalCMC.Tests/LocalCMCTests.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 98 in AwsCryptographicMaterialProviders/runtimes/net/tests/LocalCMC.Tests/LocalCMCTests.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 98 in AwsCryptographicMaterialProviders/runtimes/net/tests/LocalCMC.Tests/LocalCMCTests.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 98 in AwsCryptographicMaterialProviders/runtimes/net/tests/LocalCMC.Tests/LocalCMCTests.cs

GitHub Actions / pr-ci-net / testDotNet (AwsCryptographicMaterialProviders, 6.0.x, windows-latest)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
private static SecureRandom Instance
{