Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2015-07-25 21:42:01 +0000
committerslewis2015-07-25 21:42:01 +0000
commit01ae1d57e71c4fe598024503b4e9e535ba960a8b (patch)
tree8a20fe4f5593db81e202fc19024e99b5ef67b803
parent4cfef915a5d4c65d6758d58d7f41fd47955df76a (diff)
downloadorg.eclipse.ecf-01ae1d57e71c4fe598024503b4e9e535ba960a8b.tar.gz
org.eclipse.ecf-01ae1d57e71c4fe598024503b4e9e535ba960a8b.tar.xz
org.eclipse.ecf-01ae1d57e71c4fe598024503b4e9e535ba960a8b.zip
Improve TimeService Host example code.
-rw-r--r--examples/bundles/com.mycorp.examples.timeservice.host/src/com/mycorp/examples/timeservice/host/Activator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/bundles/com.mycorp.examples.timeservice.host/src/com/mycorp/examples/timeservice/host/Activator.java b/examples/bundles/com.mycorp.examples.timeservice.host/src/com/mycorp/examples/timeservice/host/Activator.java
index 6aa327e37..33721b3d0 100644
--- a/examples/bundles/com.mycorp.examples.timeservice.host/src/com/mycorp/examples/timeservice/host/Activator.java
+++ b/examples/bundles/com.mycorp.examples.timeservice.host/src/com/mycorp/examples/timeservice/host/Activator.java
@@ -80,11 +80,11 @@ public class Activator implements BundleActivator {
result.put(SERVICE_EXPORTED_CONFIGS, config);
// add any config properties. config properties start with
// the config name '.' property
- for (Object k : result.keySet()) {
+ for (Object k : props.keySet()) {
if (k instanceof String) {
String key = (String) k;
if (key.startsWith(config))
- result.put(key, result.get(key));
+ result.put(key, props.get(key));
}
}
return result;

Back to the top