fix: replaced bad boolean conversion calls

This commit is contained in:
Georgy Litvinov 2021-12-08 12:51:14 +01:00
parent 1454d68b4a
commit f5bf88532d
3 changed files with 6 additions and 6 deletions

View file

@ -263,14 +263,14 @@ public class EpubPanel extends JPanel {
JCheckBox addPagination(HashMap<String, Component> configuration, UIPreferences preferences) { JCheckBox addPagination(HashMap<String, Component> configuration, UIPreferences preferences) {
cb_Pagination_1 = new JCheckBox(Localizer.get(LABEL_PAGINATION)); 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); configuration.put(ARG_PAGINATION, cb_Pagination_1);
return cb_Pagination_1; return cb_Pagination_1;
} }
JCheckBox addConvertToPX(HashMap<String, Component> configuration, UIPreferences preferences) { JCheckBox addConvertToPX(HashMap<String, Component> configuration, UIPreferences preferences) {
cb_convertToPx_1 = new JCheckBox(Localizer.get(LABEL_CONVERT_TO_PX)); 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); configuration.put(ARG_CONVERT_TO_PX, cb_convertToPx_1);
return cb_convertToPx_1; return cb_convertToPx_1;
} }

View file

@ -303,14 +303,14 @@ public class HTMLPanel extends JPanel{
JCheckBox addPagination(HashMap<String, Component> configuration, UIPreferences preferences) { JCheckBox addPagination(HashMap<String, Component> configuration, UIPreferences preferences) {
cb_Pagination_1 = new JCheckBox(Localizer.get(LABEL_PAGINATION)); 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); configuration.put(ARG_PAGINATION, cb_Pagination_1);
return cb_Pagination_1; return cb_Pagination_1;
} }
JCheckBox addConvertToPX(HashMap<String, Component> configuration, UIPreferences preferences) { JCheckBox addConvertToPX(HashMap<String, Component> configuration, UIPreferences preferences) {
cb_convertToPx_1 = new JCheckBox(Localizer.get(LABEL_CONVERT_TO_PX)); 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); configuration.put(ARG_CONVERT_TO_PX, cb_convertToPx_1);
return cb_convertToPx_1; return cb_convertToPx_1;
} }

View file

@ -340,14 +340,14 @@ public class RDFPanel extends JPanel {
JCheckBox addPagination(HashMap<String, Component> configuration, UIPreferences preferences) { JCheckBox addPagination(HashMap<String, Component> configuration, UIPreferences preferences) {
cb_Pagination_1 = new JCheckBox(Localizer.get(LABEL_PAGINATION)); 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); configuration.put(ARG_PAGINATION, cb_Pagination_1);
return cb_Pagination_1; return cb_Pagination_1;
} }
JCheckBox addConvertToPX(HashMap<String, Component> configuration, UIPreferences preferences) { JCheckBox addConvertToPX(HashMap<String, Component> configuration, UIPreferences preferences) {
cb_convertToPx_1 = new JCheckBox(Localizer.get(LABEL_CONVERT_TO_PX)); 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); configuration.put(ARG_CONVERT_TO_PX, cb_convertToPx_1);
return cb_convertToPx_1; return cb_convertToPx_1;
} }