Skip to content

Commit 69c634b

Browse files
committed
Fix analysis warnings in file.
1 parent a96d6f5 commit 69c634b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/MySqlConnector/Protocol/Serialization/AuthGSSAPI.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace MySqlConnector.Protocol.Serialization
1313
{
14-
internal class NegotiateStreamConstants
14+
internal static class NegotiateStreamConstants
1515
{
1616
public const int HeaderLength = 5;
1717
public const byte MajorVersion = 1;
@@ -39,11 +39,11 @@ internal class NegotiateToMySqlConverterStream : Stream
3939
bool m_clientHandshakeDone;
4040

4141
MemoryStream m_readBuffer;
42-
MemoryStream m_writeBuffer;
42+
readonly MemoryStream m_writeBuffer;
4343
int m_writePayloadLength;
44-
ServerSession m_serverSession;
45-
IOBehavior m_ioBehavior;
46-
CancellationToken m_cancellationToken;
44+
readonly ServerSession m_serverSession;
45+
readonly IOBehavior m_ioBehavior;
46+
readonly CancellationToken m_cancellationToken;
4747

4848
public PayloadData? MySQLProtocolPayload { get; private set; }
4949
public NegotiateToMySqlConverterStream(ServerSession serverSession, IOBehavior ioBehavior, CancellationToken cancellationToken)
@@ -204,9 +204,9 @@ public override void Flush()
204204
public override long Seek(long offset, SeekOrigin origin) => throw new NotImplementedException();
205205

206206
public override void SetLength(long value) => throw new NotImplementedException();
207-
208207
}
209-
internal class AuthGSSAPI
208+
209+
internal static class AuthGSSAPI
210210
{
211211
private static string GetServicePrincipalName(byte[] switchRequest)
212212
{

0 commit comments

Comments
 (0)