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

@ -155,9 +155,9 @@ public class SWriter {
// Change the BackColor
try {
xTTPS.setPropertyValue("BackTransparent", new Boolean(false));
xTTPS.setPropertyValue("BackTransparent", Boolean.FALSE);
xTTPS.setPropertyValue("BackColor",new Integer(13421823));
xTTRowPS.setPropertyValue("BackTransparent", new Boolean(false));
xTTRowPS.setPropertyValue("BackTransparent", Boolean.FALSE);
xTTRowPS.setPropertyValue("BackColor",new Integer(6710932));
} catch (Exception e) {
@ -206,7 +206,7 @@ public class SWriter {
// Change the CharColor and add a Shadow
try {
xTCPS.setPropertyValue("CharColor",new Integer(255));
xTCPS.setPropertyValue("CharShadowed", new Boolean(true));
xTCPS.setPropertyValue("CharShadowed", Boolean.TRUE);
} catch (Exception e) {
System.err.println("Couldn't change the color " + e);
e.printStackTrace(System.err);
@ -316,7 +316,7 @@ public class SWriter {
// Change the CharColor and add a Shadow
try {
xTCPS.setPropertyValue("CharColor",new Integer(65536));
xTCPS.setPropertyValue("CharShadowed", new Boolean(false));
xTCPS.setPropertyValue("CharShadowed", Boolean.FALSE);
} catch (Exception e) {
System.err.println("Couldn't change the color " + e);
e.printStackTrace(System.err);