PMD Results

The following document contains the results of PMD 4.2.2.

Files

org/springframework/osgi/compendium/config/ManagedServiceFactoryDefinitionParser.java

Violation Line
Avoid empty if statements 74
An empty statement (semicolon) not part of a loop 74

org/springframework/osgi/config/BundleBeanDefinitionParser.java

Violation Line
Avoid unused method parameters such as 'parent'. 60 - 62

org/springframework/osgi/config/ServiceBeanDefinitionParser.java

Violation Line
Avoid empty if statements 83
An empty statement (semicolon) not part of a loop 83
Avoid empty if statements 86
An empty statement (semicolon) not part of a loop 86

org/springframework/osgi/config/internal/adapter/OsgiServiceLifecycleListenerAdapter.java

Violation Line
These nested if statements could be combined 105 - 106

org/springframework/osgi/config/internal/adapter/OsgiServiceRegistrationListenerAdapter.java

Violation Line
These nested if statements could be combined 99 - 100
These nested if statements could be combined 155 - 157

org/springframework/osgi/context/internal/classloader/CachingAopClassLoaderFactory.java

Violation Line
Avoid empty catch blocks 49 - 51

org/springframework/osgi/context/internal/classloader/ChainedClassLoader.java

Violation Line
Avoid empty catch blocks 197 - 199

org/springframework/osgi/context/support/AbstractDelegatedExecutionApplicationContext.java

Violation Line
These nested if statements could be combined 121 - 124

org/springframework/osgi/context/support/OsgiBundleXmlApplicationContext.java

Violation Line
Avoid unused imports such as 'org.osgi.framework.Bundle' 24
Avoid unused imports such as 'org.osgi.framework.ServiceReference' 26
Avoid unused imports such as 'org.osgi.service.packageadmin.PackageAdmin' 27
Overriding method merely calls super 253 - 255

org/springframework/osgi/context/support/OsgiPropertyEditorRegistrar.java

Violation Line
Avoid empty catch blocks 70 - 71

org/springframework/osgi/service/dependency/internal/DefaultMandatoryDependencyManager.java

Violation Line
Avoid unused imports such as 'org.springframework.osgi.service.importer.support.Cardinality' 39

org/springframework/osgi/service/exporter/support/AbstractOsgiServiceExporter.java

Violation Line
Avoid empty catch blocks 65 - 68

org/springframework/osgi/service/exporter/support/OsgiServiceFactoryBean.java

Violation Line
Avoid unused private fields such as 'controller'. 142

org/springframework/osgi/service/exporter/support/internal/support/ServiceRegistrationDecorator.java

Violation Line
Avoid empty catch blocks 74 - 76

org/springframework/osgi/service/importer/DefaultOsgiServiceDependency.java

Violation Line
Avoid unused imports such as 'org.springframework.util.Assert' 20

org/springframework/osgi/service/importer/support/OsgiServiceCollectionProxyFactoryBean.java

Violation Line
Avoid unused private fields such as 'controller'. 152
Overriding method merely calls super 187 - 189

org/springframework/osgi/service/importer/support/OsgiServiceProxyFactoryBean.java

Violation Line
Avoid unused private fields such as 'controller'. 106
Overriding method merely calls super 160 - 162

org/springframework/osgi/service/importer/support/internal/aop/ServiceDynamicInterceptor.java

Violation Line
These nested if statements could be combined 177 - 181
These nested if statements could be combined 289 - 292

org/springframework/osgi/service/importer/support/internal/collection/DynamicList.java

Violation Line
Overriding method merely calls super 255 - 257

org/springframework/osgi/service/importer/support/internal/collection/OsgiServiceCollection.java

Violation Line
Avoid unused method parameters such as 'ppc'. 336 - 338

org/springframework/osgi/util/DebugUtils.java

Violation Line
Avoid unused private fields such as 'DOUBLE_QUOTE'. 55
Avoid unused private fields such as 'PACKAGE_PATTERN'. 63
These nested if statements could be combined 179 - 183
Avoid empty catch blocks 254 - 256
Avoid empty catch blocks 292 - 294
This for loop could be simplified to a while loop 325 - 330
Avoid unused local variables such as 'highEqualTo'. 381
Avoid unused local variables such as 'highLessThen'. 382
Avoid unused local variables such as 'right'. 390

org/springframework/osgi/util/OsgiListenerUtils.java

Violation Line
Avoid empty catch blocks 193 - 195

org/springframework/osgi/util/OsgiServiceReferenceUtils.java

Violation Line
Avoid unused private fields such as 'log'. 51

org/springframework/osgi/util/OsgiServiceUtils.java

Violation Line
Avoid empty catch blocks 45 - 46

org/springframework/osgi/util/internal/ClassUtils.java

Violation Line
Avoid empty while statements 537 - 538
These nested if statements could be combined 551 - 556
Avoid empty catch blocks 613 - 615
These nested if statements could be combined 662 - 664

org/springframework/osgi/util/internal/PrivilegedUtils.java

Violation Line
Avoid returning from a finally block 92
Avoid returning from a finally block 134