summaryrefslogtreecommitdiff
path: root/odk/examples/java/Text/StyleCreation.java
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/java/Text/StyleCreation.java')
-rw-r--r--odk/examples/java/Text/StyleCreation.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/odk/examples/java/Text/StyleCreation.java b/odk/examples/java/Text/StyleCreation.java
index 2861131aed0e..63f8825acd02 100644
--- a/odk/examples/java/Text/StyleCreation.java
+++ b/odk/examples/java/Text/StyleCreation.java
@@ -89,7 +89,7 @@ public class StyleCreation {
System.out.println( "create a PropertySet to set the properties for the new Paragraphstyle" );
// set some properties from the Paragraph style
- xPropertySet.setPropertyValue("CharFontName", new String( "Helvetica" ) );
+ xPropertySet.setPropertyValue("CharFontName", "Helvetica" );
System.out.println( "set name of the font to 'Helvetica'" );
xPropertySet.setPropertyValue("CharHeight", new Float( 36 ) );
@@ -129,7 +129,7 @@ public class StyleCreation {
// To run the sample with StarOffice 5.2 you'll have to change
// 'ParaStyleName' to 'ParaStyle' in the next line
xParagraphPropertySet.setPropertyValue("ParaStyleName",
- new String( "myheading" ) );
+ "myheading" );
System.out.println( "apply the new paragraph style");
}
catch( Exception e) {