ActiveMQ

##### Project Documentation

- About ActiveMQ
- Project Info
- Project Reports
  - Metrics
  - Clover
  - Change Log
  - File Activity
  - Developer Activity
  - JavaDocs
  - JavaDoc Report
  - Source Xref
  - Test Xref
  - Unit Tests
  - Task List
  - PMD Report
- Development Process

## PMD Results

The following document contains the results of PMD.

## Summary

Files | Errors
--- | ---
55 | 118

## Files

Files | Violations
--- | ---
org/codehaus/activemq/ActiveMQConnection.java | 1
org/codehaus/activemq/ActiveMQConnectionMetaData.java | 1
org/codehaus/activemq/ActiveMQMessageConsumer.java | 2
org/codehaus/activemq/ActiveMQMessageProducer.java | 1
org/codehaus/activemq/ActiveMQMessageTransformation.java | 2
org/codehaus/activemq/ActiveMQQueueSender.java | 3
org/codehaus/activemq/ActiveMQSession.java | 1
org/codehaus/activemq/ActiveMQTopicPublisher.java | 5
org/codehaus/activemq/ActiveMQXAConnection.java | 1
org/codehaus/activemq/ActiveMQXASession.java | 3
org/codehaus/activemq/broker/BrokerConnector.java | 1
org/codehaus/activemq/broker/BrokerContainer.java | 1
org/codehaus/activemq/broker/impl/BrokerClientImpl.java | 3
org/codehaus/activemq/broker/impl/BrokerConnectorImpl.java | 1
org/codehaus/activemq/broker/impl/BrokerContainerImpl.java | 2
org/codehaus/activemq/message/ActiveMQStreamMessage.java | 6
org/codehaus/activemq/message/util/DataContainer.java | 2
org/codehaus/activemq/message/util/MemoryBoundedQueue.java | 1
org/codehaus/activemq/message/util/MemoryBoundedQueueManager.java | 1
org/codehaus/activemq/ra/ActiveMQBaseEndpointWorker.java | 3
org/codehaus/activemq/selector/SelectorParser.java | 3
org/codehaus/activemq/selector/SelectorParserTokenManager.java | 5
org/codehaus/activemq/selector/TokenMgrError.java | 1
org/codehaus/activemq/service/boundedvm/TransientTopicBoundedMessageContainer.java | 1
org/codehaus/activemq/service/impl/AbstractTransaction.java | 1
org/codehaus/activemq/service/impl/DurableQueueMessageContainer.java | 1
org/codehaus/activemq/service/impl/DurableTopicMessageContainer.java | 1
org/codehaus/activemq/store/bdb/BDbPersistenceAdapter.java | 1
org/codehaus/activemq/store/bdbn/BDbMessageStore.java | 1
org/codehaus/activemq/store/jdbc/JDBCMessageStore.java | 1
org/codehaus/activemq/store/jdbc/JDBCPersistenceAdapter.java | 4
org/codehaus/activemq/store/jdbc/JDBCPreparedTransactionStore.java | 1
org/codehaus/activemq/store/jdbc/JDBCTopicMessageStore.java | 1
org/codehaus/activemq/store/jdbc/adapter/BlobJDBCAdapter.java | 4
org/codehaus/activemq/store/jdbc/adapter/DefaultJDBCAdapter.java | 22
org/codehaus/activemq/store/jdbc/adapter/DefaultStatementProvider.java | 5
org/codehaus/activemq/store/vm/VMMessageStore.java | 1
org/codehaus/activemq/transport/gnet/GTransportChannel.java | 1
org/codehaus/activemq/transport/jgroups/JGroupsTransportChannel.java | 1
org/codehaus/activemq/transport/jgroups/JGroupsTransportServerChannel.java | 1
org/codehaus/activemq/transport/jrms/JRMSTransportServerChannel.java | 1
org/codehaus/activemq/transport/jxta/JxtaTransportChannel.java | 1
org/codehaus/activemq/transport/jxta/JxtaTransportServerChannel.java | 1
org/codehaus/activemq/transport/multicast/MulticastTransportChannel.java | 1
org/codehaus/activemq/transport/multicast/MulticastTransportServerChannel.java | 1
org/codehaus/activemq/transport/reliable/ReliableTransportChannel.java | 3
org/codehaus/activemq/transport/tcp/TcpTransportChannel.java | 3
org/codehaus/activemq/transport/udp/UdpTransportChannel.java | 2
org/codehaus/activemq/transport/udp/UdpTransportServerChannel.java | 1
org/codehaus/activemq/transport/vm/VmTransportChannel.java | 1
org/codehaus/activemq/transport/vm/VmTransportServerChannel.java | 1
org/codehaus/activemq/util/BitArrayBin.java | 1
org/codehaus/activemq/util/ExceptionTemplate.java | 1
org/codehaus/activemq/util/FactoryFinder.java | 1
org/codehaus/activemq/web/ConnectionManager.java | 1

