activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r959402 - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang: Byte.cpp Byte.h Double.cpp Double.h Float.cpp Float.h Integer.cpp Integer.h Long.cpp Long.h Pointer.h Short.cpp Short.h Thread.cpp Thread.h
Date Wed, 30 Jun 2010 18:30:31 GMT
Author: tabish
Date: Wed Jun 30 18:30:30 2010
New Revision: 959402

URL: http://svn.apache.org/viewvc?rev=959402&view=rev
Log:
Remove throw specifier from the classes in the library

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Byte.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Byte.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Double.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Double.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Float.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Float.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Integer.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Integer.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Long.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Long.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Pointer.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Short.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Short.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Thread.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Thread.h

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Byte.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Byte.cpp?rev=959402&r1=959401&r2=959402&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Byte.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Byte.cpp Wed Jun 30 18:30:30
2010
@@ -44,8 +44,7 @@ std::string Byte::toString( unsigned cha
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-unsigned char Byte::parseByte( const std::string& s, int radix )
-    throw ( exceptions::NumberFormatException ) {
+unsigned char Byte::parseByte( const std::string& s, int radix ) {
 
     int intValue = Integer::parseInt( s, radix );
     unsigned char result = (unsigned char)intValue;
@@ -59,15 +58,12 @@ unsigned char Byte::parseByte( const std
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-unsigned char Byte::parseByte( const std::string& s )
-    throw ( exceptions::NumberFormatException ) {
-
+unsigned char Byte::parseByte( const std::string& s ) {
     return parseByte( s, 10 );
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Byte Byte::decode( const std::string& value )
-    throw ( exceptions::NumberFormatException ) {
+Byte Byte::decode( const std::string& value ) {
 
     int intValue = Integer::decode( value ).intValue();
     unsigned char result = (unsigned char)intValue;
@@ -81,15 +77,11 @@ Byte Byte::decode( const std::string& va
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Byte Byte::valueOf( const std::string& value )
-    throw ( exceptions::NumberFormatException ) {
-
+Byte Byte::valueOf( const std::string& value ) {
     return Byte( parseByte( value, 10 ) );
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Byte Byte::valueOf( const std::string& value, int radix )
-    throw ( exceptions::NumberFormatException ) {
-
+Byte Byte::valueOf( const std::string& value, int radix ) {
     return Byte( parseByte( value, radix ) );
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Byte.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Byte.h?rev=959402&r1=959401&r2=959402&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Byte.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Byte.h Wed Jun 30 18:30:30
2010
@@ -211,8 +211,7 @@ namespace lang{
          * @returns a Byte object containing the decoded value
          * @throws NumberFomatException if the string is not formatted correctly.
          */
-        static Byte decode( const std::string& value )
-            throw ( exceptions::NumberFormatException );
+        static Byte decode( const std::string& value );
 
         /**
          * Parses the string argument as a signed unsigned char in the radix specified by
@@ -239,8 +238,7 @@ namespace lang{
          * @throws NumberFormatException - If String does not contain a parsable
          *         unsigned char.
          */
-        static unsigned char parseByte( const std::string& s, int radix )
-            throw ( exceptions::NumberFormatException );
+        static unsigned char parseByte( const std::string& s, int radix );
 
         /**
          * Parses the string argument as a signed decimal unsigned char. The
@@ -253,8 +251,7 @@ namespace lang{
          * @returns the converted unsigned char value
          * @throws NumberFormatException if the string is not a unsigned char.
          */
-        static unsigned char parseByte( const std::string& s )
-            throw ( exceptions::NumberFormatException );
+        static unsigned char parseByte( const std::string& s );
 
         /**
          * Returns a Character instance representing the specified char value.
@@ -275,8 +272,7 @@ namespace lang{
          * @return new Byte Object wrapping the primitive
          * @throws NumberFormatException if the string is not a decimal unsigned char.
          */
-        static Byte valueOf( const std::string& value )
-            throw ( exceptions::NumberFormatException );
+        static Byte valueOf( const std::string& value );
 
         /**
          * Returns a Byte object holding the value extracted from the specified
@@ -291,8 +287,7 @@ namespace lang{
          * @return new Byte Object wrapping the primitive
          * @throws NumberFormatException if the string is not a valid unsigned char.
          */
-        static Byte valueOf( const std::string& value, int radix )
-            throw ( exceptions::NumberFormatException );
+        static Byte valueOf( const std::string& value, int radix );
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Double.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Double.cpp?rev=959402&r1=959401&r2=959402&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Double.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Double.cpp Wed Jun 30 18:30:30
2010
@@ -39,7 +39,7 @@ Double::Double( double value ) {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Double::Double( const std::string& value ) throw( exceptions::NumberFormatException )
{
+Double::Double( const std::string& value ) {
     this->value = Double::parseDouble( value );
 }
 
@@ -257,8 +257,7 @@ Double Double::valueOf( double value ) {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Double Double::valueOf( const std::string& value )
-    throw ( exceptions::NumberFormatException ) {
+Double Double::valueOf( const std::string& value ) {
 
     return valueOf( parseDouble( value ) );
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Double.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Double.h?rev=959402&r1=959401&r2=959402&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Double.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Double.h Wed Jun 30 18:30:30
2010
@@ -57,14 +57,24 @@ namespace lang{
     public:
 
         /**
-         * @param value - the primitve type to wrap
+         * Constructs a new instance of a Double object and assigns it the given value.
+         *
+         * @param value
+         *      The primitive type to wrap.
          */
         Double( double value );
 
         /**
-         * @param value - the string to convert to a primitve type to wrap
+         * Constructs a new Double and attempts to convert the given string to a double
+         * value, assigning it to the new object is successful or throwing a
+         * NumberFormatException if the string is not a properly formatted double.
+         *
+         * @param value
+         *      The string to convert to a primitive type to wrap.
+         *
+         * @throws NumberFormatException if the string is not a a valid double.
          */
-        Double( const std::string& value ) throw( exceptions::NumberFormatException );
+        Double( const std::string& value );
 
         virtual ~Double() {}
 
@@ -110,7 +120,7 @@ namespace lang{
          * @param d - the Double instance to be compared
          * @return zero if this object represents the same integer value as the
          * argument; a positive value if this object represents a value greater
-         * than the passed in value, and -1 if this object repesents a value
+         * than the passed in value, and -1 if this object represents a value
          * less than the passed in value.
          */
         virtual int compareTo( const double& d ) const;
@@ -394,8 +404,7 @@ namespace lang{
          * @returns a new Double instance wrapping the double parsed from value
          * @throws NumberFormatException on error.
          */
-        static Double valueOf( const std::string& value )
-            throw ( exceptions::NumberFormatException );
+        static Double valueOf( const std::string& value );
 
     private:
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Float.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Float.cpp?rev=959402&r1=959401&r2=959402&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Float.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Float.cpp Wed Jun 30 18:30:30
2010
@@ -43,7 +43,7 @@ Float::Float( double value ) {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Float::Float( const std::string& value ) throw( exceptions::NumberFormatException ) {
+Float::Float( const std::string& value ) {
     this->value = Float::parseFloat( value );
 }
 
@@ -145,8 +145,7 @@ bool Float::isNaN( float value ) {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-float Float::parseFloat( const std::string& value )
-    throw ( exceptions::NumberFormatException ) {
+float Float::parseFloat( const std::string& value ) {
 
     // TODO - This is not going to parse the formats we say we do.
     float result = 0.0;
@@ -262,8 +261,7 @@ Float Float::valueOf( float value ) {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Float Float::valueOf( const std::string& value )
-    throw ( exceptions::NumberFormatException ) {
+Float Float::valueOf( const std::string& value ) {
 
     return valueOf( parseFloat( value ) );
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Float.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Float.h?rev=959402&r1=959401&r2=959402&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Float.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Float.h Wed Jun 30 18:30:30
2010
@@ -69,7 +69,7 @@ namespace lang{
         /**
          * @param value - the string to convert to a primitive type to wrap
          */
-        Float( const std::string& value ) throw( exceptions::NumberFormatException );
+        Float( const std::string& value );
 
         virtual ~Float() {}
 
@@ -115,7 +115,7 @@ namespace lang{
          * @param f - the Float instance to be compared
          * @return zero if this object represents the same integer value as the
          * argument; a positive value if this object represents a value greater
-         * than the passed in value, and -1 if this object repesents a value
+         * than the passed in value, and -1 if this object represents a value
          * less than the passed in value.
          */
         virtual int compareTo( const float& f ) const;
@@ -312,8 +312,7 @@ namespace lang{
          * @returns a float parsed from the string
          * @throw NumberFormatException
          */
-        static float parseFloat( const std::string& value )
-            throw ( exceptions::NumberFormatException );
+        static float parseFloat( const std::string& value );
 
         /**
          * Returns a hexadecimal string representation of the float argument. All
@@ -392,15 +391,14 @@ namespace lang{
         static Float valueOf( float value );
 
         /**
-         * Returns a Float instance that wraps a primtive float which is parsed
+         * Returns a Float instance that wraps a primitive float which is parsed
          * from the string value passed.
          *
          * @param value - the string to parse
          * @returns a new Float instance wrapping the float parsed from value
          * @throws NumberFormatException on error.
          */
-        static Float valueOf( const std::string& value )
-            throw ( exceptions::NumberFormatException );
+        static Float valueOf( const std::string& value );
 
     private:
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Integer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Integer.cpp?rev=959402&r1=959401&r2=959402&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Integer.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Integer.cpp Wed Jun 30 18:30:30
2010
@@ -33,7 +33,7 @@ Integer::Integer( int value ) {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Integer::Integer( const std::string& value ) throw( exceptions::NumberFormatException
) {
+Integer::Integer( const std::string& value ) {
     this->value = parseInt( value );
 }
 
@@ -260,15 +260,12 @@ std::string Integer::toHexString( int va
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int Integer::parseInt( const std::string& value )
-    throw ( exceptions::NumberFormatException ) {
-
+int Integer::parseInt( const std::string& value ) {
     return Integer::parseInt( value, 10 );
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int Integer::parseInt( const std::string& value, int radix )
-    throw ( exceptions::NumberFormatException ) {
+int Integer::parseInt( const std::string& value, int radix ) {
 
     if( radix < Character::MIN_RADIX ||
         radix > Character::MAX_RADIX ) {
@@ -295,22 +292,19 @@ int Integer::parseInt( const std::string
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Integer Integer::valueOf( const std::string& value )
-    throw ( exceptions::NumberFormatException ) {
+Integer Integer::valueOf( const std::string& value ) {
 
     return Integer( Integer::parseInt( value ) );
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Integer Integer::valueOf( const std::string& value, int radix )
-    throw ( exceptions::NumberFormatException ) {
+Integer Integer::valueOf( const std::string& value, int radix ) {
 
     return Integer( Integer::parseInt( value, radix ) );
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Integer Integer::decode( const std::string& value )
-    throw ( exceptions::NumberFormatException ) {
+Integer Integer::decode( const std::string& value ) {
 
     int length = (int)value.length(), i = 0;
     if( length == 0 ) {
@@ -363,9 +357,7 @@ Integer Integer::decode( const std::stri
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int Integer::parse( const std::string& value, int offset,
-                    int radix, bool negative )
-    throw ( exceptions::NumberFormatException ) {
+int Integer::parse( const std::string& value, int offset, int radix, bool negative )
{
 
     int max = Integer::MIN_VALUE / radix;
     int result = 0, length = (int)value.size();

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Integer.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Integer.h?rev=959402&r1=959401&r2=959402&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Integer.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Integer.h Wed Jun 30 18:30:30
2010
@@ -55,11 +55,16 @@ namespace lang{
         Integer( int value );
 
         /**
+         * Constructs a new Integer and attempts to convert the given string to an int
+         * value, assigning it to the new object is successful or throwing a
+         * NumberFormatException if the string is not a properly formatted int.
+         *
          * @param value
-         *      The base 10 encoded string to decode to an <code>Integer</code>
and wrap.
-         * @throws NumberFormatException
+         *      The string to convert to a primitive type to wrap.
+         *
+         * @throws NumberFormatException if the string is not a a valid integer.
          */
-        Integer( const std::string& value ) throw( exceptions::NumberFormatException
);
+        Integer( const std::string& value );
 
         virtual ~Integer() {}
 
@@ -207,8 +212,7 @@ namespace lang{
          * @returns a Integer object containing the decoded value
          * @throws NumberFomatException if the string is not formatted correctly.
          */
-        static Integer decode( const std::string& value )
-            throw ( exceptions::NumberFormatException );
+        static Integer decode( const std::string& value );
 
         /**
          * Returns the value obtained by reversing the order of the bytes in the
@@ -249,8 +253,7 @@ namespace lang{
          * @return the int represented by the string argument in the specified radix.
          * @throws NumberFormatException - If String does not contain a parsable int.
          */
-        static int parseInt( const std::string& s, int radix )
-            throw ( exceptions::NumberFormatException );
+        static int parseInt( const std::string& s, int radix );
 
         /**
          * Parses the string argument as a signed decimal int. The characters
@@ -263,8 +266,7 @@ namespace lang{
          * @returns the converted int value
          * @throws NumberFormatException if the string is not a int.
          */
-        static int parseInt( const std::string& s )
-            throw ( exceptions::NumberFormatException );
+        static int parseInt( const std::string& s );
 
         /**
          * Returns a Integer instance representing the specified int value.
@@ -285,8 +287,7 @@ namespace lang{
          * @return new Integer Object wrapping the primitive
          * @throws NumberFormatException if the string is not a decimal int.
          */
-        static Integer valueOf( const std::string& value )
-            throw ( exceptions::NumberFormatException );
+        static Integer valueOf( const std::string& value );
 
         /**
          * Returns a Integer object holding the value extracted from the specified
@@ -300,8 +301,7 @@ namespace lang{
          * @return new Integer Object wrapping the primitive
          * @throws NumberFormatException if the string is not a valid int.
          */
-        static Integer valueOf( const std::string& value, int radix )
-            throw ( exceptions::NumberFormatException );
+        static Integer valueOf( const std::string& value, int radix );
 
         /**
          * Returns the number of one-bits in the two's complement binary
@@ -511,8 +511,7 @@ namespace lang{
     private:
 
         static int parse( const std::string& value, int offset,
-                          int radix, bool negative )
-            throw ( exceptions::NumberFormatException );
+                          int radix, bool negative );
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Long.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Long.cpp?rev=959402&r1=959401&r2=959402&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Long.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Long.cpp Wed Jun 30 18:30:30
2010
@@ -28,7 +28,7 @@ Long::Long( long long value ) {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Long::Long( const std::string& value ) throw( exceptions::NumberFormatException ) {
+Long::Long( const std::string& value ) {
     this->value = parseLong( value );
 }
 
@@ -62,8 +62,7 @@ int Long::bitCount( long long value ) {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Long Long::decode( const std::string& value )
-    throw ( exceptions::NumberFormatException ) {
+Long Long::decode( const std::string& value ) {
 
     int length = (int)value.length(), i = 0;
     if( length == 0 ) {
@@ -173,15 +172,13 @@ int Long::numberOfTrailingZeros( long lo
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-long long Long::parseLong( const std::string& value )
-    throw ( exceptions::NumberFormatException ) {
+long long Long::parseLong( const std::string& value ) {
 
     return Long::parseLong( value, 10 );
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-long long Long::parseLong( const std::string& value, int radix )
-    throw ( exceptions::NumberFormatException ) {
+long long Long::parseLong( const std::string& value, int radix ) {
 
     if( radix < Character::MIN_RADIX ||
         radix > Character::MAX_RADIX ) {
@@ -211,8 +208,7 @@ long long Long::parseLong( const std::st
 
 ////////////////////////////////////////////////////////////////////////////////
 long long Long::parse( const std::string& value, int offset,
-                       int radix, bool negative )
-    throw ( exceptions::NumberFormatException ) {
+                       int radix, bool negative ) {
 
     long long max = Long::MIN_VALUE / radix;
     long long result = 0;
@@ -479,15 +475,13 @@ std::string Long::toHexString( long long
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Long Long::valueOf( const std::string& value )
-    throw ( exceptions::NumberFormatException ) {
+Long Long::valueOf( const std::string& value ) {
 
     return Long( Long::parseLong( value ) );
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Long Long::valueOf( const std::string& value, int radix )
-    throw ( exceptions::NumberFormatException ) {
+Long Long::valueOf( const std::string& value, int radix ) {
 
     return Long( Long::parseLong( value, radix ) );
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Long.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Long.h?rev=959402&r1=959401&r2=959402&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Long.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Long.h Wed Jun 30 18:30:30
2010
@@ -53,10 +53,16 @@ namespace lang{
         Long( long long value );
 
         /**
-         * @param value - the long long formated string to wrap
-         * @throw NumberFormatException
+         * Constructs a new Long and attempts to convert the given string to an long long
+         * value, assigning it to the new object is successful or throwing a
+         * NumberFormatException if the string is not a properly formatted long long.
+         *
+         * @param value
+         *      The string to convert to a primitive type to wrap.
+         *
+         * @throws NumberFormatException if the string is not a a valid 64bit long.
          */
-        Long( const std::string& value ) throw( exceptions::NumberFormatException );
+        Long( const std::string& value );
 
         virtual ~Long() {}
 
@@ -65,7 +71,7 @@ namespace lang{
          * @param l - the Long instance to be compared
          * @return zero if this object represents the same integer value as the
          * argument; a positive value if this object represents a value greater
-         * than the passed in value, and -1 if this object repesents a value
+         * than the passed in value, and -1 if this object represents a value
          * less than the passed in value.
          */
         virtual int compareTo( const Long& l ) const;
@@ -102,7 +108,7 @@ namespace lang{
          * @param l - the Integer instance to be compared
          * @return zero if this object represents the same integer value as the
          * argument; a positive value if this object represents a value greater
-         * than the passed in value, and -1 if this object repesents a value
+         * than the passed in value, and -1 if this object represents a value
          * less than the passed in value.
          */
         virtual int compareTo( const long long& l ) const;
@@ -214,8 +220,7 @@ namespace lang{
          * @returns a Long object containing the decoded value
          * @throws NumberFomatException if the string is not formatted correctly.
          */
-        static Long decode( const std::string& value )
-            throw ( exceptions::NumberFormatException );
+        static Long decode( const std::string& value );
 
         /**
          * Returns an long long value with at most a single one-bit, in the position
@@ -285,8 +290,7 @@ namespace lang{
          * @return long long value
          * @throws NumberFormatException on invalid string value
          */
-        static long long parseLong( const std::string& value )
-            throw ( exceptions::NumberFormatException );
+        static long long parseLong( const std::string& value );
 
         /**
          * Returns a Long object holding the value extracted from the specified
@@ -300,8 +304,7 @@ namespace lang{
          * @return long long value
          * @throws NumberFormatException on invalid string value
          */
-        static long long parseLong( const std::string& value, int radix )
-            throw ( exceptions::NumberFormatException );
+        static long long parseLong( const std::string& value, int radix );
 
         /**
          * Returns the value obtained by reversing the order of the bytes in the
@@ -475,8 +478,7 @@ namespace lang{
          * @return new Long Object wrapping the primitive
          * @throws NumberFormatException if the string is not a decimal long long.
          */
-        static Long valueOf( const std::string& value )
-            throw ( exceptions::NumberFormatException );
+        static Long valueOf( const std::string& value );
 
         /**
          * Returns a Long object holding the value extracted from the specified
@@ -490,14 +492,12 @@ namespace lang{
          * @return new Long Object wrapping the primitive
          * @throws NumberFormatException if the string is not a valid long long.
          */
-        static Long valueOf( const std::string& value, int radix )
-            throw ( exceptions::NumberFormatException );
+        static Long valueOf( const std::string& value, int radix );
 
     private:
 
         static long long parse( const std::string& value, int offset,
-                                int radix, bool negative )
-            throw ( exceptions::NumberFormatException );
+                                int radix, bool negative );
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Pointer.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Pointer.h?rev=959402&r1=959401&r2=959402&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Pointer.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Pointer.h Wed Jun 30 18:30:30
2010
@@ -120,11 +120,11 @@ namespace lang {
          * then this method throws a ClassCastException.
          *
          * @param value - Pointer instance to cast to this type.
+         *
          * @throw ClassCastException if the dynamic cast returns NULL
          */
         template< typename T1, typename R1 >
-        Pointer( const Pointer<T1, R1>& value, const DYNAMIC_CAST_TOKEN& )
-            throw( decaf::lang::exceptions::ClassCastException ) :
+        Pointer( const Pointer<T1, R1>& value, const DYNAMIC_CAST_TOKEN& )
:
                 REFCOUNTER( value ), value( dynamic_cast<T*>( value.get() ) ), onDelete(
onDeleteFunc ) {
 
             if( this->value == NULL ) {

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Short.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Short.cpp?rev=959402&r1=959401&r2=959402&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Short.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Short.cpp Wed Jun 30 18:30:30
2010
@@ -30,7 +30,7 @@ Short::Short( short value ) {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Short::Short( const std::string& value ) throw( exceptions::NumberFormatException ) {
+Short::Short( const std::string& value ) {
     Short::parseShort( value );
 }
 
@@ -55,8 +55,7 @@ std::string Short::toString( short value
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-short Short::parseShort( const std::string& s, int radix )
-    throw ( exceptions::NumberFormatException ) {
+short Short::parseShort( const std::string& s, int radix ) {
 
     int intValue = Integer::parseInt( s, radix );
     short result = (short)intValue;
@@ -70,14 +69,12 @@ short Short::parseShort( const std::stri
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-short Short::parseShort( const std::string& s )
-    throw ( exceptions::NumberFormatException ) {
+short Short::parseShort( const std::string& s ) {
     return parseShort( s, 10 );
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Short Short::decode( const std::string& value )
-    throw ( exceptions::NumberFormatException ) {
+Short Short::decode( const std::string& value ) {
 
     int intValue = Integer::decode( value ).intValue();
     short result = (short)intValue;
@@ -103,15 +100,13 @@ Short Short::valueOf( short value ) {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Short Short::valueOf( const std::string& value )
-    throw ( exceptions::NumberFormatException ) {
+Short Short::valueOf( const std::string& value ) {
 
     return Short( parseShort( value, 10 ) );
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Short Short::valueOf( const std::string& value, int radix )
-    throw ( exceptions::NumberFormatException ) {
+Short Short::valueOf( const std::string& value, int radix ) {
 
     return Short( parseShort( value, radix ) );
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Short.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Short.h?rev=959402&r1=959401&r2=959402&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Short.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Short.h Wed Jun 30 18:30:30
2010
@@ -54,10 +54,12 @@ namespace lang{
         Short( short value );
 
         /**
-         * @param value - string value to convert to short and wrap
-         * @throws NumberFormatException
+         * @param value
+         *      The string value to convert to short and wrap.
+         *
+         * @throws NumberFormatException if the string is not well formed number value.
          */
-        Short( const std::string& value ) throw( exceptions::NumberFormatException );
+        Short( const std::string& value );
 
         virtual ~Short() {}
 
@@ -66,7 +68,7 @@ namespace lang{
          * @param s - the Short instance to be compared
          * @return zero if this object represents the same short value as the
          * argument; a positive value if this object represents a value greater
-         * than the passed in value, and -1 if this object repesents a value
+         * than the passed in value, and -1 if this object represents a value
          * less than the passed in value.
          */
         virtual int compareTo( const Short& s ) const;
@@ -102,7 +104,7 @@ namespace lang{
          * @param s - the Short instance to be compared
          * @return zero if this object represents the same short value as the
          * argument; a positive value if this object represents a value greater
-         * than the passed in value, and -1 if this object repesents a value
+         * than the passed in value, and -1 if this object represents a value
          * less than the passed in value.
          */
         virtual int compareTo( const short& s ) const;
@@ -208,8 +210,7 @@ namespace lang{
          * @returns a Short object containing the decoded value
          * @throws NumberFomatException if the string is not formatted correctly.
          */
-        static Short decode( const std::string& value )
-            throw ( exceptions::NumberFormatException );
+        static Short decode( const std::string& value );
 
         /**
          * Returns the value obtained by reversing the order of the bytes in the
@@ -242,8 +243,7 @@ namespace lang{
          * @return the short represented by the string argument in the specified radix.
          * @throws NumberFormatException - If String does not contain a parsable short.
          */
-        static short parseShort( const std::string& s, int radix )
-            throw ( exceptions::NumberFormatException );
+        static short parseShort( const std::string& s, int radix );
 
         /**
          * Parses the string argument as a signed decimal short. The characters
@@ -257,8 +257,7 @@ namespace lang{
          * @returns the converted short value
          * @throws NumberFormatException if the string is not a short.
          */
-        static short parseShort( const std::string& s )
-            throw ( exceptions::NumberFormatException );
+        static short parseShort( const std::string& s );
 
         /**
          * Returns a Short instance representing the specified short value.
@@ -277,8 +276,7 @@ namespace lang{
          * @return new Short Object wrapping the primitive
          * @throws NumberFormatException if the string is not a decimal short.
          */
-        static Short valueOf( const std::string& value )
-            throw ( exceptions::NumberFormatException );
+        static Short valueOf( const std::string& value );
 
         /**
          * Returns a Short object holding the value extracted from the specified
@@ -292,8 +290,7 @@ namespace lang{
          * @return new Short Object wrapping the primitive
          * @throws NumberFormatException if the string is not a valid short.
          */
-        static Short valueOf( const std::string& value, int radix )
-            throw ( exceptions::NumberFormatException );
+        static Short valueOf( const std::string& value, int radix );
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Thread.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Thread.cpp?rev=959402&r1=959401&r2=959402&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Thread.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Thread.cpp Wed Jun 30 18:30:30
2010
@@ -343,8 +343,7 @@ void Thread::run() {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void Thread::start() throw ( decaf::lang::exceptions::IllegalThreadStateException,
-                             decaf::lang::exceptions::RuntimeException ) {
+void Thread::start() {
 
     try {
 
@@ -408,7 +407,7 @@ void Thread::start() throw ( decaf::lang
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void Thread::join() throw( decaf::lang::exceptions::InterruptedException ) {
+void Thread::join() {
 
     if( this->properties->state < Thread::RUNNABLE ) {
         return;
@@ -426,9 +425,7 @@ void Thread::join() throw( decaf::lang::
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void Thread::join( long long millisecs )
-    throw ( decaf::lang::exceptions::IllegalArgumentException,
-            decaf::lang::exceptions::InterruptedException ) {
+void Thread::join( long long millisecs ) {
 
     if( millisecs < 0 ) {
         throw IllegalArgumentException(
@@ -444,9 +441,7 @@ void Thread::join( long long millisecs )
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void Thread::join( long long millisecs, unsigned int nanos )
-    throw ( decaf::lang::exceptions::IllegalArgumentException,
-            decaf::lang::exceptions::InterruptedException ) {
+void Thread::join( long long millisecs, unsigned int nanos ) {
 
     if( millisecs < 0 ) {
         throw IllegalArgumentException(
@@ -471,17 +466,13 @@ void Thread::join( long long millisecs, 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void Thread::sleep( long long millisecs )
-    throw( decaf::lang::exceptions::InterruptedException,
-           decaf::lang::exceptions::IllegalArgumentException ) {
+void Thread::sleep( long long millisecs ) {
 
     Thread::sleep( millisecs, 0 );
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void Thread::sleep( long long millisecs, unsigned int nanos )
-    throw( decaf::lang::exceptions::InterruptedException,
-           decaf::lang::exceptions::IllegalArgumentException ) {
+void Thread::sleep( long long millisecs, unsigned int nanos ) {
 
     if( millisecs < 0 ) {
         throw IllegalArgumentException(
@@ -547,7 +538,7 @@ std::string Thread::getName() const {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void Thread::setPriority( int value ) throw( decaf::lang::exceptions::IllegalArgumentException
) {
+void Thread::setPriority( int value ) {
 
     if( value < Thread::MIN_PRIORITY || value > Thread::MAX_PRIORITY ) {
         throw IllegalArgumentException(

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Thread.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Thread.h?rev=959402&r1=959401&r2=959402&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Thread.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Thread.h Wed Jun 30 18:30:30
2010
@@ -190,8 +190,7 @@ namespace lang{
          * @throws IllegalThreadStateException if the thread has already been started.
          * @throws RuntimeException if the Thread cannot be created for some reason.
          */
-        virtual void start() throw ( decaf::lang::exceptions::IllegalThreadStateException,
-                                     decaf::lang::exceptions::RuntimeException );
+        virtual void start();
 
         /**
          * Forces the Current Thread to wait until the thread exits.
@@ -200,7 +199,7 @@ namespace lang{
          *         The interrupted status of the current thread is cleared when this
          *         exception is thrown.
          */
-        virtual void join() throw ( decaf::lang::exceptions::InterruptedException );
+        virtual void join();
 
         /**
          * Forces the Current Thread to wait until the thread exits.
@@ -212,9 +211,7 @@ namespace lang{
          *         The interrupted status of the current thread is cleared when this
          *         exception is thrown.
          */
-        virtual void join( long long millisecs )
-            throw ( decaf::lang::exceptions::IllegalArgumentException,
-                    decaf::lang::exceptions::InterruptedException );
+        virtual void join( long long millisecs );
 
         /**
          * Forces the Current Thread to wait until the thread exits.
@@ -228,9 +225,7 @@ namespace lang{
          *         The interrupted status of the current thread is cleared when this
          *         exception is thrown.
          */
-        virtual void join( long long millisecs, unsigned int nanos )
-            throw ( decaf::lang::exceptions::IllegalArgumentException,
-                    decaf::lang::exceptions::InterruptedException );
+        virtual void join( long long millisecs, unsigned int nanos );
 
         /**
          * Default implementation of the run method - does nothing.
@@ -265,7 +260,7 @@ namespace lang{
          *
          * @throws IllegalArgumentException if the value is out of range.
          */
-        void setPriority( int value ) throw( decaf::lang::exceptions::IllegalArgumentException
);
+        void setPriority( int value );
 
         /**
          * Set the handler invoked when this thread abruptly terminates due to an uncaught
exception.
@@ -318,9 +313,7 @@ namespace lang{
          * @throws IllegalArgumentException if the milliseconds parameter is negative.
          * @throws InterruptedException if the Thread was interrupted while sleeping.
          */
-        static void sleep( long long millisecs )
-            throw( lang::exceptions::InterruptedException,
-                   lang::exceptions::IllegalArgumentException );
+        static void sleep( long long millisecs );
 
         /**
          * Causes the currently executing thread to halt execution for the specified number
of
@@ -337,9 +330,7 @@ namespace lang{
          *         or the milliseconds paramter is negative.
          * @throws InterruptedException if the Thread was interrupted while sleeping.
          */
-        static void sleep( long long millisecs, unsigned int nanos )
-            throw( lang::exceptions::InterruptedException,
-                   lang::exceptions::IllegalArgumentException );
+        static void sleep( long long millisecs, unsigned int nanos );
 
         /**
          * Causes the currently executing thread object to temporarily pause



Mime
View raw message