activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r991692 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Commands/WireFormatInfo.cs
Date Wed, 01 Sep 2010 20:26:49 GMT
Author: tabish
Date: Wed Sep  1 20:26:49 2010
New Revision: 991692

URL: http://svn.apache.org/viewvc?rev=991692&view=rev
Log:
code cleanup

Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Commands/WireFormatInfo.cs

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Commands/WireFormatInfo.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Commands/WireFormatInfo.cs?rev=991692&r1=991691&r2=991692&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Commands/WireFormatInfo.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Commands/WireFormatInfo.cs
Wed Sep  1 20:26:49 2010
@@ -29,7 +29,7 @@ namespace Apache.NMS.ActiveMQ.Commands
     public class WireFormatInfo : BaseCommand, Command, MarshallAware
     {
         public const byte ID_WIREFORMATINFO = 1;
-        static private byte[] MAGIC = new byte[] {
+        static private readonly byte[] MAGIC = new byte[] {
                         'A'&0xFF,
                         'c'&0xFF,
                         't'&0xFF,
@@ -48,7 +48,7 @@ namespace Apache.NMS.ActiveMQ.Commands
         public override string ToString()
         {
             return GetType().Name + "["
-                    + " Magic=" + ASCIIEncoding.ASCII.GetString(magic)
+                    + " Magic=" + Encoding.ASCII.GetString(magic)
                     + " Version=" + Version
                     + " MarshalledProperties=" + Properties.ToString()
                     + " ]";



Mime
View raw message