From: Marco Zanon <info@marcozanon.com>
Date: Tue, 15 May 2012 19:59:16 +0000 (+0000)
Subject: Removed useless exception handling.
X-Git-Tag: SVN-to-Git~139
X-Git-Url: https://gitweb.marcozanon.com/?a=commitdiff_plain;h=3391bc03d49a347c2ab13befaa1bb763f925efd6;p=Macaco

Removed useless exception handling.
---

diff --git a/src/java/com/marcozanon/macaco/attic/web/ui/MWebNumberBox.java b/src/java/com/marcozanon/macaco/attic/web/ui/MWebNumberBox.java
index 534b917..22a949d 100644
--- a/src/java/com/marcozanon/macaco/attic/web/ui/MWebNumberBox.java
+++ b/src/java/com/marcozanon/macaco/attic/web/ui/MWebNumberBox.java
@@ -56,11 +56,7 @@ public class MWebNumberBox extends MWebTextBox {
             this.setText("");
         }
         else {
-            try {
-                this.setText(this.getNumberConverterReference().getStringFromNumber(number));
-            }
-            catch (MFormatConversionException exception) { // cannot happen
-            }
+            this.setText(this.getNumberConverterReference().getStringFromNumber(number));
         }
     }
 
diff --git a/src/java/com/marcozanon/macaco/conversion/MNumberConverter.java b/src/java/com/marcozanon/macaco/conversion/MNumberConverter.java
index 6147699..a152da1 100644
--- a/src/java/com/marcozanon/macaco/conversion/MNumberConverter.java
+++ b/src/java/com/marcozanon/macaco/conversion/MNumberConverter.java
@@ -166,7 +166,7 @@ public class MNumberConverter extends MObject {
         return y; // necessary to avoid Java compilation errors
     }
 
-    public String getStringFromNumber(BigDecimal x) throws MFormatConversionException {
+    public String getStringFromNumber(BigDecimal x) {
         return this.getStringFromNumberByParameters(x, this.getDefaultNumberFormat(), this.getLocaleReference());
     }