Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-06-09 16:11:46 +0000
committerEike Stepper2012-06-09 16:11:46 +0000
commit522e5aa5604404f0db0dbc0318bf7b00b5b46104 (patch)
tree03d1216da6827894fcade3aedee3ef2afe1d56cf /plugins/org.eclipse.emf.cdo.admin
parent35d0aa26fb6f9142eaebec5a0240798b78a314e5 (diff)
downloadcdo-522e5aa5604404f0db0dbc0318bf7b00b5b46104.tar.gz
cdo-522e5aa5604404f0db0dbc0318bf7b00b5b46104.tar.xz
cdo-522e5aa5604404f0db0dbc0318bf7b00b5b46104.zip
[380629] Design a default Security model
https://bugs.eclipse.org/bugs/show_bug.cgi?id=380629
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.admin')
-rw-r--r--plugins/org.eclipse.emf.cdo.admin/src/org/eclipse/emf/cdo/internal/admin/CDOAdminClientImpl.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.admin/src/org/eclipse/emf/cdo/internal/admin/CDOAdminClientImpl.java b/plugins/org.eclipse.emf.cdo.admin/src/org/eclipse/emf/cdo/internal/admin/CDOAdminClientImpl.java
index 95eae502c5..6ada0c08ee 100644
--- a/plugins/org.eclipse.emf.cdo.admin/src/org/eclipse/emf/cdo/internal/admin/CDOAdminClientImpl.java
+++ b/plugins/org.eclipse.emf.cdo.admin/src/org/eclipse/emf/cdo/internal/admin/CDOAdminClientImpl.java
@@ -14,6 +14,7 @@ import org.eclipse.emf.cdo.admin.CDOAdminClient;
import org.eclipse.emf.cdo.admin.CDOAdminClientRepository;
import org.eclipse.emf.cdo.common.CDOCommonRepository.State;
import org.eclipse.emf.cdo.common.CDOCommonRepository.Type;
+import org.eclipse.emf.cdo.common.admin.CDOAdminRepository;
import org.eclipse.emf.cdo.internal.admin.bundle.OM;
import org.eclipse.emf.cdo.internal.admin.protocol.CDOAdminClientProtocol;
import org.eclipse.emf.cdo.spi.common.admin.AbstractCDOAdmin;
@@ -28,6 +29,7 @@ import org.eclipse.net4j.util.lifecycle.LifecycleUtil;
import org.eclipse.spi.net4j.ConnectorFactory;
+import java.util.Arrays;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ExecutorService;
@@ -97,7 +99,8 @@ public class CDOAdminClientImpl extends AbstractCDOAdmin implements CDOAdminClie
@Override
public CDOAdminClientRepository[] getRepositories()
{
- return (CDOAdminClientRepository[])super.getRepositories();
+ CDOAdminRepository[] repositories = super.getRepositories();
+ return Arrays.copyOf(repositories, repositories.length, CDOAdminClientRepository[].class);
}
@Override

Back to the top