|
From: <lh...@us...> - 2008-08-06 13:56:35
|
Revision: 56
http://tmapi.svn.sourceforge.net/tmapi/?rev=56&view=rev
Author: lheuer
Date: 2008-08-06 13:56:44 +0000 (Wed, 06 Aug 2008)
Log Message:
-----------
- DatatypeAware: Switched from IllegalStateException to NumberFormatException and IllegalArgumentException
- TestTopicMerge: Removed unnecessary Exception declaration
Modified Paths:
--------------
trunk/src/main/java/org/tmapi/core/DatatypeAware.java
trunk/src/test/java/org/tmapi/core/TestTopicMerge.java
Modified: trunk/src/main/java/org/tmapi/core/DatatypeAware.java
===================================================================
--- trunk/src/main/java/org/tmapi/core/DatatypeAware.java 2008-08-06 12:35:05 UTC (rev 55)
+++ trunk/src/main/java/org/tmapi/core/DatatypeAware.java 2008-08-06 13:56:44 UTC (rev 56)
@@ -130,7 +130,7 @@
* Returns the <tt>int</tt> representation of the value.
*
* @return An <tt>int</tt> representation of the value.
- * @throws IllegalStateException If the value cannot be represented as
+ * @throws NumberFormatException If the value cannot be represented as
* a <tt>int</tt>.
*/
public int intValue();
@@ -139,7 +139,7 @@
* Returns the {@link BigInteger} representation of the value.
*
* @return A {@link BigInteger} representation of the value.
- * @throws IllegalStateException If the value cannot be represented as
+ * @throws NumberFormatException If the value cannot be represented as
* a {@link BigInteger} instance.
*/
public BigInteger integerValue();
@@ -148,7 +148,7 @@
* Returns the <tt>float</tt> representation of the value.
*
* @return A <tt>float</tt> representation of the value.
- * @throws IllegalStateException If the value cannot be represented as
+ * @throws NumberFormatException If the value cannot be represented as
* a <tt>float</tt>.
*/
public float floatValue();
@@ -157,7 +157,7 @@
* Returns the {@link BigDecimal} representation of the value.
*
* @return A {@link BigDecimal} representation of the value.
- * @throws IllegalStateException If the value cannot be represented as
+ * @throws NumberFormatException If the value cannot be represented as
* a {@link BigDecimal} instance.
*/
public BigDecimal decimalValue();
@@ -166,7 +166,7 @@
* Returns the <tt>long</tt> representation of the value.
*
* @return A <tt>long</tt> representation of the value.
- * @throws IllegalStateException If the value cannot be represented as
+ * @throws NumberFormatException If the value cannot be represented as
* a <tt>long</tt>.
*/
public long longValue();
@@ -175,7 +175,7 @@
* Returns the {@link Locator} representation of the value.
*
* @return A {@link Locator} representation of the value.
- * @throws IllegalStateException If the value cannot be represented as
+ * @throws IllegalArgumentException If the value cannot be represented as
* a {@link Locator} instance.
*/
public Locator locatorValue();
Modified: trunk/src/test/java/org/tmapi/core/TestTopicMerge.java
===================================================================
--- trunk/src/test/java/org/tmapi/core/TestTopicMerge.java 2008-08-06 12:35:05 UTC (rev 55)
+++ trunk/src/test/java/org/tmapi/core/TestTopicMerge.java 2008-08-06 13:56:44 UTC (rev 56)
@@ -25,10 +25,10 @@
super(name);
}
- /*
+ /**
*Tests if the types are merged too
*/
- public void testTypesMerged() throws Exception {
+ public void testTypesMerged() {
Topic t1 = createTopic();
Topic t2 = createTopic();
Topic t3 = createTopic();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|