From f5bf88532dabf340923967f95040a1f125bdbe9a Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Wed, 8 Dec 2021 12:51:14 +0100 Subject: [PATCH] fix: replaced bad boolean conversion calls --- src/main/java/pro/litvinovg/w2phtml/gui/EpubPanel.java | 4 ++-- src/main/java/pro/litvinovg/w2phtml/gui/HTMLPanel.java | 4 ++-- src/main/java/pro/litvinovg/w2phtml/gui/RDFPanel.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/pro/litvinovg/w2phtml/gui/EpubPanel.java b/src/main/java/pro/litvinovg/w2phtml/gui/EpubPanel.java index d3d7ca7..0a44daa 100644 --- a/src/main/java/pro/litvinovg/w2phtml/gui/EpubPanel.java +++ b/src/main/java/pro/litvinovg/w2phtml/gui/EpubPanel.java @@ -263,14 +263,14 @@ public class EpubPanel extends JPanel { JCheckBox addPagination(HashMap configuration, UIPreferences preferences) { cb_Pagination_1 = new JCheckBox(Localizer.get(LABEL_PAGINATION)); - cb_Pagination_1.setSelected(Boolean.getBoolean(preferences.get(PREF_PAGINATION))); + cb_Pagination_1.setSelected(Boolean.valueOf(preferences.get(PREF_PAGINATION))); configuration.put(ARG_PAGINATION, cb_Pagination_1); return cb_Pagination_1; } JCheckBox addConvertToPX(HashMap configuration, UIPreferences preferences) { cb_convertToPx_1 = new JCheckBox(Localizer.get(LABEL_CONVERT_TO_PX)); - cb_convertToPx_1.setSelected(Boolean.getBoolean(preferences.get(PREF_CONVERT_TO_PX))); + cb_convertToPx_1.setSelected(Boolean.valueOf(preferences.get(PREF_CONVERT_TO_PX))); configuration.put(ARG_CONVERT_TO_PX, cb_convertToPx_1); return cb_convertToPx_1; } diff --git a/src/main/java/pro/litvinovg/w2phtml/gui/HTMLPanel.java b/src/main/java/pro/litvinovg/w2phtml/gui/HTMLPanel.java index 0190592..88db5af 100644 --- a/src/main/java/pro/litvinovg/w2phtml/gui/HTMLPanel.java +++ b/src/main/java/pro/litvinovg/w2phtml/gui/HTMLPanel.java @@ -303,14 +303,14 @@ public class HTMLPanel extends JPanel{ JCheckBox addPagination(HashMap configuration, UIPreferences preferences) { cb_Pagination_1 = new JCheckBox(Localizer.get(LABEL_PAGINATION)); - cb_Pagination_1.setSelected(Boolean.getBoolean(preferences.get(PREF_PAGINATION))); + cb_Pagination_1.setSelected(Boolean.valueOf(preferences.get(PREF_PAGINATION))); configuration.put(ARG_PAGINATION, cb_Pagination_1); return cb_Pagination_1; } JCheckBox addConvertToPX(HashMap configuration, UIPreferences preferences) { cb_convertToPx_1 = new JCheckBox(Localizer.get(LABEL_CONVERT_TO_PX)); - cb_convertToPx_1.setSelected(Boolean.getBoolean(preferences.get(PREF_CONVERT_TO_PX))); + cb_convertToPx_1.setSelected(Boolean.valueOf(preferences.get(PREF_CONVERT_TO_PX))); configuration.put(ARG_CONVERT_TO_PX, cb_convertToPx_1); return cb_convertToPx_1; } diff --git a/src/main/java/pro/litvinovg/w2phtml/gui/RDFPanel.java b/src/main/java/pro/litvinovg/w2phtml/gui/RDFPanel.java index a38b4e1..aa63316 100644 --- a/src/main/java/pro/litvinovg/w2phtml/gui/RDFPanel.java +++ b/src/main/java/pro/litvinovg/w2phtml/gui/RDFPanel.java @@ -340,14 +340,14 @@ public class RDFPanel extends JPanel { JCheckBox addPagination(HashMap configuration, UIPreferences preferences) { cb_Pagination_1 = new JCheckBox(Localizer.get(LABEL_PAGINATION)); - cb_Pagination_1.setSelected(Boolean.getBoolean(preferences.get(PREF_PAGINATION))); + cb_Pagination_1.setSelected(Boolean.valueOf(preferences.get(PREF_PAGINATION))); configuration.put(ARG_PAGINATION, cb_Pagination_1); return cb_Pagination_1; } JCheckBox addConvertToPX(HashMap configuration, UIPreferences preferences) { cb_convertToPx_1 = new JCheckBox(Localizer.get(LABEL_CONVERT_TO_PX)); - cb_convertToPx_1.setSelected(Boolean.getBoolean(preferences.get(PREF_CONVERT_TO_PX))); + cb_convertToPx_1.setSelected(Boolean.valueOf(preferences.get(PREF_CONVERT_TO_PX))); configuration.put(ARG_CONVERT_TO_PX, cb_convertToPx_1); return cb_convertToPx_1; }