Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/osgi
diff options
context:
space:
mode:
authorslewis2011-04-03 23:49:25 +0000
committerslewis2011-04-03 23:49:25 +0000
commit9fc49779d5a422c1abeaf586b2f8d862dafe018f (patch)
treef879e4df9884bd217752fa8d820c5a46422a279d /osgi
parent9bc556b30964a593b86cc8c55e804f2c5570e9df (diff)
downloadorg.eclipse.ecf-9fc49779d5a422c1abeaf586b2f8d862dafe018f.tar.gz
org.eclipse.ecf-9fc49779d5a422c1abeaf586b2f8d862dafe018f.tar.xz
org.eclipse.ecf-9fc49779d5a422c1abeaf586b2f8d862dafe018f.zip
Fix for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=341719
Diffstat (limited to 'osgi')
-rw-r--r--osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/EndpointDescriptionParser.java21
1 files changed, 7 insertions, 14 deletions
diff --git a/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/EndpointDescriptionParser.java b/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/EndpointDescriptionParser.java
index 9783f6f3d..417317d50 100644
--- a/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/EndpointDescriptionParser.java
+++ b/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/EndpointDescriptionParser.java
@@ -318,29 +318,23 @@ public class EndpointDescriptionParser {
class EndpointDescriptionsHandler extends RootHandler {
private List<EndpointDescription> endpointDescriptions = new ArrayList<EndpointDescription>();
- private EndpointDescriptionHandler endpointDescriptionHandler;
protected void handleRootAttributes(Attributes attributes) {
}
public void startElement(String name, Attributes attributes)
throws SAXException {
- if (ENDPOINT_DESCRIPTION.equals(name)) {
- if (endpointDescriptionHandler == null) {
- endpointDescriptionHandler = new EndpointDescriptionHandler(
- this, attributes, endpointDescriptions);
- } else
- duplicateElement(this, name, attributes);
- } else
+ if (ENDPOINT_DESCRIPTION.equals(name))
+ new EndpointDescriptionHandler(
+ this, attributes, endpointDescriptions);
+ else
invalidElement(name, attributes);
}
public void endElement(String namespaceURI, String localName,
String qName) {
- if (elementHandled.equals(localName)) {
- endpointDescriptionHandler = null;
+ if (elementHandled.equals(localName))
super.endElement(namespaceURI, localName, qName);
- }
}
public List<EndpointDescription> getEndpointDescriptions() {
@@ -363,15 +357,14 @@ public class EndpointDescriptionParser {
public void startElement(String name, Attributes attributes)
throws SAXException {
- if (ENDPOINT_PROPERTY.equals(name)) {
+ if (ENDPOINT_PROPERTY.equals(name))
new EndpointPropertyHandler(this, attributes, properties);
- }
}
public void endElement(String namespaceURI, String localName,
String qName) {
if (elementHandled.equals(localName)) {
- this.descriptions.add(new EndpointDescription(properties));
+ descriptions.add(new EndpointDescription(properties));
super.endElement(namespaceURI, localName, qName);
}
}

Back to the top