You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2010/07/02 21:04:50 UTC
svn commit: r960088 [7/9] - in
/activemq/activemq-cpp/trunk/activemq-cpp/src/main: activemq/cmsutil/
activemq/commands/ activemq/core/ activemq/io/ activemq/transport/failover/
activemq/transport/mock/ activemq/wireformat/stomp/ decaf/internal/io/
deca...
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/IntBuffer.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/IntBuffer.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/IntBuffer.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/IntBuffer.h Fri Jul 2 19:04:44 2010
@@ -61,8 +61,7 @@ namespace nio{
*
* @throws IllegalArguementException if capacity is negative.
*/
- IntBuffer( int capacity )
- throw( decaf::lang::exceptions::IllegalArgumentException );
+ IntBuffer( int capacity );
public:
@@ -87,9 +86,7 @@ namespace nio{
* @throws ReadOnlyBufferException if this Buffer is read only.
* @throws UnsupportedOperationException if the underlying store has no array.
*/
- virtual int* array()
- throw( decaf::lang::exceptions::UnsupportedOperationException,
- ReadOnlyBufferException ) = 0;
+ virtual int* array() = 0;
/**
* Returns the offset within this buffer's backing array of the first element of
@@ -103,9 +100,7 @@ namespace nio{
* @throws ReadOnlyBufferException if this Buffer is read only.
* @throws UnsupportedOperationException if the underlying store has no array.
*/
- virtual int arrayOffset()
- throw( decaf::lang::exceptions::UnsupportedOperationException,
- ReadOnlyBufferException ) = 0;
+ virtual int arrayOffset() = 0;
/**
* Creates a new, read-only int buffer that shares this buffer's content.
@@ -144,7 +139,7 @@ namespace nio{
*
* @throws ReadOnlyBufferException if this buffer is read-only.
*/
- virtual IntBuffer& compact() throw( ReadOnlyBufferException ) = 0;
+ virtual IntBuffer& compact() = 0;
/**
* Creates a new int buffer that shares this buffer's content.
@@ -169,7 +164,7 @@ namespace nio{
*
* @throws BufferUnderflowException if there no more data to return.
*/
- virtual int get() throw ( BufferUnderflowException ) = 0;
+ virtual int get() = 0;
/**
* Absolute get method. Reads the value at the given index.
@@ -182,8 +177,7 @@ namespace nio{
* @throws IndexOutOfBoundsException if index is not smaller than the
* buffer's limit, or index is negative.
*/
- virtual int get( int index ) const
- throw ( decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+ virtual int get( int index ) const = 0;
/**
* Relative bulk get method.
@@ -199,8 +193,7 @@ namespace nio{
* @throws BufferUnderflowException if there are fewer than length ints
* remaining in this buffer.
*/
- IntBuffer& get( std::vector<int> buffer )
- throw ( BufferUnderflowException );
+ IntBuffer& get( std::vector<int> buffer );
/**
* Relative bulk get method.
@@ -231,10 +224,7 @@ namespace nio{
* @throws IndexOutOfBoundsException if the preconditions of size, offset, or length
* are not met.
*/
- IntBuffer& get( int* buffer, int size, int offset, int length )
- throw( BufferUnderflowException,
- decaf::lang::exceptions::IndexOutOfBoundsException,
- decaf::lang::exceptions::NullPointerException );
+ IntBuffer& get( int* buffer, int size, int offset, int length );
/**
* Tells whether or not this buffer is backed by an accessible int array.
@@ -267,9 +257,7 @@ namespace nio{
* @throws IllegalArgumentException if the source buffer is this buffer.
* @throws ReadOnlyBufferException if this buffer is read-only.
*/
- IntBuffer& put( IntBuffer& src )
- throw( BufferOverflowException, ReadOnlyBufferException,
- decaf::lang::exceptions::IllegalArgumentException );
+ IntBuffer& put( IntBuffer& src );
/**
* This method transfers ints into this buffer from the given source array.
@@ -298,10 +286,7 @@ namespace nio{
* @throws IndexOutOfBoundsException if the preconditions of size, offset, or length
* are not met.
*/
- IntBuffer& put( const int* buffer, int size, int offset, int length )
- throw( BufferOverflowException, ReadOnlyBufferException,
- decaf::lang::exceptions::IndexOutOfBoundsException,
- decaf::lang::exceptions::NullPointerException );
+ IntBuffer& put( const int* buffer, int size, int offset, int length );
/**
* This method transfers the entire content of the given source ints array into
@@ -315,8 +300,7 @@ namespace nio{
* @throws BufferOverflowException if there is insufficient space in this buffer.
* @throws ReadOnlyBufferException if this buffer is read-only.
*/
- IntBuffer& put( std::vector<int>& buffer )
- throw( BufferOverflowException, ReadOnlyBufferException );
+ IntBuffer& put( std::vector<int>& buffer );
/**
* Writes the given integer into this buffer at the current position, and then
@@ -331,8 +315,7 @@ namespace nio{
* smaller than its limit.
* @throws ReadOnlyBufferException if this buffer is read-only.
*/
- virtual IntBuffer& put( int value )
- throw( BufferOverflowException, ReadOnlyBufferException ) = 0;
+ virtual IntBuffer& put( int value ) = 0;
/**
* Writes the given ints into this buffer at the given index.
@@ -348,9 +331,7 @@ namespace nio{
* minus the size of the type being written, or the index is negative.
* @throws ReadOnlyBufferException - If this buffer is read-only.
*/
- virtual IntBuffer& put( int index, int value )
- throw( decaf::lang::exceptions::IndexOutOfBoundsException,
- ReadOnlyBufferException ) = 0;
+ virtual IntBuffer& put( int index, int value ) = 0;
/**
* Creates a new IntBuffer whose content is a shared subsequence of this
@@ -403,8 +384,7 @@ namespace nio{
*
* @returns the IntBuffer that was allocated, caller owns.
*/
- static IntBuffer* allocate( int capacity )
- throw( decaf::lang::exceptions::IllegalArgumentException );
+ static IntBuffer* allocate( int capacity );
/**
* Wraps the passed buffer with a new IntBuffer.
@@ -430,9 +410,7 @@ namespace nio{
* @throws IndexOutOfBoundsException if the preconditions of size, offset, or length
* are not met.
*/
- static IntBuffer* wrap( int* array, int size, int offset, int length )
- throw( decaf::lang::exceptions::NullPointerException,
- decaf::lang::exceptions::IndexOutOfBoundsException );
+ static IntBuffer* wrap( int* array, int size, int offset, int length );
/**
* Wraps the passed STL int Vector in a IntBuffer.
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/LongBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/LongBuffer.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/LongBuffer.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/LongBuffer.cpp Fri Jul 2 19:04:44 2010
@@ -29,14 +29,12 @@ using namespace decaf::lang::exceptions;
using namespace decaf::internal::nio;
////////////////////////////////////////////////////////////////////////////////
-LongBuffer::LongBuffer( int capacity )
- throw( decaf::lang::exceptions::IllegalArgumentException ) : Buffer( capacity ) {
+LongBuffer::LongBuffer( int capacity ) : Buffer( capacity ) {
}
////////////////////////////////////////////////////////////////////////////////
-LongBuffer* LongBuffer::allocate( int capacity )
- throw( decaf::lang::exceptions::IllegalArgumentException ) {
+LongBuffer* LongBuffer::allocate( int capacity ) {
try{
return BufferFactory::createLongBuffer( capacity );
@@ -46,9 +44,7 @@ LongBuffer* LongBuffer::allocate( int ca
}
////////////////////////////////////////////////////////////////////////////////
-LongBuffer* LongBuffer::wrap( long long* buffer, int size, int offset, int length )
- throw( decaf::lang::exceptions::IndexOutOfBoundsException,
- decaf::lang::exceptions::NullPointerException ) {
+LongBuffer* LongBuffer::wrap( long long* buffer, int size, int offset, int length ) {
try{
@@ -97,8 +93,7 @@ std::string LongBuffer::toString() const
}
////////////////////////////////////////////////////////////////////////////////
-LongBuffer& LongBuffer::get( std::vector<long long> buffer )
- throw ( BufferUnderflowException ) {
+LongBuffer& LongBuffer::get( std::vector<long long> buffer ) {
try{
@@ -113,10 +108,7 @@ LongBuffer& LongBuffer::get( std::vector
}
////////////////////////////////////////////////////////////////////////////////
-LongBuffer& LongBuffer::get( long long* buffer, int size, int offset, int length )
- throw( BufferUnderflowException,
- decaf::lang::exceptions::IndexOutOfBoundsException,
- decaf::lang::exceptions::NullPointerException ) {
+LongBuffer& LongBuffer::get( long long* buffer, int size, int offset, int length ) {
try{
@@ -155,9 +147,7 @@ LongBuffer& LongBuffer::get( long long*
}
////////////////////////////////////////////////////////////////////////////////
-LongBuffer& LongBuffer::put( LongBuffer& src )
- throw( BufferOverflowException, ReadOnlyBufferException,
- lang::exceptions::IllegalArgumentException ) {
+LongBuffer& LongBuffer::put( LongBuffer& src ) {
try{
@@ -193,10 +183,7 @@ LongBuffer& LongBuffer::put( LongBuffer&
}
////////////////////////////////////////////////////////////////////////////////
-LongBuffer& LongBuffer::put( const long long* buffer, int size, int offset, int length )
- throw( BufferOverflowException, ReadOnlyBufferException,
- decaf::lang::exceptions::IndexOutOfBoundsException,
- decaf::lang::exceptions::NullPointerException ) {
+LongBuffer& LongBuffer::put( const long long* buffer, int size, int offset, int length ) {
try{
@@ -243,8 +230,7 @@ LongBuffer& LongBuffer::put( const long
}
////////////////////////////////////////////////////////////////////////////////
-LongBuffer& LongBuffer::put( std::vector<long long>& buffer )
- throw( BufferOverflowException, ReadOnlyBufferException ) {
+LongBuffer& LongBuffer::put( std::vector<long long>& buffer ) {
try{
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/LongBuffer.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/LongBuffer.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/LongBuffer.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/LongBuffer.h Fri Jul 2 19:04:44 2010
@@ -61,8 +61,7 @@ namespace nio{
*
* @throws IllegalArguementException if capacity is negative.
*/
- LongBuffer( int capacity )
- throw( decaf::lang::exceptions::IllegalArgumentException );
+ LongBuffer( int capacity );
public:
@@ -87,9 +86,7 @@ namespace nio{
* @throws ReadOnlyBufferException if this Buffer is read only.
* @throws UnsupportedOperationException if the underlying store has no array.
*/
- virtual long long* array()
- throw( decaf::lang::exceptions::UnsupportedOperationException,
- ReadOnlyBufferException ) = 0;
+ virtual long long* array() = 0;
/**
* Returns the offset within this buffer's backing array of the first element of
@@ -103,9 +100,7 @@ namespace nio{
* @throws ReadOnlyBufferException if this Buffer is read only.
* @throws UnsupportedOperationException if the underlying store has no array.
*/
- virtual int arrayOffset()
- throw( decaf::lang::exceptions::UnsupportedOperationException,
- ReadOnlyBufferException ) = 0;
+ virtual int arrayOffset() = 0;
/**
* Creates a new, read-only long long buffer that shares this buffer's content.
@@ -144,7 +139,7 @@ namespace nio{
*
* @throws ReadOnlyBufferException if this buffer is read-only.
*/
- virtual LongBuffer& compact() throw( ReadOnlyBufferException ) = 0;
+ virtual LongBuffer& compact() = 0;
/**
* Creates a new long long buffer that shares this buffer's content.
@@ -169,7 +164,7 @@ namespace nio{
*
* @throws BufferUnderflowException if there no more data to return.
*/
- virtual long long get() throw ( BufferUnderflowException ) = 0;
+ virtual long long get() = 0;
/**
* Absolute get method. Reads the value at the given index.
@@ -182,8 +177,7 @@ namespace nio{
* @throws IndexOutOfBoundsException if index is not smaller than the
* buffer's limit, or index is negative.
*/
- virtual long long get( int index ) const
- throw ( decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+ virtual long long get( int index ) const = 0;
/**
* Relative bulk get method.
@@ -199,8 +193,7 @@ namespace nio{
* @throws BufferUnderflowException if there are fewer than length long longs
* remaining in this buffer.
*/
- LongBuffer& get( std::vector<long long> buffer )
- throw ( BufferUnderflowException );
+ LongBuffer& get( std::vector<long long> buffer );
/**
* Relative bulk get method.
@@ -231,10 +224,7 @@ namespace nio{
* @throws IndexOutOfBoundsException if the preconditions of size, offset, or length
* are not met.
*/
- LongBuffer& get( long long* buffer, int size, int offset, int length )
- throw( BufferUnderflowException,
- decaf::lang::exceptions::IndexOutOfBoundsException,
- decaf::lang::exceptions::NullPointerException );
+ LongBuffer& get( long long* buffer, int size, int offset, int length );
/**
* Tells whether or not this buffer is backed by an accessible long long array.
@@ -267,9 +257,7 @@ namespace nio{
* @throws IllegalArgumentException if the source buffer is this buffer
* @throws ReadOnlyBufferException if this buffer is read-only
*/
- LongBuffer& put( LongBuffer& src )
- throw( BufferOverflowException, ReadOnlyBufferException,
- lang::exceptions::IllegalArgumentException );
+ LongBuffer& put( LongBuffer& src );
/**
* This method transfers long longs long longo this buffer from the given source array.
@@ -298,10 +286,7 @@ namespace nio{
* @throws IndexOutOfBoundsException if the preconditions of size, offset, or length
* are not met.
*/
- LongBuffer& put( const long long* buffer, int size, int offset, int length )
- throw( BufferOverflowException, ReadOnlyBufferException,
- decaf::lang::exceptions::IndexOutOfBoundsException,
- decaf::lang::exceptions::NullPointerException );
+ LongBuffer& put( const long long* buffer, int size, int offset, int length );
/**
* This method transfers the entire content of the given source long longs array long longo
@@ -315,8 +300,7 @@ namespace nio{
* @throws BufferOverflowException if there is insufficient space in this buffer.
* @throws ReadOnlyBufferException if this buffer is read-only.
*/
- LongBuffer& put( std::vector<long long>& buffer )
- throw( BufferOverflowException, ReadOnlyBufferException );
+ LongBuffer& put( std::vector<long long>& buffer );
/**
* Writes the given long longs long longo this buffer at the current position, and then
@@ -331,8 +315,7 @@ namespace nio{
* smaller than its limit
* @throws ReadOnlyBufferException if this buffer is read-only
*/
- virtual LongBuffer& put( long long value )
- throw( BufferOverflowException, ReadOnlyBufferException ) = 0;
+ virtual LongBuffer& put( long long value ) = 0;
/**
* Writes the given long longs long longo this buffer at the given index.
@@ -348,9 +331,7 @@ namespace nio{
* minus the size of the type being written.
* @throws ReadOnlyBufferException if this buffer is read-only
*/
- virtual LongBuffer& put( int index, long long value )
- throw( decaf::lang::exceptions::IndexOutOfBoundsException,
- ReadOnlyBufferException ) = 0;
+ virtual LongBuffer& put( int index, long long value ) = 0;
/**
* Creates a new LongBuffer whose content is a shared subsequence of this
@@ -403,8 +384,7 @@ namespace nio{
*
* @returns the LongBuffer that was allocated, caller owns.
*/
- static LongBuffer* allocate( int capacity )
- throw( decaf::lang::exceptions::IllegalArgumentException );
+ static LongBuffer* allocate( int capacity );
/**
* Wraps the passed buffer with a new LongBuffer.
@@ -430,9 +410,7 @@ namespace nio{
* @throws IndexOutOfBoundsException if the preconditions of size, offset, or length
* are not met.
*/
- static LongBuffer* wrap( long long* array, int size, int offset, int length )
- throw( decaf::lang::exceptions::NullPointerException,
- decaf::lang::exceptions::IndexOutOfBoundsException );
+ static LongBuffer* wrap( long long* array, int size, int offset, int length );
/**
* Wraps the passed STL long long Vector in a LongBuffer.
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ShortBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ShortBuffer.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ShortBuffer.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ShortBuffer.cpp Fri Jul 2 19:04:44 2010
@@ -29,14 +29,12 @@ using namespace decaf::lang::exceptions;
using namespace decaf::internal::nio;
////////////////////////////////////////////////////////////////////////////////
-ShortBuffer::ShortBuffer( int capacity )
- throw( decaf::lang::exceptions::IllegalArgumentException ) : Buffer( capacity ) {
+ShortBuffer::ShortBuffer( int capacity ) : Buffer( capacity ) {
}
////////////////////////////////////////////////////////////////////////////////
-ShortBuffer* ShortBuffer::allocate( int capacity )
- throw( decaf::lang::exceptions::IllegalArgumentException ) {
+ShortBuffer* ShortBuffer::allocate( int capacity ) {
try{
return BufferFactory::createShortBuffer( capacity );
@@ -46,9 +44,7 @@ ShortBuffer* ShortBuffer::allocate( int
}
////////////////////////////////////////////////////////////////////////////////
-ShortBuffer* ShortBuffer::wrap( short* buffer, int size, int offset, int length )
- throw( decaf::lang::exceptions::IndexOutOfBoundsException,
- decaf::lang::exceptions::NullPointerException ) {
+ShortBuffer* ShortBuffer::wrap( short* buffer, int size, int offset, int length ) {
try{
@@ -97,8 +93,7 @@ std::string ShortBuffer::toString() cons
}
////////////////////////////////////////////////////////////////////////////////
-ShortBuffer& ShortBuffer::get( std::vector<short> buffer )
- throw ( BufferUnderflowException ) {
+ShortBuffer& ShortBuffer::get( std::vector<short> buffer ) {
try{
@@ -113,10 +108,7 @@ ShortBuffer& ShortBuffer::get( std::vect
}
////////////////////////////////////////////////////////////////////////////////
-ShortBuffer& ShortBuffer::get( short* buffer, int size, int offset, int length )
- throw( BufferUnderflowException,
- decaf::lang::exceptions::IndexOutOfBoundsException,
- decaf::lang::exceptions::NullPointerException ) {
+ShortBuffer& ShortBuffer::get( short* buffer, int size, int offset, int length ) {
try{
@@ -155,9 +147,7 @@ ShortBuffer& ShortBuffer::get( short* bu
}
////////////////////////////////////////////////////////////////////////////////
-ShortBuffer& ShortBuffer::put( ShortBuffer& src )
- throw( BufferOverflowException, ReadOnlyBufferException,
- lang::exceptions::IllegalArgumentException ) {
+ShortBuffer& ShortBuffer::put( ShortBuffer& src ) {
try{
@@ -193,10 +183,7 @@ ShortBuffer& ShortBuffer::put( ShortBuff
}
////////////////////////////////////////////////////////////////////////////////
-ShortBuffer& ShortBuffer::put( const short* buffer, int size, int offset, int length )
- throw( BufferOverflowException, ReadOnlyBufferException,
- decaf::lang::exceptions::IndexOutOfBoundsException,
- decaf::lang::exceptions::NullPointerException ) {
+ShortBuffer& ShortBuffer::put( const short* buffer, int size, int offset, int length ) {
try{
@@ -243,8 +230,7 @@ ShortBuffer& ShortBuffer::put( const sho
}
////////////////////////////////////////////////////////////////////////////////
-ShortBuffer& ShortBuffer::put( std::vector<short>& buffer )
- throw( BufferOverflowException, ReadOnlyBufferException ) {
+ShortBuffer& ShortBuffer::put( std::vector<short>& buffer ) {
try{
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ShortBuffer.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ShortBuffer.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ShortBuffer.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ShortBuffer.h Fri Jul 2 19:04:44 2010
@@ -61,8 +61,7 @@ namespace nio{
*
* @throws IllegalArguementException if capacity is negative.
*/
- ShortBuffer( int capacity )
- throw( decaf::lang::exceptions::IllegalArgumentException );
+ ShortBuffer( int capacity );
public:
@@ -87,9 +86,7 @@ namespace nio{
* @throws ReadOnlyBufferException if this Buffer is read only.
* @throws UnsupportedOperationException if the underlying store has no array.
*/
- virtual short* array()
- throw( decaf::lang::exceptions::UnsupportedOperationException,
- ReadOnlyBufferException ) = 0;
+ virtual short* array() = 0;
/**
* Returns the offset within this buffer's backing array of the first element of
@@ -103,9 +100,7 @@ namespace nio{
* @throws ReadOnlyBufferException if this Buffer is read only.
* @throws UnsupportedOperationException if the underlying store has no array.
*/
- virtual int arrayOffset()
- throw( decaf::lang::exceptions::UnsupportedOperationException,
- ReadOnlyBufferException ) = 0;
+ virtual int arrayOffset() = 0;
/**
* Creates a new, read-only short buffer that shares this buffer's content.
@@ -144,7 +139,7 @@ namespace nio{
*
* @throws ReadOnlyBufferException if this buffer is read-only.
*/
- virtual ShortBuffer& compact() throw( ReadOnlyBufferException ) = 0;
+ virtual ShortBuffer& compact() = 0;
/**
* Creates a new short buffer that shares this buffer's content.
@@ -169,7 +164,7 @@ namespace nio{
*
* @throws BufferUnderflowException if there no more data to return.
*/
- virtual short get() throw ( BufferUnderflowException ) = 0;
+ virtual short get() = 0;
/**
* Absolute get method. Reads the value at the given index.
@@ -182,8 +177,7 @@ namespace nio{
* @throws IndexOutOfBoundsException if index is not smaller than the
* buffer's limit, or the index is negative.
*/
- virtual short get( int index ) const
- throw ( decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+ virtual short get( int index ) const = 0;
/**
* Relative bulk get method.
@@ -199,8 +193,7 @@ namespace nio{
* @throws BufferUnderflowException if there are fewer than length shorts
* remaining in this buffer.
*/
- ShortBuffer& get( std::vector<short> buffer )
- throw ( BufferUnderflowException );
+ ShortBuffer& get( std::vector<short> buffer );
/**
* Relative bulk get method.
@@ -231,10 +224,7 @@ namespace nio{
* @throws IndexOutOfBoundsException if the preconditions of size, offset, or length
* are not met.
*/
- ShortBuffer& get( short* buffer, int size, int offset, int length )
- throw( BufferUnderflowException,
- decaf::lang::exceptions::IndexOutOfBoundsException,
- decaf::lang::exceptions::NullPointerException );
+ ShortBuffer& get( short* buffer, int size, int offset, int length );
/**
* Tells whether or not this buffer is backed by an accessible short array.
@@ -267,9 +257,7 @@ namespace nio{
* @throws IllegalArgumentException if the source buffer is this buffer.
* @throws ReadOnlyBufferException if this buffer is read-only.
*/
- ShortBuffer& put( ShortBuffer& src )
- throw( BufferOverflowException, ReadOnlyBufferException,
- decaf::lang::exceptions::IllegalArgumentException );
+ ShortBuffer& put( ShortBuffer& src );
/**
* This method transfers shorts into this buffer from the given source array.
@@ -298,10 +286,7 @@ namespace nio{
* @throws IndexOutOfBoundsException if the preconditions of size, offset, or length
* are not met.
*/
- ShortBuffer& put( const short* buffer, int size, int offset, int length )
- throw( BufferOverflowException, ReadOnlyBufferException,
- decaf::lang::exceptions::IndexOutOfBoundsException,
- decaf::lang::exceptions::NullPointerException );
+ ShortBuffer& put( const short* buffer, int size, int offset, int length );
/**
* This method transfers the entire content of the given source shorts array into
@@ -315,8 +300,7 @@ namespace nio{
* @throws BufferOverflowException if there is insufficient space in this buffer.
* @throws ReadOnlyBufferException if this buffer is read-only.
*/
- ShortBuffer& put( std::vector<short>& buffer )
- throw( BufferOverflowException, ReadOnlyBufferException );
+ ShortBuffer& put( std::vector<short>& buffer );
/**
* Writes the given shorts into this buffer at the current position, and then
@@ -331,8 +315,7 @@ namespace nio{
* smaller than its limit.
* @throws ReadOnlyBufferException if this buffer is read-only.
*/
- virtual ShortBuffer& put( short value )
- throw( BufferOverflowException, ReadOnlyBufferException ) = 0;
+ virtual ShortBuffer& put( short value ) = 0;
/**
* Writes the given shorts into this buffer at the given index.
@@ -348,9 +331,7 @@ namespace nio{
* minus the size of the type being written.
* @throws ReadOnlyBufferException if this buffer is read-only.
*/
- virtual ShortBuffer& put( int index, short value )
- throw( decaf::lang::exceptions::IndexOutOfBoundsException,
- ReadOnlyBufferException ) = 0;
+ virtual ShortBuffer& put( int index, short value ) = 0;
/**
* Creates a new ShortBuffer whose content is a shared subsequence of this
@@ -403,8 +384,7 @@ namespace nio{
*
* @returns the ShortBuffer that was allocated, caller owns.
*/
- static ShortBuffer* allocate( int capacity )
- throw( decaf::lang::exceptions::IllegalArgumentException );
+ static ShortBuffer* allocate( int capacity );
/**
* Wraps the passed buffer with a new ShortBuffer.
@@ -430,9 +410,7 @@ namespace nio{
* @throws IndexOutOfBoundsException if the preconditions of size, offset, or length
* are not met.
*/
- static ShortBuffer* wrap( short* array, int size, int offset, int length )
- throw( decaf::lang::exceptions::NullPointerException,
- decaf::lang::exceptions::IndexOutOfBoundsException );
+ static ShortBuffer* wrap( short* array, int size, int offset, int length );
/**
* Wraps the passed STL short Vector in a ShortBuffer.
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/security/cert/Certificate.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/security/cert/Certificate.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/security/cert/Certificate.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/security/cert/Certificate.h Fri Jul 2 19:04:44 2010
@@ -58,8 +58,7 @@ namespace cert {
* Receives the encoded form of this certificate.
* @throws CertificateEncodingException if an encoding error occurs
*/
- virtual void getEncoded( std::vector<unsigned char>& output ) const
- throw ( CertificateEncodingException ) = 0;
+ virtual void getEncoded( std::vector<unsigned char>& output ) const = 0;
/**
* Returns the type of this certificate
@@ -94,12 +93,7 @@ namespace cert {
* @throws SignatureException - on signature errors.
* @throws CertificateException - on encoding errors.
*/
- virtual void verify( const PublicKey& publicKey ) const
- throw( NoSuchAlgorithmException,
- InvalidKeyException,
- NoSuchProviderException,
- SignatureException,
- CertificateException) = 0;
+ virtual void verify( const PublicKey& publicKey ) const = 0;
/**
* Verifies that this certificate was signed with the private key
@@ -117,12 +111,7 @@ namespace cert {
* @throws CertificateException - on encoding errors.
*/
virtual void verify( const PublicKey& publicKey,
- const std::string& sigProvider ) const
- throw( NoSuchAlgorithmException,
- InvalidKeyException,
- NoSuchProviderException,
- SignatureException,
- CertificateException) = 0;
+ const std::string& sigProvider ) const = 0;
/**
* Returns a string representation of this certificate.
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/security/cert/X509Certificate.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/security/cert/X509Certificate.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/security/cert/X509Certificate.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/security/cert/X509Certificate.h Fri Jul 2 19:04:44 2010
@@ -36,11 +36,9 @@ namespace cert {
virtual ~X509Certificate() {}
- virtual void checkValidity() const
- throw(CertificateExpiredException, CertificateNotYetValidException) = 0;
+ virtual void checkValidity() const = 0;
- virtual void checkValidity(const decaf::util::Date& date) const
- throw(CertificateExpiredException, CertificateNotYetValidException) = 0;
+ virtual void checkValidity(const decaf::util::Date& date) const = 0;
virtual int getBasicConstraints() const = 0;
@@ -68,8 +66,7 @@ namespace cert {
virtual const X500Principal* getSubjectX500Principal() const = 0;
- virtual void getTBSCertificate( std::vector<unsigned char>& output ) const
- throw( CertificateEncodingException ) = 0;
+ virtual void getTBSCertificate( std::vector<unsigned char>& output ) const = 0;
virtual int getVersion() const = 0;
};
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/AbstractCollection.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/AbstractCollection.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/AbstractCollection.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/AbstractCollection.h Fri Jul 2 19:04:44 2010
@@ -111,10 +111,7 @@ namespace util {
* @throw IllegalStateException
* if the element cannot be added at this time due to insertion restrictions
*/
- virtual bool add( const E& value DECAF_UNUSED )
- throw ( lang::exceptions::UnsupportedOperationException,
- lang::exceptions::IllegalArgumentException,
- lang::exceptions::IllegalStateException ) {
+ virtual bool add( const E& value DECAF_UNUSED ) {
throw decaf::lang::exceptions::UnsupportedOperationException(
__FILE__, __LINE__, "AbstractCollection add is not implemented.");
@@ -144,10 +141,7 @@ namespace util {
* @throw IllegalStateException
* if the element cannot be added at this time due to insertion restrictions
*/
- virtual bool addAll( const Collection<E>& collection )
- throw ( lang::exceptions::UnsupportedOperationException,
- lang::exceptions::IllegalArgumentException,
- lang::exceptions::IllegalStateException ) {
+ virtual bool addAll( const Collection<E>& collection ) {
bool result = false;
std::auto_ptr< Iterator<E> > iter( collection.iterator() );
@@ -173,8 +167,7 @@ namespace util {
* @throw UnsupportedOperationException
* if the clear operation is not supported by this collection
*/
- virtual void clear()
- throw ( lang::exceptions::UnsupportedOperationException ) {
+ virtual void clear() {
std::auto_ptr< Iterator<E> > iter( this->iterator() );
while( iter->hasNext() ) {
@@ -212,7 +205,7 @@ namespace util {
*
* @throw Exception if an error occurs,
*/
- virtual bool contains( const E& value ) const throw ( lang::Exception ) {
+ virtual bool contains( const E& value ) const {
bool result = false;
std::auto_ptr< Iterator<E> > iter( this->iterator() );
@@ -241,8 +234,7 @@ namespace util {
*
* @throw Exception if an error occurs,
*/
- virtual bool containsAll( const Collection<E>& collection ) const
- throw ( lang::Exception ) {
+ virtual bool containsAll( const Collection<E>& collection ) const {
bool result = false;
std::auto_ptr< Iterator<E> > iter( collection.iterator() );
@@ -310,9 +302,7 @@ namespace util {
* @throw IllegalArgumentException
* If the value is not a valid entry for this Collection.
*/
- virtual bool remove( const E& value )
- throw ( lang::exceptions::UnsupportedOperationException,
- lang::exceptions::IllegalArgumentException ) {
+ virtual bool remove( const E& value ) {
std::auto_ptr< Iterator<E> > iter( this->iterator() );
while( iter->hasNext() ) {
@@ -346,9 +336,7 @@ namespace util {
* if the remove operation is not supported by this collection
* @throw IllegalArgumentException.
*/
- virtual bool removeAll( const Collection<E>& collection )
- throw ( lang::exceptions::UnsupportedOperationException,
- lang::exceptions::IllegalArgumentException ) {
+ virtual bool removeAll( const Collection<E>& collection ) {
bool result = false;
std::auto_ptr< Iterator<E> > iter( this->iterator() );
@@ -383,9 +371,7 @@ namespace util {
* if the remove operation is not supported by this collection
* @throw IllegalArgumentException.
*/
- virtual bool retainAll( const Collection<E>& collection )
- throw ( lang::exceptions::UnsupportedOperationException,
- lang::exceptions::IllegalArgumentException ) {
+ virtual bool retainAll( const Collection<E>& collection ) {
bool result = false;
std::auto_ptr< Iterator<E> > iter( this->iterator() );
@@ -421,51 +407,35 @@ namespace util {
public:
- virtual void lock() throw( decaf::lang::exceptions::RuntimeException ) {
+ virtual void lock() {
mutex.lock();
}
- virtual bool tryLock() throw( decaf::lang::exceptions::RuntimeException ) {
+ virtual bool tryLock() {
return mutex.tryLock();
}
- virtual void unlock() throw( decaf::lang::exceptions::RuntimeException ) {
+ virtual void unlock() {
mutex.unlock();
}
- virtual void wait() throw( decaf::lang::exceptions::RuntimeException,
- decaf::lang::exceptions::IllegalMonitorStateException,
- decaf::lang::exceptions::InterruptedException ) {
-
+ virtual void wait() {
mutex.wait();
}
- virtual void wait( long long millisecs )
- throw( decaf::lang::exceptions::RuntimeException,
- decaf::lang::exceptions::IllegalMonitorStateException,
- decaf::lang::exceptions::InterruptedException ) {
-
+ virtual void wait( long long millisecs ) {
mutex.wait( millisecs );
}
- virtual void wait( long long millisecs, int nanos )
- throw( decaf::lang::exceptions::RuntimeException,
- decaf::lang::exceptions::IllegalArgumentException,
- decaf::lang::exceptions::IllegalMonitorStateException,
- decaf::lang::exceptions::InterruptedException ) {
-
+ virtual void wait( long long millisecs, int nanos ) {
mutex.wait( millisecs, nanos );
}
- virtual void notify() throw( decaf::lang::exceptions::RuntimeException,
- decaf::lang::exceptions::IllegalMonitorStateException ) {
-
+ virtual void notify() {
mutex.notify();
}
- virtual void notifyAll() throw( decaf::lang::exceptions::RuntimeException,
- decaf::lang::exceptions::IllegalMonitorStateException ) {
-
+ virtual void notifyAll() {
mutex.notifyAll();
}
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/AbstractQueue.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/AbstractQueue.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/AbstractQueue.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/AbstractQueue.h Fri Jul 2 19:04:44 2010
@@ -65,10 +65,7 @@ namespace util {
*
* @throw IllegalArgumentException if the element cannot be added.
*/
- virtual bool add( const E& value )
- throw ( decaf::lang::exceptions::UnsupportedOperationException,
- decaf::lang::exceptions::IllegalArgumentException,
- decaf::lang::exceptions::IllegalStateException ) {
+ virtual bool add( const E& value ) {
if( offer( value ) ) {
return true;
@@ -94,10 +91,7 @@ namespace util {
* @throws IllegalArgumentException If the collection to be added to the
* queue is the queue itself.
*/
- virtual bool addAll( const Collection<E>& collection )
- throw ( lang::exceptions::UnsupportedOperationException,
- lang::exceptions::IllegalArgumentException,
- lang::exceptions::IllegalStateException ) {
+ virtual bool addAll( const Collection<E>& collection ) {
if( this == &collection ) {
throw decaf::lang::exceptions::IllegalArgumentException(
@@ -117,7 +111,7 @@ namespace util {
*
* @throws NoSuchElementException if the queue is empty.
*/
- virtual E remove() throw ( decaf::lang::exceptions::NoSuchElementException ) {
+ virtual E remove() {
E result;
if( this->poll( result ) == true ) {
@@ -137,8 +131,7 @@ namespace util {
* @return the element in the head of the queue.
* @throws NoSuchElementException if the queue is empty.
*/
- virtual E element() const
- throw( decaf::lang::exceptions::NoSuchElementException ) {
+ virtual E element() const {
E result;
if( this->peek( result ) == true ) {
@@ -154,7 +147,7 @@ namespace util {
*
* This implementation repeatedly invokes poll until it returns the empty marker.
*/
- virtual void clear() throw ( lang::exceptions::UnsupportedOperationException ) {
+ virtual void clear() {
if( this->isEmpty() ) {
return;
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/AbstractSet.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/AbstractSet.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/AbstractSet.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/AbstractSet.h Fri Jul 2 19:04:44 2010
@@ -72,9 +72,7 @@ namespace util {
* @throw UnsupportedOperationException
* @throw IllegalArgumentException
*/
- virtual bool removeAll( const Collection<E>& collection )
- throw ( lang::exceptions::UnsupportedOperationException,
- lang::exceptions::IllegalArgumentException ) {
+ virtual bool removeAll( const Collection<E>& collection ) {
bool result = false;
if( this->size() <= collection.size() ) {
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Collection.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Collection.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Collection.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Collection.h Fri Jul 2 19:04:44 2010
@@ -66,7 +66,7 @@ namespace util{
*/
template< typename E >
class Collection : public lang::Iterable<E>,
- public util::concurrent::Synchronizable {
+ public util::concurrent::Synchronizable {
public:
virtual ~Collection() {}
@@ -101,10 +101,7 @@ namespace util{
* @throw IllegalStateException
* if the element cannot be added at this time due to insertion restrictions
*/
- virtual bool add( const E& value )
- throw ( lang::exceptions::UnsupportedOperationException,
- lang::exceptions::IllegalArgumentException,
- lang::exceptions::IllegalStateException ) = 0;
+ virtual bool add( const E& value ) = 0;
/**
* Adds all of the elements in the specified collection to this
@@ -120,10 +117,7 @@ namespace util{
* @throw IllegalStateException
* if the element cannot be added at this time due to insertion restrictions
*/
- virtual bool addAll( const Collection<E>& collection )
- throw ( lang::exceptions::UnsupportedOperationException,
- lang::exceptions::IllegalArgumentException,
- lang::exceptions::IllegalStateException ) = 0;
+ virtual bool addAll( const Collection<E>& collection ) = 0;
/**
* Removes all of the elements from this collection (optional operation).
@@ -131,8 +125,7 @@ namespace util{
* an exception.
* @throw UnsupportedOperationException
*/
- virtual void clear()
- throw ( lang::exceptions::UnsupportedOperationException ) = 0;
+ virtual void clear() = 0;
/**
* Returns true if this collection contains the specified element. More
@@ -142,7 +135,7 @@ namespace util{
* @returns true if there is at least one of the elements in the collection
* @throw Exception
*/
- virtual bool contains( const E& value ) const throw ( lang::Exception ) = 0;
+ virtual bool contains( const E& value ) const = 0;
/**
* Returns true if this collection contains all of the elements in
@@ -150,8 +143,7 @@ namespace util{
* @param collection - Collection to compare to this one.
* @throw Exception
*/
- virtual bool containsAll( const Collection<E>& collection ) const
- throw ( lang::Exception ) = 0;
+ virtual bool containsAll( const Collection<E>& collection ) const = 0;
/**
* Compares the passed collection to this one, if they contain the
@@ -178,9 +170,7 @@ namespace util{
* @throw UnsupportedOperationException
* @throw IllegalArgumentException
*/
- virtual bool remove( const E& value )
- throw ( lang::exceptions::UnsupportedOperationException,
- lang::exceptions::IllegalArgumentException ) = 0;
+ virtual bool remove( const E& value ) = 0;
/**
* Removes all this collection's elements that are also contained in
@@ -192,9 +182,7 @@ namespace util{
* @throw UnsupportedOperationException
* @throw IllegalArgumentException
*/
- virtual bool removeAll( const Collection<E>& collection )
- throw ( lang::exceptions::UnsupportedOperationException,
- lang::exceptions::IllegalArgumentException ) = 0;
+ virtual bool removeAll( const Collection<E>& collection ) = 0;
/**
* Retains only the elements in this collection that are contained in the
@@ -206,9 +194,7 @@ namespace util{
* @throw UnsupportedOperationException
* @throw IllegalArgumentException
*/
- virtual bool retainAll( const Collection<E>& collection )
- throw ( lang::exceptions::UnsupportedOperationException,
- lang::exceptions::IllegalArgumentException ) = 0;
+ virtual bool retainAll( const Collection<E>& collection ) = 0;
/**
* Returns the number of elements in this collection. If this collection
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Iterator.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Iterator.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Iterator.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Iterator.h Fri Jul 2 19:04:44 2010
@@ -43,7 +43,7 @@ namespace util{
* @returns next element in the iteration of elements
* @throws NoSuchElementException - iteration has no more elements.
*/
- virtual T next() throw( lang::exceptions::NoSuchElementException ) = 0;
+ virtual T next() = 0;
/**
* Returns true if the iteration has more elements. Returns false if
@@ -65,8 +65,7 @@ namespace util{
* called, or the remove method has already been called after
* the last call to the next method.
*/
- virtual void remove() throw ( lang::exceptions::IllegalStateException,
- lang::exceptions::UnsupportedOperationException ) = 0;
+ virtual void remove() = 0;
};
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/List.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/List.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/List.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/List.h Fri Jul 2 19:04:44 2010
@@ -69,10 +69,8 @@ namespace util{
* @throws IndexOutOfBoundsException if the index is out of range
* (index < 0 || index > size())
*/
- virtual ListIterator<E>* listIterator( std::size_t index )
- throw( decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
- virtual ListIterator<E>* listIterator( std::size_t index ) const
- throw( decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+ virtual ListIterator<E>* listIterator( std::size_t index ) = 0;
+ virtual ListIterator<E>* listIterator( std::size_t index ) const = 0;
/**
* Returns the index of the first occurrence of the specified element in
@@ -85,8 +83,7 @@ namespace util{
* this list,
* @throw NoSuchElementException if value is not in the list
*/
- virtual std::size_t indexOf( const E& value )
- throw ( decaf::lang::exceptions::NoSuchElementException ) = 0;
+ virtual std::size_t indexOf( const E& value ) = 0;
/**
* Returns the index of the last occurrence of the specified element in
@@ -99,16 +96,14 @@ namespace util{
* this list.
* @throw NoSuchElementException if value is not in the list
*/
- virtual size_t lastIndexOf( const E& value )
- throw ( decaf::lang::exceptions::NoSuchElementException ) = 0;
+ virtual size_t lastIndexOf( const E& value ) = 0;
/**
* Gets the element contained at position passed
* @param index - position to get
* @return value at index
*/
- virtual E get( std::size_t index ) const
- throw ( decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+ virtual E get( std::size_t index ) const = 0;
/**
* Replaces the element at the specified position in this list with the
@@ -119,8 +114,7 @@ namespace util{
* @return the element previously at the specified position
* @throw IndexOutOfBoundsException - if the index is greater than size
*/
- virtual E set( std::size_t index, const E& element )
- throw ( decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+ virtual E set( std::size_t index, const E& element ) = 0;
/**
* Inserts the specified element at the specified position in this list.
@@ -133,9 +127,7 @@ namespace util{
* @throw IndexOutOfBoundsException - if the index is greater than size
* @throw UnsupportedOperationException - If the collection is non-modifiable.
*/
- virtual void add( std::size_t index, const E& element )
- throw ( decaf::lang::exceptions::UnsupportedOperationException,
- decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+ virtual void add( std::size_t index, const E& element ) = 0;
/**
* Inserts all of the elements in the specified collection into this list at
@@ -157,9 +149,7 @@ namespace util{
* @throw IndexOutOfBoundsException - if the index is greater than size
* @throw UnsupportedOperationException - If the collection is non-modifiable.
*/
- virtual bool addAll( std::size_t index, const Collection<E>& source )
- throw ( decaf::lang::exceptions::UnsupportedOperationException,
- decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+ virtual bool addAll( std::size_t index, const Collection<E>& source ) = 0;
/**
* Removes the element at the specified position in this list.
@@ -171,9 +161,7 @@ namespace util{
* @throw IndexOutOfBoundsException - if the index is greater than size
* @throw UnsupportedOperationException - If the collection is non-modifiable.
*/
- virtual E remove( std::size_t index )
- throw ( decaf::lang::exceptions::UnsupportedOperationException,
- decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+ virtual E remove( std::size_t index ) = 0;
};
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/ListIterator.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/ListIterator.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/ListIterator.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/ListIterator.h Fri Jul 2 19:04:44 2010
@@ -57,9 +57,7 @@ namespace util{
* @throw IllegalArgumentException - if some aspect of this element
* prevents it from being added to this list.
*/
- virtual void add( const E& e )
- throw ( decaf::lang::exceptions::UnsupportedOperationException,
- decaf::lang::exceptions::IllegalArgumentException ) = 0;
+ virtual void add( const E& e ) = 0;
/**
* Replaces the last element returned by next or previous with the
@@ -77,10 +75,7 @@ namespace util{
* called, or remove or add have been called after the last call to next
* or previous.
*/
- virtual void set( const E& e )
- throw ( decaf::lang::exceptions::UnsupportedOperationException,
- decaf::lang::exceptions::IllegalArgumentException,
- decaf::lang::exceptions::IllegalStateException ) = 0;
+ virtual void set( const E& e ) = 0;
/**
* Returns true if this list iterator has more elements when traversing the
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Map.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Map.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Map.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Map.h Fri Jul 2 19:04:44 2010
@@ -84,7 +84,7 @@ namespace util{
* Removes all keys and values from this map.
* @throw UnsupportedOperationException if this map is unmodifiable.
*/
- virtual void clear() throw( decaf::lang::exceptions::UnsupportedOperationException ) = 0;
+ virtual void clear() = 0;
/**
* Indicates whether or this map contains a value for the
@@ -123,8 +123,7 @@ namespace util{
*
* @throws NoSuchElementException if the key requests doesn't exist in the Map.
*/
- virtual V& get( const K& key )
- throw( lang::exceptions::NoSuchElementException ) = 0;
+ virtual V& get( const K& key ) = 0;
/**
* Gets the value mapped to the specified key in the Map. If there is no
@@ -136,8 +135,7 @@ namespace util{
*
* @throws NoSuchElementException if the key requests doesn't exist in the Map.
*/
- virtual const V& get( const K& key ) const
- throw( lang::exceptions::NoSuchElementException ) = 0;
+ virtual const V& get( const K& key ) const = 0;
/**
* Sets the value for the specified key.
@@ -146,8 +144,7 @@ namespace util{
*
* @throw UnsupportedOperationException if this map is unmodifiable.
*/
- virtual void put( const K& key, const V& value )
- throw ( decaf::lang::exceptions::UnsupportedOperationException ) = 0;
+ virtual void put( const K& key, const V& value ) = 0;
/**
* Stores a copy of the Mappings contained in the other Map in this one.
@@ -158,8 +155,7 @@ namespace util{
* @throws UnsupportedOperationException
* If the implementing class does not support the putAll operation.
*/
- virtual void putAll( const Map<K,V,COMPARATOR>& other )
- throw ( decaf::lang::exceptions::UnsupportedOperationException ) = 0;
+ virtual void putAll( const Map<K,V,COMPARATOR>& other ) = 0;
/**
* Removes the value (key/value pair) for the specified key from
@@ -171,9 +167,7 @@ namespace util{
* @throw NoSuchElementException if this key is not in the Map.
* @throw UnsupportedOperationException if this map is unmodifiable.
*/
- virtual V remove( const K& key )
- throw ( decaf::lang::exceptions::NoSuchElementException,
- decaf::lang::exceptions::UnsupportedOperationException ) = 0;
+ virtual V remove( const K& key ) = 0;
/**
* Returns a Set view of the mappings contained in this map. The set is backed by the
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/PriorityQueue.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/PriorityQueue.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/PriorityQueue.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/PriorityQueue.h Fri Jul 2 19:04:44 2010
@@ -90,7 +90,7 @@ namespace util {
PriorityQueueIterator( PriorityQueue* queue ) : position( 0 ), allowRemove( false ), queue( queue ) {}
- virtual E next() throw( lang::exceptions::NoSuchElementException ) {
+ virtual E next() {
if( !hasNext() ) {
throw lang::exceptions::NoSuchElementException(
@@ -106,8 +106,7 @@ namespace util {
return position < queue->_size;
}
- virtual void remove() throw ( lang::exceptions::IllegalStateException,
- lang::exceptions::UnsupportedOperationException ) {
+ virtual void remove() {
if( !allowRemove ) {
throw lang::exceptions::IllegalStateException(
@@ -126,8 +125,7 @@ namespace util {
ConstPriorityQueueIterator( const PriorityQueue* queue ) :
PriorityQueueIterator( const_cast<PriorityQueue*>( queue ) ) {}
- virtual void remove() throw ( lang::exceptions::IllegalStateException,
- lang::exceptions::UnsupportedOperationException ) {
+ virtual void remove() {
throw lang::exceptions::UnsupportedOperationException(
__FILE__, __LINE__,
@@ -242,8 +240,7 @@ namespace util {
return this->_size;
}
- virtual void clear()
- throw ( lang::exceptions::UnsupportedOperationException ) {
+ virtual void clear() {
// TODO - Provide a more efficient way to clear the array without reallocating it
// we should keep the size it grew to since if reused it could get that big
@@ -256,9 +253,7 @@ namespace util {
this->_size = 0;
}
- virtual bool offer( const E& value )
- throw( decaf::lang::exceptions::NullPointerException,
- decaf::lang::exceptions::IllegalArgumentException ) {
+ virtual bool offer( const E& value ) {
// TODO - Check for Null and throw exception
@@ -289,7 +284,7 @@ namespace util {
return true;
}
- virtual E remove() throw ( decaf::lang::exceptions::NoSuchElementException ) {
+ virtual E remove() {
if( !Queue<E>::isEmpty() ) {
E result = elements[0];
@@ -301,9 +296,7 @@ namespace util {
__FILE__, __LINE__, "Unable to remove specified element from the Queue." );
}
- virtual bool remove( const E& value )
- throw ( lang::exceptions::UnsupportedOperationException,
- lang::exceptions::IllegalArgumentException ) {
+ virtual bool remove( const E& value ) {
std::size_t targetIndex = 0;
for( targetIndex = 0; targetIndex < _size; targetIndex++ ) {
@@ -320,10 +313,7 @@ namespace util {
return true;
}
- virtual bool add( const E& value )
- throw ( lang::exceptions::UnsupportedOperationException,
- lang::exceptions::IllegalArgumentException,
- lang::exceptions::IllegalStateException ) {
+ virtual bool add( const E& value ) {
try {
return offer( value );
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Queue.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Queue.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Queue.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Queue.h Fri Jul 2 19:04:44 2010
@@ -73,9 +73,7 @@ namespace util{
* @throws IllegalArgumentException if some property of the specified
* element prevents it from being added to this queue
*/
- virtual bool offer( const E& value )
- throw( decaf::lang::exceptions::NullPointerException,
- decaf::lang::exceptions::IllegalArgumentException ) = 0;
+ virtual bool offer( const E& value ) = 0;
/**
* Gets and removes the element in the head of the queue. If the operation succeeds the
@@ -100,7 +98,7 @@ namespace util{
* @throws NoSuchElementException
* if there is no element in the queue.
*/
- virtual E remove() throw ( decaf::lang::exceptions::NoSuchElementException ) = 0;
+ virtual E remove() = 0;
/**
* Gets but not removes the element in the head of the queue. The result if successful is
@@ -123,8 +121,7 @@ namespace util{
* @throws NoSuchElementException
* if there is no element in the queue.
*/
- virtual E element() const
- throw( decaf::lang::exceptions::NoSuchElementException ) = 0;
+ virtual E element() const = 0;
};
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/StlList.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/StlList.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/StlList.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/StlList.h Fri Jul 2 19:04:44 2010
@@ -69,7 +69,7 @@ namespace util{
virtual ~StlListIterator() {}
- virtual E next() throw( lang::exceptions::NoSuchElementException ){
+ virtual E next() {
if( this->current == list->end() ) {
throw lang::exceptions::NoSuchElementException(
__FILE__, __LINE__,
@@ -84,8 +84,7 @@ namespace util{
return ( this->current != list->end() );
}
- virtual void remove() throw ( lang::exceptions::IllegalStateException,
- lang::exceptions::UnsupportedOperationException ){
+ virtual void remove() {
if( this->prev == list->end() ) {
throw lang::exceptions::IllegalStateException(
__FILE__, __LINE__,
@@ -96,20 +95,15 @@ namespace util{
this->prev = this->list->end();
}
- virtual void add( const E& e DECAF_UNUSED )
- throw ( decaf::lang::exceptions::UnsupportedOperationException,
- decaf::lang::exceptions::IllegalArgumentException ) {
+ virtual void add( const E& e DECAF_UNUSED ) {
throw lang::exceptions::UnsupportedOperationException(
__FILE__, __LINE__,
"List::ListIterator::add - Not Implemented Yet." );
}
- virtual void set( const E& e )
- throw ( decaf::lang::exceptions::UnsupportedOperationException,
- decaf::lang::exceptions::IllegalArgumentException,
- decaf::lang::exceptions::IllegalStateException )
- {
+ virtual void set( const E& e ) {
+
if( this->current == list->end() ) {
throw lang::exceptions::IllegalStateException(
__FILE__, __LINE__,
@@ -175,7 +169,7 @@ namespace util{
virtual ~ConstStlListIterator() {}
- virtual E next() throw( lang::exceptions::NoSuchElementException ){
+ virtual E next() {
if( this->current == list->end() ) {
throw lang::exceptions::NoSuchElementException(
__FILE__, __LINE__,
@@ -190,28 +184,22 @@ namespace util{
return ( this->current != list->end() );
}
- virtual void remove() throw ( lang::exceptions::IllegalStateException,
- lang::exceptions::UnsupportedOperationException ){
+ virtual void remove() {
throw lang::exceptions::UnsupportedOperationException(
__FILE__, __LINE__,
"List::ListIterator::remove - Const Iterator." );
}
- virtual void add( const E& e DECAF_UNUSED )
- throw ( decaf::lang::exceptions::UnsupportedOperationException,
- decaf::lang::exceptions::IllegalArgumentException ) {
+ virtual void add( const E& e DECAF_UNUSED ) {
throw lang::exceptions::UnsupportedOperationException(
__FILE__, __LINE__,
"List::ListIterator::add - Const Iterator." );
}
- virtual void set( const E& e DECAF_UNUSED )
- throw ( decaf::lang::exceptions::UnsupportedOperationException,
- decaf::lang::exceptions::IllegalArgumentException,
- decaf::lang::exceptions::IllegalStateException )
- {
+ virtual void set( const E& e DECAF_UNUSED ) {
+
throw lang::exceptions::UnsupportedOperationException(
__FILE__, __LINE__,
"List::ListIterator::set - Const Iterator." );
@@ -306,8 +294,7 @@ namespace util{
/**
* {@inheritDoc}
*/
- virtual ListIterator<E>* listIterator( std::size_t index )
- throw( decaf::lang::exceptions::IndexOutOfBoundsException ) {
+ virtual ListIterator<E>* listIterator( std::size_t index ) {
if( index >= this->size() ) {
throw decaf::lang::exceptions::IndexOutOfBoundsException(
@@ -317,8 +304,7 @@ namespace util{
return new StlListIterator( &values, index );
}
- virtual ListIterator<E>* listIterator( std::size_t index ) const
- throw( decaf::lang::exceptions::IndexOutOfBoundsException ) {
+ virtual ListIterator<E>* listIterator( std::size_t index ) const {
if( index >= this->size() ) {
throw decaf::lang::exceptions::IndexOutOfBoundsException(
@@ -340,14 +326,14 @@ namespace util{
/**
* {@inheritDoc}
*/
- virtual void clear() throw ( lang::exceptions::UnsupportedOperationException ) {
+ virtual void clear() {
values.clear();
}
/**
* {@inheritDoc}
*/
- virtual bool contains( const E& value ) const throw ( lang::Exception ) {
+ virtual bool contains( const E& value ) const {
typename std::list<E>::const_iterator iter;
iter = std::find( values.begin(), values.end(), value );
return iter != values.end();
@@ -356,8 +342,7 @@ namespace util{
/**
* {@inheritDoc}
*/
- virtual std::size_t indexOf( const E& value )
- throw ( decaf::lang::exceptions::NoSuchElementException ) {
+ virtual std::size_t indexOf( const E& value ) {
typename std::list<E>::iterator iter;
iter = std::find( values.begin(), values.end(), value );
@@ -374,8 +359,7 @@ namespace util{
/**
* {@inheritDoc}
*/
- virtual std::size_t lastIndexOf( const E& value )
- throw ( decaf::lang::exceptions::NoSuchElementException ) {
+ virtual std::size_t lastIndexOf( const E& value ) {
typename std::list<E>::reverse_iterator iter;
iter = std::find( values.rbegin(), values.rend(), value );
@@ -407,8 +391,7 @@ namespace util{
/**
* {@inheritDoc}
*/
- virtual E get( std::size_t index ) const
- throw ( decaf::lang::exceptions::IndexOutOfBoundsException ) {
+ virtual E get( std::size_t index ) const {
if( index >= this->size() ) {
throw decaf::lang::exceptions::IndexOutOfBoundsException(
@@ -425,8 +408,7 @@ namespace util{
/**
* {@inheritDoc}
*/
- virtual E set( std::size_t index, const E& element )
- throw ( decaf::lang::exceptions::IndexOutOfBoundsException ){
+ virtual E set( std::size_t index, const E& element ) {
if( index >= this->size() ) {
throw decaf::lang::exceptions::IndexOutOfBoundsException(
@@ -447,22 +429,15 @@ namespace util{
/**
* {@inheritDoc}
*/
- virtual bool add( const E& value )
- throw ( lang::exceptions::UnsupportedOperationException,
- lang::exceptions::IllegalArgumentException,
- lang::exceptions::IllegalStateException ) {
-
+ virtual bool add( const E& value ) {
values.insert( values.end(), value );
-
return true;
}
/**
* {@inheritDoc}
*/
- virtual void add( std::size_t index, const E& element )
- throw ( lang::exceptions::UnsupportedOperationException,
- lang::exceptions::IndexOutOfBoundsException ) {
+ virtual void add( std::size_t index, const E& element ) {
if( index > this->size() ) {
throw decaf::lang::exceptions::IndexOutOfBoundsException(
@@ -479,9 +454,7 @@ namespace util{
/**
* {@inheritDoc}
*/
- virtual bool addAll( std::size_t index, const Collection<E>& source )
- throw ( decaf::lang::exceptions::UnsupportedOperationException,
- decaf::lang::exceptions::IndexOutOfBoundsException ) {
+ virtual bool addAll( std::size_t index, const Collection<E>& source ) {
if( index != 0 && index > this->size() ) {
throw decaf::lang::exceptions::IndexOutOfBoundsException(
@@ -500,9 +473,7 @@ namespace util{
/**
* {@inheritDoc}
*/
- virtual bool remove( const E& value )
- throw ( lang::exceptions::UnsupportedOperationException,
- lang::exceptions::IllegalArgumentException ) {
+ virtual bool remove( const E& value ) {
std::size_t origSize = this->size();
this->values.remove( value );
@@ -512,9 +483,7 @@ namespace util{
/**
* {@inheritDoc}
*/
- virtual E remove( std::size_t index )
- throw ( decaf::lang::exceptions::UnsupportedOperationException,
- decaf::lang::exceptions::IndexOutOfBoundsException ) {
+ virtual E remove( std::size_t index ) {
if( index > this->size() ) {
throw decaf::lang::exceptions::IndexOutOfBoundsException(
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/StlMap.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/StlMap.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/StlMap.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/StlMap.h Fri Jul 2 19:04:44 2010
@@ -115,7 +115,7 @@ namespace util{
/**
* {@inheritDoc}
*/
- virtual void clear() throw( decaf::lang::exceptions::UnsupportedOperationException ) {
+ virtual void clear() {
valueMap.clear();
}
@@ -164,8 +164,7 @@ namespace util{
/**
* {@inheritDoc}
*/
- virtual V& get( const K& key )
- throw( lang::exceptions::NoSuchElementException ) {
+ virtual V& get( const K& key ) {
typename std::map<K,V,COMPARATOR>::iterator iter;
iter = valueMap.find( key );
@@ -180,8 +179,7 @@ namespace util{
/**
* {@inheritDoc}
*/
- virtual const V& get( const K& key ) const
- throw( lang::exceptions::NoSuchElementException ) {
+ virtual const V& get( const K& key ) const {
typename std::map<K,V,COMPARATOR>::const_iterator iter;
iter = valueMap.find( key );
@@ -196,26 +194,21 @@ namespace util{
/**
* {@inheritDoc}
*/
- virtual void put( const K& key, const V& value )
- throw ( decaf::lang::exceptions::UnsupportedOperationException ) {
-
+ virtual void put( const K& key, const V& value ) {
valueMap[key] = value;
}
/**
* {@inheritDoc}
*/
- virtual void putAll( const StlMap<K,V,COMPARATOR>& other )
- throw ( decaf::lang::exceptions::UnsupportedOperationException ) {
-
+ virtual void putAll( const StlMap<K,V,COMPARATOR>& other ) {
this->valueMap.insert( other.valueMap.begin(), other.valueMap.end() );
}
/**
* {@inheritDoc}
*/
- virtual void putAll( const Map<K,V,COMPARATOR>& other )
- throw ( decaf::lang::exceptions::UnsupportedOperationException ) {
+ virtual void putAll( const Map<K,V,COMPARATOR>& other ) {
std::vector<K> keys = other.keySet();
@@ -229,9 +222,7 @@ namespace util{
/**
* {@inheritDoc}
*/
- virtual V remove( const K& key )
- throw ( decaf::lang::exceptions::NoSuchElementException,
- decaf::lang::exceptions::UnsupportedOperationException ) {
+ virtual V remove( const K& key ) {
typename std::map<K,V,COMPARATOR>::iterator iter = valueMap.find( key );
if( iter == valueMap.end() ) {
@@ -276,51 +267,35 @@ namespace util{
public:
- virtual void lock() throw( decaf::lang::exceptions::RuntimeException ) {
+ virtual void lock() {
mutex.lock();
}
- virtual bool tryLock() throw( decaf::lang::exceptions::RuntimeException ) {
+ virtual bool tryLock() {
return mutex.tryLock();
}
- virtual void unlock() throw( decaf::lang::exceptions::RuntimeException ) {
+ virtual void unlock() {
mutex.unlock();
}
- virtual void wait() throw( decaf::lang::exceptions::RuntimeException,
- decaf::lang::exceptions::IllegalMonitorStateException,
- decaf::lang::exceptions::InterruptedException ) {
-
+ virtual void wait() {
mutex.wait();
}
- virtual void wait( long long millisecs )
- throw( decaf::lang::exceptions::RuntimeException,
- decaf::lang::exceptions::IllegalMonitorStateException,
- decaf::lang::exceptions::InterruptedException ) {
-
+ virtual void wait( long long millisecs ) {
mutex.wait( millisecs );
}
- virtual void wait( long long millisecs, int nanos )
- throw( decaf::lang::exceptions::RuntimeException,
- decaf::lang::exceptions::IllegalArgumentException,
- decaf::lang::exceptions::IllegalMonitorStateException,
- decaf::lang::exceptions::InterruptedException ) {
-
+ virtual void wait( long long millisecs, int nanos ) {
mutex.wait( millisecs, nanos );
}
- virtual void notify() throw( decaf::lang::exceptions::RuntimeException,
- decaf::lang::exceptions::IllegalMonitorStateException ) {
-
+ virtual void notify() {
mutex.notify();
}
- virtual void notifyAll() throw( decaf::lang::exceptions::RuntimeException,
- decaf::lang::exceptions::IllegalMonitorStateException ) {
-
+ virtual void notifyAll() {
mutex.notifyAll();
}
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/StlQueue.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/StlQueue.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/StlQueue.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/StlQueue.h Fri Jul 2 19:04:44 2010
@@ -83,7 +83,7 @@ namespace util{
virtual ~QueueIterator() {}
- virtual T next() throw( lang::exceptions::NoSuchElementException ){
+ virtual T next() {
if( this->current == queue->end() ) {
throw lang::exceptions::NoSuchElementException(
__FILE__, __LINE__,
@@ -98,8 +98,7 @@ namespace util{
return ( this->current != queue->end() );
}
- virtual void remove() throw ( lang::exceptions::IllegalStateException,
- lang::exceptions::UnsupportedOperationException ){
+ virtual void remove() {
if( this->previous == queue->end() ) {
throw lang::exceptions::IllegalStateException(
__FILE__, __LINE__,
@@ -249,51 +248,35 @@ namespace util{
public: // Synchronizable
- virtual void lock() throw( decaf::lang::exceptions::RuntimeException ) {
+ virtual void lock() {
mutex.lock();
}
- virtual bool tryLock() throw( decaf::lang::exceptions::RuntimeException ) {
+ virtual bool tryLock() {
return mutex.tryLock();
}
- virtual void unlock() throw( decaf::lang::exceptions::RuntimeException ) {
+ virtual void unlock() {
mutex.unlock();
}
- virtual void wait() throw( decaf::lang::exceptions::RuntimeException,
- decaf::lang::exceptions::IllegalMonitorStateException,
- decaf::lang::exceptions::InterruptedException ) {
-
+ virtual void wait() {
mutex.wait();
}
- virtual void wait( long long millisecs )
- throw( decaf::lang::exceptions::RuntimeException,
- decaf::lang::exceptions::IllegalMonitorStateException,
- decaf::lang::exceptions::InterruptedException ) {
-
+ virtual void wait( long long millisecs ) {
mutex.wait( millisecs );
}
- virtual void wait( long long millisecs, int nanos )
- throw( decaf::lang::exceptions::RuntimeException,
- decaf::lang::exceptions::IllegalArgumentException,
- decaf::lang::exceptions::IllegalMonitorStateException,
- decaf::lang::exceptions::InterruptedException ) {
-
+ virtual void wait( long long millisecs, int nanos ) {
mutex.wait( millisecs, nanos );
}
- virtual void notify() throw( decaf::lang::exceptions::RuntimeException,
- decaf::lang::exceptions::IllegalMonitorStateException ) {
-
+ virtual void notify() {
mutex.notify();
}
- virtual void notifyAll() throw( decaf::lang::exceptions::RuntimeException,
- decaf::lang::exceptions::IllegalMonitorStateException ) {
-
+ virtual void notifyAll() {
mutex.notifyAll();
}
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/StlSet.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/StlSet.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/StlSet.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/StlSet.h Fri Jul 2 19:04:44 2010
@@ -58,7 +58,7 @@ namespace util{
virtual ~SetIterator() {}
- virtual E next() throw( lang::exceptions::NoSuchElementException ){
+ virtual E next() {
if( this->current == set->end() ) {
throw lang::exceptions::NoSuchElementException(
__FILE__, __LINE__,
@@ -73,8 +73,7 @@ namespace util{
return ( this->current != set->end() );
}
- virtual void remove() throw ( lang::exceptions::IllegalStateException,
- lang::exceptions::UnsupportedOperationException ){
+ virtual void remove() {
if( this->previous == set->end() ) {
throw lang::exceptions::IllegalStateException(
__FILE__, __LINE__,
@@ -101,7 +100,7 @@ namespace util{
virtual ~ConstSetIterator() {}
- virtual E next() throw( lang::exceptions::NoSuchElementException ){
+ virtual E next() {
if( this->current == set->end() ) {
throw lang::exceptions::NoSuchElementException(
__FILE__, __LINE__,
@@ -116,8 +115,7 @@ namespace util{
return ( this->current != set->end() );
}
- virtual void remove() throw ( lang::exceptions::IllegalStateException,
- lang::exceptions::UnsupportedOperationException ){
+ virtual void remove() {
throw lang::exceptions::UnsupportedOperationException(
__FILE__, __LINE__,
"Set::Iterator::remove - Not Valid on a Const Iterator" );
@@ -179,14 +177,14 @@ namespace util{
/**
* {@inheritDoc}
*/
- virtual void clear() throw ( lang::exceptions::UnsupportedOperationException ) {
+ virtual void clear() {
values.clear();
}
/**
* {@inheritDoc}
*/
- virtual bool contains( const E& value ) const throw ( lang::Exception ) {
+ virtual bool contains( const E& value ) const {
typename std::set<E>::const_iterator iter;
iter = values.find( value );
return iter != values.end();
@@ -209,21 +207,14 @@ namespace util{
/**
* {@inheritDoc}
*/
- virtual bool add( const E& value )
- throw ( lang::exceptions::UnsupportedOperationException,
- lang::exceptions::IllegalArgumentException,
- lang::exceptions::IllegalStateException ) {
-
+ virtual bool add( const E& value ) {
return values.insert( value ).second;
}
/**
* {@inheritDoc}
*/
- virtual bool remove( const E& value )
- throw ( lang::exceptions::UnsupportedOperationException,
- lang::exceptions::IllegalArgumentException ) {
-
+ virtual bool remove( const E& value ) {
return values.erase( value ) != 0;
}