### org/codehaus/activemq/ActiveMQConnection.java

Violation | Line
--- | ---
Avoid duplicate imports such as 'javax.jms.IllegalStateException' | 48

### org/codehaus/activemq/ActiveMQConnectionMetaData.java

Violation | Line
--- | ---
Avoid unused imports such as 'JMSException' | 21

### org/codehaus/activemq/ActiveMQMessageConsumer.java

Violation | Line
--- | ---
Avoid empty catch blocks | 308
Avoid empty catch blocks | 310

### org/codehaus/activemq/ActiveMQMessageProducer.java

Violation | Line
--- | ---
Avoid unused imports such as 'MessageFormatException' | 31

### org/codehaus/activemq/ActiveMQMessageTransformation.java

Violation | Line
--- | ---
Avoid empty catch blocks | 103
Avoid empty catch blocks | 117

### org/codehaus/activemq/ActiveMQQueueSender.java

Violation | Line
--- | ---
Avoid unused imports such as 'Destination' | 23
Avoid unused imports such as 'InvalidDestinationException' | 24
Avoid unused imports such as 'MessageFormatException' | 27

### org/codehaus/activemq/ActiveMQSession.java

Violation | Line
--- | ---
Avoid duplicate imports such as 'javax.jms.IllegalStateException' | 31

### org/codehaus/activemq/ActiveMQTopicPublisher.java

Violation | Line
--- | ---
Avoid unused imports such as 'Destination' | 23
Avoid unused imports such as 'InvalidDestinationException' | 24
Avoid unused imports such as 'MessageFormatException' | 27
Avoid unused imports such as 'Session' | 28
Avoid unused imports such as 'TopicSession' | 31

### org/codehaus/activemq/ActiveMQXAConnection.java

Violation | Line
--- | ---
Avoid unused private fields such as 'log' | 50

### org/codehaus/activemq/ActiveMQXASession.java

Violation | Line
--- | ---
Avoid unused private fields such as 'log' | 67
Avoid empty 'if' statements | 114
Avoid empty 'if' statements | 117

### org/codehaus/activemq/broker/BrokerConnector.java

Violation | Line
--- | ---
Avoid unused imports such as 'JMSSecurityException' | 34

### org/codehaus/activemq/broker/BrokerContainer.java

Violation | Line
--- | ---
Avoid unused imports such as 'JMSSecurityException' | 33

### org/codehaus/activemq/broker/impl/BrokerClientImpl.java

Violation | Line
--- | ---
Avoid unused local variables such as 'packet' | 131
Avoid empty catch blocks | 360
Avoid empty 'if' statements | 589

### org/codehaus/activemq/broker/impl/BrokerConnectorImpl.java

Violation | Line
--- | ---
Avoid unused imports such as 'JMSSecurityException' | 32

### org/codehaus/activemq/broker/impl/BrokerContainerImpl.java

Violation | Line
--- | ---
Avoid unused imports such as 'JMSSecurityException' | 46
Avoid empty catch blocks | 155

### org/codehaus/activemq/message/ActiveMQStreamMessage.java

Violation | Line
--- | ---
Avoid unnecessary temporaries when converting primitives to Strings | 711
Avoid unnecessary temporaries when converting primitives to Strings | 714
Avoid unnecessary temporaries when converting primitives to Strings | 717
Avoid unnecessary temporaries when converting primitives to Strings | 720
Avoid unnecessary temporaries when converting primitives to Strings | 723
Avoid unnecessary temporaries when converting primitives to Strings | 726

