summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/renderers/DateRenderer.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/com/vaadin/ui/renderers/DateRenderer.java')
-rw-r--r--server/src/com/vaadin/ui/renderers/DateRenderer.java17
1 files changed, 11 insertions, 6 deletions
diff --git a/server/src/com/vaadin/ui/renderers/DateRenderer.java b/server/src/com/vaadin/ui/renderers/DateRenderer.java
index 092b3f405e..dddeb6cd77 100644
--- a/server/src/com/vaadin/ui/renderers/DateRenderer.java
+++ b/server/src/com/vaadin/ui/renderers/DateRenderer.java
@@ -72,7 +72,8 @@ public class DateRenderer extends AbstractRenderer<Date> {
* @throws IllegalArgumentException
* if {@code locale} is {@code null}
*/
- public DateRenderer(Locale locale, String nullRepresentation) throws IllegalArgumentException {
+ public DateRenderer(Locale locale, String nullRepresentation)
+ throws IllegalArgumentException {
this("%s", locale, nullRepresentation);
}
@@ -110,7 +111,8 @@ public class DateRenderer extends AbstractRenderer<Date> {
* href="http://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html#syntax">Format
* String Syntax</a>
*/
- public DateRenderer(String formatString, String nullRepresentation) throws IllegalArgumentException {
+ public DateRenderer(String formatString, String nullRepresentation)
+ throws IllegalArgumentException {
this(formatString, Locale.getDefault(), nullRepresentation);
}
@@ -132,8 +134,9 @@ public class DateRenderer extends AbstractRenderer<Date> {
*/
public DateRenderer(String formatString, Locale locale)
throws IllegalArgumentException {
- this(formatString,locale, "");
+ this(formatString, locale, "");
}
+
/**
* Creates a new date renderer.
* <p>
@@ -152,8 +155,8 @@ public class DateRenderer extends AbstractRenderer<Date> {
* href="http://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html#syntax">Format
* String Syntax</a>
*/
- public DateRenderer(String formatString, Locale locale, String nullRepresentation)
- throws IllegalArgumentException {
+ public DateRenderer(String formatString, Locale locale,
+ String nullRepresentation) throws IllegalArgumentException {
super(Date.class, nullRepresentation);
if (formatString == null) {
@@ -182,6 +185,7 @@ public class DateRenderer extends AbstractRenderer<Date> {
public DateRenderer(DateFormat dateFormat) throws IllegalArgumentException {
this(dateFormat, "");
}
+
/**
* Creates a new date renderer.
* <p>
@@ -192,7 +196,8 @@ public class DateRenderer extends AbstractRenderer<Date> {
* @throws IllegalArgumentException
* if {@code dateFormat} is {@code null}
*/
- public DateRenderer(DateFormat dateFormat, String nullRepresentation) throws IllegalArgumentException {
+ public DateRenderer(DateFormat dateFormat, String nullRepresentation)
+ throws IllegalArgumentException {
super(Date.class, nullRepresentation);
if (dateFormat == null) {
throw new IllegalArgumentException("date format may not be null");