Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2010-12-31 20:12:03 -0500
committerslewis2010-12-31 20:12:03 -0500
commitd3f92ff752f6ed795ef2a8e32e17db6d11e6fc01 (patch)
treea6ba62565e9454242c32f040f9186175e7bbb2fb /incubation
parentec57c3b6e3e7e17ccb5a40b8aaac53581eee22e0 (diff)
downloadorg.eclipse.ecf-d3f92ff752f6ed795ef2a8e32e17db6d11e6fc01.tar.gz
org.eclipse.ecf-d3f92ff752f6ed795ef2a8e32e17db6d11e6fc01.tar.xz
org.eclipse.ecf-d3f92ff752f6ed795ef2a8e32e17db6d11e6fc01.zip
rsa improvements
Diffstat (limited to 'incubation')
-rw-r--r--incubation/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/Discovery.java2
-rw-r--r--incubation/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/PropertiesUtil.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/incubation/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/Discovery.java b/incubation/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/Discovery.java
index 3a02c8dd3..647e43cae 100644
--- a/incubation/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/Discovery.java
+++ b/incubation/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/Discovery.java
@@ -570,7 +570,7 @@ public class Discovery {
matchingFilter));
}
return (EndpointListenerHolder[]) results
- .toArray(new EndpointListenerHolder[] {});
+ .toArray(new EndpointListenerHolder[results.size()]);
}
private String isMatch(EndpointDescription description, List filters) {
diff --git a/incubation/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/PropertiesUtil.java b/incubation/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/PropertiesUtil.java
index e5cd61a58..29ebb543a 100644
--- a/incubation/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/PropertiesUtil.java
+++ b/incubation/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/PropertiesUtil.java
@@ -145,7 +145,7 @@ public class PropertiesUtil {
results.addAll(Arrays.asList(extraIntents));
if (results.size() == 0)
return null;
- return (String[]) results.toArray(new String[] {});
+ return (String[]) results.toArray(new String[results.size()]);
}
public static List getStringPlusProperty(Map properties, String key) {

Back to the top