Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Aniszczyk2008-08-29 13:15:31 -0400
committerChris Aniszczyk2008-08-29 13:15:31 -0400
commita909e9124bd64f083c21dc6317def0998c406876 (patch)
tree62e081f932b99b1cef8b72b31a934448c13b1c2a /picasso/plugins/org.eclipse.pde.picasso
parent82aac9f51e174b14e85040ab776d4fb819f91781 (diff)
downloadeclipse.pde.incubator-a909e9124bd64f083c21dc6317def0998c406876.tar.gz
eclipse.pde.incubator-a909e9124bd64f083c21dc6317def0998c406876.tar.xz
eclipse.pde.incubator-a909e9124bd64f083c21dc6317def0998c406876.zip
fix to be J2SE 1.5 friendly!
Diffstat (limited to 'picasso/plugins/org.eclipse.pde.picasso')
-rw-r--r--picasso/plugins/org.eclipse.pde.picasso/src/org/eclipse/pde/internal/picasso/Options.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/picasso/plugins/org.eclipse.pde.picasso/src/org/eclipse/pde/internal/picasso/Options.java b/picasso/plugins/org.eclipse.pde.picasso/src/org/eclipse/pde/internal/picasso/Options.java
index c1ef6ef..df92c4e 100644
--- a/picasso/plugins/org.eclipse.pde.picasso/src/org/eclipse/pde/internal/picasso/Options.java
+++ b/picasso/plugins/org.eclipse.pde.picasso/src/org/eclipse/pde/internal/picasso/Options.java
@@ -33,7 +33,7 @@ public class Options extends Object {
private boolean getBooleanOption(String option, boolean defaultValue) {
String value = getOption(option);
- boolean result = value != null ? Boolean.parseBoolean(value) : defaultValue;
+ boolean result = value != null ? Boolean.valueOf(value).booleanValue() : defaultValue;
return result;
}
@@ -43,10 +43,10 @@ public class Options extends Object {
boolean result;
if (value != null) {
- result = Boolean.parseBoolean(value);
+ result = Boolean.valueOf(value).booleanValue();
} else {
String propertyValue = properties.getProperty(option);
- result = propertyValue != null ? Boolean.parseBoolean(propertyValue) : defaultValue;
+ result = propertyValue != null ? Boolean.valueOf(propertyValue).booleanValue() : defaultValue;
}
return result;

Back to the top