summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Liebig2008-02-04 05:45:36 (EST)
committerStefan Liebig2008-02-04 05:45:36 (EST)
commit8ed8aa43ab56b5059754a23bcffa263f6620053a (patch)
tree4d0cedc0828b56316946487123744d438b0cce19
parent198775cbc4d17c990915c373d75629e955d7a41c (diff)
downloadorg.eclipse.riena-8ed8aa43ab56b5059754a23bcffa263f6620053a.zip
org.eclipse.riena-8ed8aa43ab56b5059754a23bcffa263f6620053a.tar.gz
org.eclipse.riena-8ed8aa43ab56b5059754a23bcffa263f6620053a.tar.bz2
avoid reallocating
-rw-r--r--org.eclipse.riena.core/src/org/eclipse/riena/core/service/ServiceInjector.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.riena.core/src/org/eclipse/riena/core/service/ServiceInjector.java b/org.eclipse.riena.core/src/org/eclipse/riena/core/service/ServiceInjector.java
index 978e564..14b939c 100644
--- a/org.eclipse.riena.core/src/org/eclipse/riena/core/service/ServiceInjector.java
+++ b/org.eclipse.riena.core/src/org/eclipse/riena/core/service/ServiceInjector.java
@@ -156,7 +156,7 @@ public class ServiceInjector {
// copy list to array so that I iterate through array and still
// remove entries from List concurrently
- ServiceReference[] serviceRefs = trackedServiceRefs.toArray(new ServiceReference[0]);
+ ServiceReference[] serviceRefs = trackedServiceRefs.toArray(new ServiceReference[trackedServiceRefs.size()]);
for (ServiceReference serviceRef : serviceRefs) {
unbind(serviceRef);
}