Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-11-29 16:01:16 +0000
committerslewis2007-11-29 16:01:16 +0000
commitd12f0ef970bb8f330287f9e67e250dc007229b8e (patch)
treed4e94fef1a5262e9d7e9a6439617b06024e67719 /providers/bundles/org.eclipse.ecf.provider.jmdns
parent6454c9bdb949ae00eb84990246bf2b9f1fb57586 (diff)
downloadorg.eclipse.ecf-d12f0ef970bb8f330287f9e67e250dc007229b8e.tar.gz
org.eclipse.ecf-d12f0ef970bb8f330287f9e67e250dc007229b8e.tar.xz
org.eclipse.ecf-d12f0ef970bb8f330287f9e67e250dc007229b8e.zip
Replaced use of split (not in EE)
Diffstat (limited to 'providers/bundles/org.eclipse.ecf.provider.jmdns')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/identity/JMDNSServiceTypeID.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/identity/JMDNSServiceTypeID.java b/providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/identity/JMDNSServiceTypeID.java
index e4d532942..c34b28d9c 100644
--- a/providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/identity/JMDNSServiceTypeID.java
+++ b/providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/identity/JMDNSServiceTypeID.java
@@ -14,6 +14,7 @@ package org.eclipse.ecf.provider.jmdns.identity;
import org.eclipse.core.runtime.Assert;
import org.eclipse.ecf.core.identity.IDCreateException;
import org.eclipse.ecf.core.identity.Namespace;
+import org.eclipse.ecf.core.util.StringUtils;
import org.eclipse.ecf.discovery.identity.ServiceTypeID;
import org.eclipse.ecf.internal.provider.jmdns.Messages;
import org.eclipse.osgi.util.NLS;
@@ -48,7 +49,7 @@ public class JMDNSServiceTypeID extends ServiceTypeID {
scopes = new String[] {type.substring(protoEnd + 1, type.length() - 1)};
String servicesString = type.substring(0, protoBegin - 1);
servicesString = servicesString.substring(1);
- services = servicesString.split("._"); //$NON-NLS-1$
+ services = StringUtils.split(servicesString, "_"); //$NON-NLS-1$
}
/* (non-Javadoc)

Back to the top