Add more warnings source to 1.6) and fix warnings
[nikiroo-utils.git] / src / be / nikiroo / utils / test / TestCase.java
index 429200b4ceb3d800cb4ace07215ee82cc700fc69..490edbb4ec9d47db7f2c24cf21630ac303dc7044 100644 (file)
@@ -113,8 +113,8 @@ abstract public class TestCase {
        /**
         * Check that 2 {@link Object}s are equals.
         * 
-        * @param the
-        *            error message to display if they differ
+        * @param errorMessage
+        *            the error message to display if they differ
         * @param expected
         *            the expected value
         * @param actual
@@ -130,10 +130,10 @@ abstract public class TestCase {
                        if (errorMessage == null) {
                                throw new AssertException(generateAssertMessage(expected,
                                                actual));
-                       } else {
-                               throw new AssertException(errorMessage, new AssertException(
-                                               generateAssertMessage(expected, actual)));
                        }
+
+                       throw new AssertException(errorMessage, new AssertException(
+                                       generateAssertMessage(expected, actual)));
                }
        }
 
@@ -155,8 +155,8 @@ abstract public class TestCase {
        /**
         * Check that 2 {@link Object}s are equals.
         * 
-        * @param the
-        *            error message to display if they differ
+        * @param errorMessage
+        *            the error message to display if they differ
         * @param expected
         *            the expected value
         * @param actual
@@ -189,8 +189,8 @@ abstract public class TestCase {
        /**
         * Check that 2 {@link Object}s are equals.
         * 
-        * @param the
-        *            error message to display if they differ
+        * @param errorMessage
+        *            the error message to display if they differ
         * @param expected
         *            the expected value
         * @param actual
@@ -223,8 +223,8 @@ abstract public class TestCase {
        /**
         * Check that 2 {@link Object}s are equals.
         * 
-        * @param the
-        *            error message to display if they differ
+        * @param errorMessage
+        *            the error message to display if they differ
         * @param expected
         *            the expected value
         * @param actual
@@ -241,8 +241,8 @@ abstract public class TestCase {
        /**
         * Check that given {@link Object} is not NULL.
         * 
-        * @param the
-        *            error message to display if it is NULL
+        * @param errorMessage
+        *            the error message to display if it is NULL
         * @param actual
         *            the actual value
         * 
@@ -258,10 +258,10 @@ abstract public class TestCase {
 
                        if (errorMessage == null) {
                                throw new AssertException(defaultReason);
-                       } else {
-                               throw new AssertException(errorMessage, new AssertException(
-                                               defaultReason));
                        }
+
+                       throw new AssertException(errorMessage, new AssertException(
+                                       defaultReason));
                }
        }