summaryrefslogtreecommitdiff
path: root/odk/examples/java/DocumentHandling/DocumentSaver.java
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/java/DocumentHandling/DocumentSaver.java')
-rw-r--r--odk/examples/java/DocumentHandling/DocumentSaver.java4
1 files changed, 2 insertions, 2 deletions
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)";