diff options
Diffstat (limited to 'qpid/dotnet/Qpid.Common')
-rw-r--r-- | qpid/dotnet/Qpid.Common/Collections/LinkedHashtable.cs | 14 | ||||
-rw-r--r-- | qpid/dotnet/Qpid.Common/Collections/SynchronousQueue.cs | 6 | ||||
-rw-r--r-- | qpid/dotnet/Qpid.Common/Framing/AMQDataBlockDecoder.cs | 4 |
3 files changed, 13 insertions, 11 deletions
diff --git a/qpid/dotnet/Qpid.Common/Collections/LinkedHashtable.cs b/qpid/dotnet/Qpid.Common/Collections/LinkedHashtable.cs index 55364f1aa1..c08d4a9197 100644 --- a/qpid/dotnet/Qpid.Common/Collections/LinkedHashtable.cs +++ b/qpid/dotnet/Qpid.Common/Collections/LinkedHashtable.cs @@ -191,13 +191,13 @@ namespace Qpid.Collections } } - private LinkedDictionaryEntry Tail - { - get - { - return _tail; - } - } +// private LinkedDictionaryEntry Tail +// { +// get +// { +// return _tail; +// } +// } private class LHTEnumerator : IDictionaryEnumerator { diff --git a/qpid/dotnet/Qpid.Common/Collections/SynchronousQueue.cs b/qpid/dotnet/Qpid.Common/Collections/SynchronousQueue.cs index a678a6c5fc..c559a37b44 100644 --- a/qpid/dotnet/Qpid.Common/Collections/SynchronousQueue.cs +++ b/qpid/dotnet/Qpid.Common/Collections/SynchronousQueue.cs @@ -28,17 +28,17 @@ namespace Qpid.Collections /// <summary> /// Lock protecting both wait queues /// </summary> - private readonly object _qlock = new object(); +// private readonly object _qlock = new object(); /// <summary> /// Queue holding waiting puts /// </summary> - private readonly WaitQueue _waitingProducers; +// private readonly WaitQueue _waitingProducers; /// <summary> /// Queue holding waiting takes /// </summary> - private readonly WaitQueue _waitingConsumers; +// private readonly WaitQueue _waitingConsumers; /** * Queue to hold waiting puts/takes; specialized to Fifo/Lifo below. diff --git a/qpid/dotnet/Qpid.Common/Framing/AMQDataBlockDecoder.cs b/qpid/dotnet/Qpid.Common/Framing/AMQDataBlockDecoder.cs index 30be63013a..2e373402b6 100644 --- a/qpid/dotnet/Qpid.Common/Framing/AMQDataBlockDecoder.cs +++ b/qpid/dotnet/Qpid.Common/Framing/AMQDataBlockDecoder.cs @@ -130,7 +130,9 @@ namespace Qpid.Framing frame.PopulateFromBuffer(input, channel, bodySize, bodyFactory); byte marker = input.get(); - //assert marker == 0xCE; + if (marker != 0xCE) { + throw new FormatException("marker is not 0xCE"); + } return frame; } |