java: use Boolean.valueOf instead of instantiating Boolean objects

Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
This commit is contained in:
Noel Grandin
2014-08-12 14:00:54 +02:00
parent 56ef5533fc
commit be1bb7b1cc
198 changed files with 402 additions and 402 deletions

View File

@@ -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);
}
}