Removed useless exception handling.
authorMarco Zanon <info@marcozanon.com>
Wed, 16 May 2012 21:09:39 +0000 (21:09 +0000)
committerMarco Zanon <info@marcozanon.com>
Wed, 16 May 2012 21:09:39 +0000 (21:09 +0000)
src/java/com/marcozanon/macaco/attic/web/ui/MWebDateBox.java
src/java/com/marcozanon/macaco/conversion/MDateConverter.java

index d904d8e0d8dcf027efd1b15bd98ceadddc5a42e8..2504e4a6861fc7d811c84020b137cf862c8144f9 100644 (file)
@@ -56,11 +56,7 @@ public class MWebDateBox extends MWebTextBox {
             this.setText("");
         }
         else {
-            try {
-                this.setText(this.getDateConverterReference().getStringFromDate(date));
-            }
-            catch (MFormatConversionException exception) { // cannot happen
-            }
+            this.setText(this.getDateConverterReference().getStringFromDate(date));
         }
     }
 
index de17a7bdaff3124d4c60ce9a70522c7531bd4668..65da9ecda371b6b81907d54ca708b5ab61d0886f 100644 (file)
@@ -211,7 +211,7 @@ public class MDateConverter extends MObject {
         return y; // necessary to avoid Java compilation errors
     }
 
-    public String getStringFromDate(Date x) throws MFormatConversionException {
+    public String getStringFromDate(Date x) {
         return this.getStringFromDateByParameters(x, this.getDefaultDateFormat(), this.getLocaleReference(), this.getTimeZoneReference());
     }