From: Marco Zanon <info@marcozanon.com>
Date: Sun, 26 Aug 2012 10:14:25 +0000 (+0000)
Subject: Removed useless objects.
X-Git-Tag: 2.0~2
X-Git-Url: https://gitweb.marcozanon.com/?a=commitdiff_plain;h=a299da7a7badca8cfbee070af6e0f2fbf1023802;p=Macaco

Removed useless objects.
---

diff --git a/src/java/com/marcozanon/macaco/web/ui/MWebDateBox.java b/src/java/com/marcozanon/macaco/web/ui/MWebDateBox.java
index 6b895da..053c485 100644
--- a/src/java/com/marcozanon/macaco/web/ui/MWebDateBox.java
+++ b/src/java/com/marcozanon/macaco/web/ui/MWebDateBox.java
@@ -61,12 +61,11 @@ public class MWebDateBox extends MWebTextBox {
     }
 
     public Date getDate() throws MFormatConversionException {
-        Date date = null;
         String text = this.getText();
         if (!MText.isEmpty(text)) {
             return this.getDateConverterReference().getDateFromString(text);
         }
-        return date;
+        return null;
     }
 
     /* Validation */
diff --git a/src/java/com/marcozanon/macaco/web/ui/MWebNumberBox.java b/src/java/com/marcozanon/macaco/web/ui/MWebNumberBox.java
index e398742..d92e7e9 100644
--- a/src/java/com/marcozanon/macaco/web/ui/MWebNumberBox.java
+++ b/src/java/com/marcozanon/macaco/web/ui/MWebNumberBox.java
@@ -61,12 +61,11 @@ public class MWebNumberBox extends MWebTextBox {
     }
 
     public BigDecimal getNumber() throws MFormatConversionException {
-        BigDecimal number = null;
         String text = this.getText();
         if (!MText.isEmpty(text)) {
             return this.getNumberConverterReference().getNumberFromString(text);
         }
-        return number;
+        return null;
     }
 
     /* Validation */