Removed useless objects.
authorMarco Zanon <info@marcozanon.com>
Sun, 26 Aug 2012 10:14:25 +0000 (10:14 +0000)
committerMarco Zanon <info@marcozanon.com>
Sun, 26 Aug 2012 10:14:25 +0000 (10:14 +0000)
2.x/src/java/com/marcozanon/macaco/web/ui/MWebDateBox.java
2.x/src/java/com/marcozanon/macaco/web/ui/MWebNumberBox.java

index 6b895daafcaa2ba0cda3e06dbd191c6bd63cbb56..053c4857bc18314cf32f1d745aac163d425ec02b 100644 (file)
@@ -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 */
index e398742549388c80eb4e1774a2cabaeb8be00317..d92e7e918f4092172e1b4bbb7a2befb3c64accb0 100644 (file)
@@ -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 */