summaryrefslogtreecommitdiff
path: root/odk/examples/java/Text/SWriter.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 15:09:06 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:17 +0200
commitff0ad0493ee1729c726587f667761b04101d774c (patch)
tree8c0f97e8740fbdb2ed0cdbfc5d99d82cae8f7df6 /odk/examples/java/Text/SWriter.java
parentbe1bb7b1ccee28be616b89cc95e97d656e78bbe3 (diff)
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'odk/examples/java/Text/SWriter.java')
-rw-r--r--odk/examples/java/Text/SWriter.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/odk/examples/java/Text/SWriter.java b/odk/examples/java/Text/SWriter.java
index 393edc1c01d5..4e65ae288fa8 100644
--- a/odk/examples/java/Text/SWriter.java
+++ b/odk/examples/java/Text/SWriter.java
@@ -156,9 +156,9 @@ public class SWriter {
// Change the BackColor
try {
xTTPS.setPropertyValue("BackTransparent", Boolean.FALSE);
- xTTPS.setPropertyValue("BackColor",new Integer(13421823));
+ xTTPS.setPropertyValue("BackColor",Integer.valueOf(13421823));
xTTRowPS.setPropertyValue("BackTransparent", Boolean.FALSE);
- xTTRowPS.setPropertyValue("BackColor",new Integer(6710932));
+ xTTRowPS.setPropertyValue("BackColor",Integer.valueOf(6710932));
} catch (Exception e) {
System.err.println("Couldn't change the color " + e);
@@ -205,7 +205,7 @@ public class SWriter {
// Change the CharColor and add a Shadow
try {
- xTCPS.setPropertyValue("CharColor",new Integer(255));
+ xTCPS.setPropertyValue("CharColor",Integer.valueOf(255));
xTCPS.setPropertyValue("CharShadowed", Boolean.TRUE);
} catch (Exception e) {
System.err.println("Couldn't change the color " + e);
@@ -315,7 +315,7 @@ public class SWriter {
// Change the CharColor and add a Shadow
try {
- xTCPS.setPropertyValue("CharColor",new Integer(65536));
+ xTCPS.setPropertyValue("CharColor",Integer.valueOf(65536));
xTCPS.setPropertyValue("CharShadowed", Boolean.FALSE);
} catch (Exception e) {
System.err.println("Couldn't change the color " + e);
@@ -374,7 +374,7 @@ public class SWriter {
com.sun.star.beans.XPropertySet xTPS = UnoRuntime.queryInterface(com.sun.star.beans.XPropertySet.class, xTC);
try {
- xTPS.setPropertyValue("CharColor",new Integer(16777215));
+ xTPS.setPropertyValue("CharColor",Integer.valueOf(16777215));
} catch (Exception e) {
System.err.println(" Exception " + e);
e.printStackTrace(System.err);