From da86f5c7501717f12e081cee7446935e8cf1ca2d Mon Sep 17 00:00:00 2001 From: MK13 Date: Sat, 28 Sep 2019 21:48:25 +0200 Subject: [PATCH] Remove no longer needed 'monthPeriodStartDay' config property --- .../de/financer/config/FinancerConfig.java | 29 ------------------- .../config/application-nm.properties | 3 +- .../resources/config/application.properties | 3 -- 3 files changed, 1 insertion(+), 34 deletions(-) diff --git a/financer-web-client/src/main/java/de/financer/config/FinancerConfig.java b/financer-web-client/src/main/java/de/financer/config/FinancerConfig.java index 276b2ec..7c1bba8 100644 --- a/financer-web-client/src/main/java/de/financer/config/FinancerConfig.java +++ b/financer-web-client/src/main/java/de/financer/config/FinancerConfig.java @@ -15,7 +15,6 @@ public class FinancerConfig { private String serverUrl; private String dateFormat; private String version; - private Integer monthPeriodStartDay; private String currencyCode; private Currency currency; @@ -43,34 +42,6 @@ public class FinancerConfig { this.version = version; } - /** - * The day of month that indicates a start of an expense period. Valid values range from 1-28. There is no special - * handling for months with more days. - * If the value is 15 for example an expense period is always from the 15th of the current month to the 15th of the - * next month: - * - * - * @return the day of month indicating the start of an expense period - */ - public Integer getMonthPeriodStartDay() { - return monthPeriodStartDay; - } - - public void setMonthPeriodStartDay(Integer monthPeriodStartDay) { - if (monthPeriodStartDay == null) { - throw new IllegalArgumentException("Parameter 'financer.monthPeriodStartDay' is not set!"); - } - else if (monthPeriodStartDay < 1 || monthPeriodStartDay > 28) { - throw new IllegalArgumentException("Parameter 'financer.monthPeriodStartDay' is out of range! Valid range from 1-28"); - } - - this.monthPeriodStartDay = monthPeriodStartDay; - } - public void setCurrencyCode(String currencyCode) { this.currencyCode = currencyCode; diff --git a/financer-web-client/src/main/resources/config/application-nm.properties b/financer-web-client/src/main/resources/config/application-nm.properties index c1c42be..056e0b0 100644 --- a/financer-web-client/src/main/resources/config/application-nm.properties +++ b/financer-web-client/src/main/resources/config/application-nm.properties @@ -1,2 +1 @@ -financer.serverUrl=http://localhost:8080/financer-server-nm/ -financer.monthPeriodStartDay=10 \ No newline at end of file +financer.serverUrl=http://localhost:8080/financer-server-nm/ \ No newline at end of file diff --git a/financer-web-client/src/main/resources/config/application.properties b/financer-web-client/src/main/resources/config/application.properties index 1c17ec9..03a2920 100644 --- a/financer-web-client/src/main/resources/config/application.properties +++ b/financer-web-client/src/main/resources/config/application.properties @@ -29,9 +29,6 @@ financer.serverUrl=http://localhost:8080/financer-server/ spring.messages.basename=i18n/message -# The day of month indicating the start of an expense period. Valid values range from 1-28 -financer.monthPeriodStartDay=15 - # The currency code to use for displaying money values. Note that the currency is only used for # displaying. # Possible values are ISO-4271 currency codes.