From 05890ce5de379abebd7d6706f4cb75b9aa6d30ff Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 7 Mar 2023 16:58:53 +0700 Subject: Seal some overrides --- crypto/src/asn1/DerSequence.cs | 4 ++-- crypto/src/asn1/DerSet.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crypto/src/asn1/DerSequence.cs b/crypto/src/asn1/DerSequence.cs index 43d1a9167..cd526e871 100644 --- a/crypto/src/asn1/DerSequence.cs +++ b/crypto/src/asn1/DerSequence.cs @@ -66,13 +66,13 @@ namespace Org.BouncyCastle.Asn1 Asn1OutputStream.GetContentsEncodings(Asn1OutputStream.EncodingDer, elements)); } - internal override DerEncoding GetEncodingDer() + internal sealed override DerEncoding GetEncodingDer() { return new ConstructedDerEncoding(Asn1Tags.Universal, Asn1Tags.Sequence, Asn1OutputStream.GetContentsEncodingsDer(elements)); } - internal override DerEncoding GetEncodingDerImplicit(int tagClass, int tagNo) + internal sealed override DerEncoding GetEncodingDerImplicit(int tagClass, int tagNo) { return new ConstructedDerEncoding(tagClass, tagNo, Asn1OutputStream.GetContentsEncodingsDer(elements)); diff --git a/crypto/src/asn1/DerSet.cs b/crypto/src/asn1/DerSet.cs index 99a8dc284..5c7509d11 100644 --- a/crypto/src/asn1/DerSet.cs +++ b/crypto/src/asn1/DerSet.cs @@ -71,12 +71,12 @@ namespace Org.BouncyCastle.Asn1 return new ConstructedDLEncoding(tagClass, tagNo, GetSortedDerEncodings()); } - internal override DerEncoding GetEncodingDer() + internal sealed override DerEncoding GetEncodingDer() { return new ConstructedDerEncoding(Asn1Tags.Universal, Asn1Tags.Set, GetSortedDerEncodings()); } - internal override DerEncoding GetEncodingDerImplicit(int tagClass, int tagNo) + internal sealed override DerEncoding GetEncodingDerImplicit(int tagClass, int tagNo) { return new ConstructedDerEncoding(tagClass, tagNo, GetSortedDerEncodings()); } -- cgit 1.4.1