summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Config/ConfigExamples.java
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/DevelopersGuide/Config/ConfigExamples.java')
-rw-r--r--odk/examples/DevelopersGuide/Config/ConfigExamples.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/odk/examples/DevelopersGuide/Config/ConfigExamples.java b/odk/examples/DevelopersGuide/Config/ConfigExamples.java
index 6c070476e00b..687fb4c8cd0e 100644
--- a/odk/examples/DevelopersGuide/Config/ConfigExamples.java
+++ b/odk/examples/DevelopersGuide/Config/ConfigExamples.java
@@ -725,7 +725,7 @@ public class ConfigExamples
Boolean bOldValue = (Boolean)xHPS.getHierarchicalPropertyValue(sSetting);
- Boolean bNewValue = new Boolean( ! bOldValue.booleanValue() );
+ Boolean bNewValue = Boolean.valueOf( ! bOldValue.booleanValue() );
xHPS.setHierarchicalPropertyValue(sSetting,bNewValue);
}
@@ -767,7 +767,7 @@ public class ConfigExamples
boolean bNew = ! bOld;
System.out.println("Replacing boolean value: " + aItemNames [i]);
- aReplace.replaceByName( aItemNames [i], new Boolean( bNew ) );
+ aReplace.replaceByName( aItemNames [i], Boolean.valueOf( bNew ) );
}
}
@@ -866,7 +866,7 @@ public class ConfigExamples
String sSampleDataSourceURL = "sdbc:flat:$(userurl)/database/SampleTextDatabase";
com.sun.star.beans.NamedValue [] aSettings = new com.sun.star.beans.NamedValue [2];
- aSettings[0] = new com.sun.star.beans.NamedValue("HeaderLine",new Boolean(true));
+ aSettings[0] = new com.sun.star.beans.NamedValue("HeaderLine",Boolean.TRUE);
aSettings[1] = new com.sun.star.beans.NamedValue("FieldDelimiter",";");
String [] aTableFilter = new String[2];
@@ -897,7 +897,7 @@ public class ConfigExamples
xDataSourceProperties.setPropertyValue("URL", sDataSourceURL );
xDataSourceProperties.setPropertyValue("User", sUser );
- xDataSourceProperties.setPropertyValue("IsPasswordRequired", new Boolean( bNeedsPassword ) );
+ xDataSourceProperties.setPropertyValue("IsPasswordRequired", Boolean.valueOf( bNeedsPassword ) );
xDataSourceProperties.setPropertyValue("LoginTimeout", new Integer( nTimeout ) );
if ( aTableFilter != null )