### org/codehaus/activemq/message/util/DataContainer.java

Violation | Line
--- | ---
Avoid unused private fields such as 'log' | 45
Avoid unused local variables such as 'fileName' | 172

### org/codehaus/activemq/message/util/MemoryBoundedQueue.java

Violation | Line
--- | ---
Avoid unused private fields such as 'log' | 41

### org/codehaus/activemq/message/util/MemoryBoundedQueueManager.java

Violation | Line
--- | ---
Avoid unused private fields such as 'log' | 38

### org/codehaus/activemq/ra/ActiveMQBaseEndpointWorker.java

Violation | Line
--- | ---
Avoid unused private fields such as 'log' | 40
Avoid empty catch blocks | 66
Avoid empty catch blocks | 78

### org/codehaus/activemq/selector/SelectorParser.java

Violation | Line
--- | ---
Avoid unused local variables such as 'not' | 181
Avoid unused local variables such as 'first' | 531
Avoid unused private fields such as 'jj_semLA' | 1716

### org/codehaus/activemq/selector/SelectorParserTokenManager.java

Violation | Line
--- | ---
Avoid unused private methods such as 'jjStopAtPos' | 12
Avoid unused private methods such as 'jjCheckNAddStates' | 430
Avoid unused local variables such as 'nextStates' | 454
Avoid unused local variables such as 'j' | 459
Avoid unused local variables such as 'kind' | 928

### org/codehaus/activemq/selector/TokenMgrError.java

Violation | Line
--- | ---
Avoid unused formal parameters such as 'lexState' | 96

### org/codehaus/activemq/service/boundedvm/TransientTopicBoundedMessageContainer.java

Violation | Line
--- | ---
Avoid unused local variables such as 'result' | 115

### org/codehaus/activemq/service/impl/AbstractTransaction.java

Violation | Line
--- | ---
Avoid unused private fields such as 'log' | 42

### org/codehaus/activemq/service/impl/DurableQueueMessageContainer.java

Violation | Line
--- | ---
Avoid unused local variables such as 'result' | 186

### org/codehaus/activemq/service/impl/DurableTopicMessageContainer.java

Violation | Line
--- | ---
Avoid unused private fields such as 'log' | 40

### org/codehaus/activemq/store/bdb/BDbPersistenceAdapter.java

Violation | Line
--- | ---
Avoid unused imports such as 'PersistenceAdapter' | 35

### org/codehaus/activemq/store/bdbn/BDbMessageStore.java

Violation | Line
--- | ---
Avoid unused local variables such as 'transaction' | 90

### org/codehaus/activemq/store/jdbc/JDBCMessageStore.java

Violation | Line
--- | ---
Avoid unused private fields such as 'log' | 41

### org/codehaus/activemq/store/jdbc/JDBCPersistenceAdapter.java

Violation | Line
--- | ---
Avoid unused imports such as 'PersistenceAdapter' | 25
Avoid empty catch blocks | 107
Avoid empty catch blocks | 125
Avoid empty catch blocks | 152

### org/codehaus/activemq/store/jdbc/JDBCPreparedTransactionStore.java

Violation | Line
--- | ---
Avoid unused local variables such as 'id' | 83

### org/codehaus/activemq/store/jdbc/JDBCTopicMessageStore.java

Violation | Line
--- | ---
Avoid unused private fields such as 'log' | 45

### org/codehaus/activemq/store/jdbc/adapter/BlobJDBCAdapter.java

Violation | Line
--- | ---
Avoid empty catch blocks | 106
Avoid empty catch blocks | 110
Avoid empty catch blocks | 141
Avoid empty catch blocks | 142

### org/codehaus/activemq/store/jdbc/adapter/DefaultJDBCAdapter.java

