summaryrefslogtreecommitdiff
path: root/odk/examples/java/DocumentHandling
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/java/DocumentHandling')
-rw-r--r--odk/examples/java/DocumentHandling/DocumentConverter.java4
-rw-r--r--odk/examples/java/DocumentHandling/DocumentSaver.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/odk/examples/java/DocumentHandling/DocumentConverter.java b/odk/examples/java/DocumentHandling/DocumentConverter.java
index aeb6f022d2ca..35002fb5de1b 100644
--- a/odk/examples/java/DocumentHandling/DocumentConverter.java
+++ b/odk/examples/java/DocumentHandling/DocumentConverter.java
@@ -103,7 +103,7 @@ public class DocumentConverter {
new com.sun.star.beans.PropertyValue[1];
propertyValues[0] = new com.sun.star.beans.PropertyValue();
propertyValues[0].Name = "Hidden";
- propertyValues[0].Value = new Boolean(true);
+ propertyValues[0].Value = Boolean.TRUE;
Object oDocToStore =
DocumentConverter.xCompLoader.loadComponentFromURL(
@@ -120,7 +120,7 @@ public class DocumentConverter {
// Setting the flag for overwriting
propertyValues[0] = new com.sun.star.beans.PropertyValue();
propertyValues[0].Name = "Overwrite";
- propertyValues[0].Value = new Boolean(true);
+ propertyValues[0].Value = Boolean.TRUE;
// Setting the filter name
propertyValues[1] = new com.sun.star.beans.PropertyValue();
propertyValues[1].Name = "FilterName";
diff --git a/odk/examples/java/DocumentHandling/DocumentSaver.java b/odk/examples/java/DocumentHandling/DocumentSaver.java
index 052b344a3d2e..42a99e91b5c9 100644
--- a/odk/examples/java/DocumentHandling/DocumentSaver.java
+++ b/odk/examples/java/DocumentHandling/DocumentSaver.java
@@ -86,7 +86,7 @@ public class DocumentSaver {
new com.sun.star.beans.PropertyValue[1];
propertyValue[0] = new com.sun.star.beans.PropertyValue();
propertyValue[0].Name = "Hidden";
- propertyValue[0].Value = new Boolean(true);
+ propertyValue[0].Value = Boolean.TRUE;
Object oDocToStore = xCompLoader.loadComponentFromURL(
sLoadUrl.toString(), "_blank", 0, propertyValue );
@@ -97,7 +97,7 @@ public class DocumentSaver {
propertyValue = new com.sun.star.beans.PropertyValue[ 2 ];
propertyValue[0] = new com.sun.star.beans.PropertyValue();
propertyValue[0].Name = "Overwrite";
- propertyValue[0].Value = new Boolean(true);
+ propertyValue[0].Value = Boolean.TRUE;
propertyValue[1] = new com.sun.star.beans.PropertyValue();
propertyValue[1].Name = "FilterName";
propertyValue[1].Value = "StarOffice XML (Writer)";