From 3cbb193fb2784916cfea8b1957601b2c48515b50 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 22 Jan 2023 04:37:36 +0100 Subject: [PATCH] Please cherry-pick: - fixed some issues reported by Netbeans' inspector, like Foo.parseFoo() versus Foo.valueOf() --- .../beans/features/FinancialsFeatureWebApplicationBean.java | 2 +- .../converter/country/FinancialsCountryConverter.java | 2 +- .../mobileprovider/FinancialsMobileProviderConverter.java | 2 +- .../basicdata/FinancialsBasicDataCompanyNameValidator.java | 2 +- .../basicdata/FinancialsBasicDataCompanyShortNameValidator.java | 2 +- .../FinancialsBasicDataCompanyRoadNumberValidator.java | 2 +- .../headquarter/FinancialsHeadquarterCompanyNameValidator.java | 2 +- .../validator/phone/abroad/FinancialsAbroadDialValidator.java | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/java/org/mxchange/jfinancials/beans/features/FinancialsFeatureWebApplicationBean.java b/src/java/org/mxchange/jfinancials/beans/features/FinancialsFeatureWebApplicationBean.java index 840a314b..42994398 100644 --- a/src/java/org/mxchange/jfinancials/beans/features/FinancialsFeatureWebApplicationBean.java +++ b/src/java/org/mxchange/jfinancials/beans/features/FinancialsFeatureWebApplicationBean.java @@ -57,7 +57,7 @@ public class FinancialsFeatureWebApplicationBean extends BaseFinancialsBean impl final String contextParameter = this.getStringContextParameter(String.format("is_feature_%s_enabled", feature)); //NOI18N // Default is not enabled - final boolean isEnabled = (Boolean.parseBoolean(contextParameter) == Boolean.TRUE); + final boolean isEnabled = Boolean.parseBoolean(contextParameter); // Return status return isEnabled; diff --git a/src/java/org/mxchange/jfinancials/converter/country/FinancialsCountryConverter.java b/src/java/org/mxchange/jfinancials/converter/country/FinancialsCountryConverter.java index 92956915..d64c2520 100644 --- a/src/java/org/mxchange/jfinancials/converter/country/FinancialsCountryConverter.java +++ b/src/java/org/mxchange/jfinancials/converter/country/FinancialsCountryConverter.java @@ -60,7 +60,7 @@ public class FinancialsCountryConverter implements Converter { // Try this better try { // Convert it to long - final Long countryId = Long.parseLong(submittedValue); + final Long countryId = Long.valueOf(submittedValue); // Try to find it country = COUNTRY_LIST_CONTROLLER.findCountryById(countryId); diff --git a/src/java/org/mxchange/jfinancials/converter/mobileprovider/FinancialsMobileProviderConverter.java b/src/java/org/mxchange/jfinancials/converter/mobileprovider/FinancialsMobileProviderConverter.java index 05221b5d..4614ab98 100644 --- a/src/java/org/mxchange/jfinancials/converter/mobileprovider/FinancialsMobileProviderConverter.java +++ b/src/java/org/mxchange/jfinancials/converter/mobileprovider/FinancialsMobileProviderConverter.java @@ -60,7 +60,7 @@ public class FinancialsMobileProviderConverter implements Converter 99) { -- 2.39.5