From: Marco Zanon Date: Sun, 26 Aug 2012 10:14:25 +0000 (+0000) Subject: Removed useless objects. X-Git-Tag: SVN-to-Git~121 X-Git-Url: https://gitweb.marcozanon.com/?a=commitdiff_plain;h=a3a5ae1af42bc10f6c1e39c1dcc8ecb2133f2157;p=Macaco Removed useless objects. --- diff --git a/2.x/src/java/com/marcozanon/macaco/web/ui/MWebDateBox.java b/2.x/src/java/com/marcozanon/macaco/web/ui/MWebDateBox.java index 6b895da..053c485 100644 --- a/2.x/src/java/com/marcozanon/macaco/web/ui/MWebDateBox.java +++ b/2.x/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/2.x/src/java/com/marcozanon/macaco/web/ui/MWebNumberBox.java b/2.x/src/java/com/marcozanon/macaco/web/ui/MWebNumberBox.java index e398742..d92e7e9 100644 --- a/2.x/src/java/com/marcozanon/macaco/web/ui/MWebNumberBox.java +++ b/2.x/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 */