Violation | Line
--- | ---
Avoid unused local variables such as 'rc' | 97
Avoid empty catch blocks | 109
Avoid empty catch blocks | 131
Avoid empty catch blocks | 136
Avoid empty catch blocks | 157
Avoid empty catch blocks | 181
Avoid empty catch blocks | 186
Avoid empty catch blocks | 204
Avoid empty catch blocks | 229
Avoid empty catch blocks | 234
Avoid empty catch blocks | 261
Avoid empty catch blocks | 266
Avoid empty catch blocks | 284
Avoid empty catch blocks | 306
Avoid empty catch blocks | 336
Avoid empty catch blocks | 341
Avoid empty catch blocks | 366
Avoid empty catch blocks | 396
Avoid empty catch blocks | 401
Avoid empty catch blocks | 440
Avoid empty catch blocks | 475
Avoid empty catch blocks | 480

### org/codehaus/activemq/store/jdbc/adapter/DefaultStatementProvider.java

Violation | Line
--- | ---
Avoid unused private fields such as 'subscriberID' | 66
Avoid unused private fields such as 'clientID' | 67
Avoid unused private fields such as 'consumerName' | 68
Avoid unused private fields such as 'destination' | 69
Avoid unused private fields such as 'selector' | 70

### org/codehaus/activemq/store/vm/VMMessageStore.java

Violation | Line
--- | ---
Avoid unused private fields such as 'log' | 39

### org/codehaus/activemq/transport/gnet/GTransportChannel.java

Violation | Line
--- | ---
Avoid unused local variables such as 'cp' | 91

### org/codehaus/activemq/transport/jgroups/JGroupsTransportChannel.java

Violation | Line
--- | ---
Avoid empty catch blocks | 184

### org/codehaus/activemq/transport/jgroups/JGroupsTransportServerChannel.java

Violation | Line
--- | ---
Avoid unused private fields such as 'log' | 33

### org/codehaus/activemq/transport/jrms/JRMSTransportServerChannel.java

Violation | Line
--- | ---
Avoid empty 'if' statements | 58

### org/codehaus/activemq/transport/jxta/JxtaTransportChannel.java

Violation | Line
--- | ---
Avoid unused private fields such as 'log' | 40

### org/codehaus/activemq/transport/jxta/JxtaTransportServerChannel.java

Violation | Line
--- | ---
Avoid unused private fields such as 'log' | 41

### org/codehaus/activemq/transport/multicast/MulticastTransportChannel.java

Violation | Line
--- | ---
Avoid unused private fields such as 'log' | 38

### org/codehaus/activemq/transport/multicast/MulticastTransportServerChannel.java

Violation | Line
--- | ---
Avoid empty 'if' statements | 54

### org/codehaus/activemq/transport/reliable/ReliableTransportChannel.java

Violation | Line
--- | ---
Avoid unused private fields such as 'log' | 43
Avoid unused private fields such as 'packetList' | 45
Avoid unused private fields such as 'cacheMessagesForFailover' | 46

### org/codehaus/activemq/transport/tcp/TcpTransportChannel.java

Violation | Line
--- | ---
Avoid empty 'while' statements | 256
Avoid empty catch blocks | 274
Avoid empty catch blocks | 282

### org/codehaus/activemq/transport/udp/UdpTransportChannel.java

Violation | Line
--- | ---
Avoid unused private fields such as 'idGenerator' | 55
Avoid empty catch blocks | 204

### org/codehaus/activemq/transport/udp/UdpTransportServerChannel.java

Violation | Line
--- | ---
Avoid empty 'if' statements | 52

### org/codehaus/activemq/transport/vm/VmTransportChannel.java

Violation | Line
--- | ---
Avoid unused private methods such as 'doClose' | 150

### org/codehaus/activemq/transport/vm/VmTransportServerChannel.java

Violation | Line
--- | ---
Avoid empty 'if' statements | 51

### org/codehaus/activemq/util/BitArrayBin.java

Violation | Line
--- | ---
Avoid unused private fields such as 'currentIndex' | 30

### org/codehaus/activemq/util/ExceptionTemplate.java

Violation | Line
--- | ---
No need to import a type that's in the same package | 20

### org/codehaus/activemq/util/FactoryFinder.java

Violation | Line
--- | ---
Avoid empty catch blocks | 100

### org/codehaus/activemq/web/ConnectionManager.java

Violation | Line
--- | ---
Avoid unused private fields such as 'log' | 34