CPD Results
The following document contains the results of PMD's CPD
Duplications
File | Line |
---|
org/apache/geronimo/console/util/KernelManagementHelper.java | 151 |
org/apache/geronimo/console/util/KernelManagementHelper.java | 177 |
public ResourceAdapterModule[] getAdminObjectModules(J2EEServer server, String[] adminObjectInterfaces) {
List list = new ArrayList();
ResourceAdapterModule[] modules = server.getResourceAdapterModules();
outer:
for (int i = 0; i < modules.length; i++) {
ResourceAdapterModule module = modules[i];
ResourceAdapter[] adapters = module.getResourceAdapterInstances();
for (int j = 0; j < adapters.length; j++) {
ResourceAdapter adapter = adapters[j];
JCAResource[] resources = adapter.getJCAResourceImplementations();
for (int k = 0; k < resources.length; k++) {
JCAResource resource = resources[k]; |
File | Line |
---|
org/apache/geronimo/console/util/KernelManagementHelper.java | 250 |
org/apache/geronimo/console/util/KernelManagementHelper.java | 304 |
ResourceAdapterModule[] modules = application.getRAModules();
for (int i = 0; i < modules.length; i++) {
ResourceAdapterModule module = modules[i];
ResourceAdapter[] adapters = module.getResourceAdapterInstances();
for (int j = 0; j < adapters.length; j++) {
ResourceAdapter adapter = adapters[j];
JCAResource[] resources = adapter.getJCAResourceImplementations();
list.addAll(Arrays.asList(resources));
}
}
return (JCAResource[]) list.toArray(new JCAResource[list.size()]);
}
public JDBCResource[] getJDBCResources(J2EEApplication application) { |