From 2665dc757c6e14176acb2ec4754773ed0b25cebc Mon Sep 17 00:00:00 2001 From: tosmers Date: Sun, 15 Feb 2015 15:53:14 +0000 Subject: [PATCH] [UPDATE] In der Klasse ccm-cms/src/com/arsdigita/cms/ui/type/AddDateElement.java die FormProcessException in den Zeilen 145, 149, 154, 159 und 164 umgebaut. git-svn-id: https://svn.libreccm.org/ccm/trunk@3184 8810af33-2d31-482b-a856-94f89814c4df --- .../arsdigita/cms/ui/type/AddDateElement.java | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/ccm-cms/src/com/arsdigita/cms/ui/type/AddDateElement.java b/ccm-cms/src/com/arsdigita/cms/ui/type/AddDateElement.java index fb787a668..04035a43f 100755 --- a/ccm-cms/src/com/arsdigita/cms/ui/type/AddDateElement.java +++ b/ccm-cms/src/com/arsdigita/cms/ui/type/AddDateElement.java @@ -142,33 +142,28 @@ public class AddDateElement extends ElementAddForm { Integer toYear = (Integer) m_toYear.getValue(state); if (!(fromYear != null && toYear != null)) { - throw new FormProcessException - ((String) GlobalizationUtil.globalize - ("cms.ui.type.year_range_not_balanced").localize()); + throw new FormProcessException(GlobalizationUtil.globalize( + "cms.ui.type.year_range_not_balanced")); } else { if ((fromYear.intValue() < 0) || (toYear.intValue() < 0)) { - throw new FormProcessException - ((String) GlobalizationUtil.globalize - ("cms.ui.type.year_is_negative").localize()); + throw new FormProcessException(GlobalizationUtil.globalize( + "cms.ui.type.year_is_negative")); } if (fromYear.intValue() > toYear.intValue()) { - throw new FormProcessException - ((String) GlobalizationUtil.globalize - ("cms.ui.type.year_range_wrong_order").localize()); + throw new FormProcessException(GlobalizationUtil.globalize( + "cms.ui.type.year_range_wrong_order")); } if ((toYear.intValue() - fromYear.intValue()) > 200) { - throw new FormProcessException - ((String) GlobalizationUtil.globalize - ("cms.ui.type.year_range_too_great").localize()); + throw new FormProcessException(GlobalizationUtil.globalize( + "cms.ui.type.year_range_too_great")); } if ((fromYear.intValue() < 1900 || fromYear.intValue() > 2100) && (toYear.intValue() < 1900 || toYear.intValue() > 2100)) { - throw new FormProcessException - ((String) GlobalizationUtil.globalize - ("cms.ui.type.year_too_anachronistic").localize()); + throw new FormProcessException(GlobalizationUtil.globalize( + "cms.ui.type.year_too_anachronistic")); } } }