summaryrefslogtreecommitdiff
path: root/scripting/java/org
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 14:00:54 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:16 +0200
commitbe1bb7b1ccee28be616b89cc95e97d656e78bbe3 (patch)
treed67d16a68d1469b5096a27c743c4b0326a0c0ebe /scripting/java/org
parent56ef5533fc1bce2134721ae64d4d6c18a3526a7a (diff)
java: use Boolean.valueOf instead of instantiating Boolean objects
Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
Diffstat (limited to 'scripting/java/org')
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettings.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettings.java b/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettings.java
index 1b0283e96678..a56cdfa97779 100644
--- a/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettings.java
+++ b/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettings.java
@@ -91,7 +91,7 @@ public class OfficeSettings extends SystemOption {
}
public void setWarnBeforeDocDeploy(boolean value) {
- putProperty(WARN_BEFORE_DOC_DEPLOY, new Boolean(value), true);
+ putProperty(WARN_BEFORE_DOC_DEPLOY, Boolean.valueOf(value), true);
}
public boolean getWarnBeforeParcelDelete() {
@@ -99,7 +99,7 @@ public class OfficeSettings extends SystemOption {
}
public void setWarnBeforeParcelDelete(boolean value) {
- putProperty(WARN_BEFORE_PARCEL_DELETE, new Boolean(value), true);
+ putProperty(WARN_BEFORE_PARCEL_DELETE, Boolean.valueOf(value), true);
}
public boolean getWarnAfterDirDeploy() {
@@ -107,7 +107,7 @@ public class OfficeSettings extends SystemOption {
}
public void setWarnAfterDirDeploy(boolean value) {
- putProperty(WARN_AFTER_DIR_DEPLOY, new Boolean(value), true);
+ putProperty(WARN_AFTER_DIR_DEPLOY, Boolean.valueOf(value), true);
}
public boolean getWarnBeforeMount() {
@@ -115,6 +115,6 @@ public class OfficeSettings extends SystemOption {
}
public void setWarnBeforeMount(boolean value) {
- putProperty(WARN_BEFORE_MOUNT, new Boolean(value), true);
+ putProperty(WARN_BEFORE_MOUNT, Boolean.valueOf(value), true);
}
}