# Date: Fri Jan 13 00:33:01 EST 2006
# Module: vishnuClient
# Repository: /cvsroot/vishnu
# Tag: HEAD
# Rulesets: unusedcode.xml
PMD

Summary

Rule nameNumber of violations
ForLoopShouldBeWhileLoop4
EmptyStatementNotInLoop1
CollapsibleIfStatements6
UnusedLocalVariable14
UnusedPrivateMethod1
EmptyIfStmt3
UnconditionalIfStatement1
EmptyCatchBlock26
UnusedPrivateField2

Detail

#FileLineProblem
1 org/cougaar/lib/vishnu/client/AggregateXMLResultHandler.java 175 Avoid empty 'if' statements
2 org/cougaar/lib/vishnu/client/BaseXMLize.java 86 Avoid empty catch blocks
3 org/cougaar/lib/vishnu/client/DataXMLize.java 79 Avoid empty catch blocks
4 org/cougaar/lib/vishnu/client/DataXMLize.java 498 Avoid unused local variables such as 'element'
5 org/cougaar/lib/vishnu/client/DataXMLize.java 622 Avoid empty catch blocks
6 org/cougaar/lib/vishnu/client/DataXMLize.java 720 Avoid empty catch blocks
7 org/cougaar/lib/vishnu/client/DirectMode.java 128 Avoid unused local variables such as 'start'
8 org/cougaar/lib/vishnu/client/DirectMode.java 165 Avoid unused local variables such as 'start'
9 org/cougaar/lib/vishnu/client/DirectResultHandler.java 102 Avoid empty catch blocks
10 org/cougaar/lib/vishnu/client/DirectResultHandler.java 265 These nested if statements could be combined
11 org/cougaar/lib/vishnu/client/FormatXMLize.java 86 Avoid empty catch blocks
12 org/cougaar/lib/vishnu/client/FormatXMLize.java 114 These nested if statements could be combined
13 org/cougaar/lib/vishnu/client/FormatXMLize.java 179 These nested if statements could be combined
14 org/cougaar/lib/vishnu/client/FormatXMLize.java 265 These nested if statements could be combined
15 org/cougaar/lib/vishnu/client/FormatXMLize.java 279 These nested if statements could be combined
16 org/cougaar/lib/vishnu/client/FormatXMLize.java 369 Avoid unused local variables such as 'element'
17 org/cougaar/lib/vishnu/client/FormatXMLize.java 478 Avoid empty catch blocks
18 org/cougaar/lib/vishnu/client/FormatXMLize.java 483 Avoid empty catch blocks
19 org/cougaar/lib/vishnu/client/InternalMode.java 101 Avoid empty catch blocks
20 org/cougaar/lib/vishnu/client/InternalMode.java 127 This for loop could be simplified to a while loop
21 org/cougaar/lib/vishnu/client/InternalMode.java 375 Avoid unused private fields such as 'format'
22 org/cougaar/lib/vishnu/client/VishnuAggregatorPlugin.java 144 Avoid empty catch blocks
23 org/cougaar/lib/vishnu/client/VishnuAggregatorPlugin.java 354 Avoid empty 'if' statements
24 org/cougaar/lib/vishnu/client/VishnuAggregatorPlugin.java 602 Avoid unused local variables such as 'parent'
25 org/cougaar/lib/vishnu/client/VishnuAggregatorPlugin.java 627 These nested if statements could be combined
26 org/cougaar/lib/vishnu/client/VishnuAggregatorPlugin.java 782 Avoid unused local variables such as 'parent'
27 org/cougaar/lib/vishnu/client/VishnuAggregatorPlugin.java 1046 Do not use 'if' statements that are always true or always false
28 org/cougaar/lib/vishnu/client/VishnuAggregatorPlugin.java 1082 This for loop could be simplified to a while loop
29 org/cougaar/lib/vishnu/client/VishnuAggregatorPlugin.java 1205 An empty statement (semicolon) not part of a loop
30 org/cougaar/lib/vishnu/client/VishnuAggregatorPlugin.java 1305 Avoid unused local variables such as 'i'
31 org/cougaar/lib/vishnu/client/VishnuAllocationResultAggregator.java 331 Avoid unused local variables such as 'aqll'
32 org/cougaar/lib/vishnu/client/VishnuAllocatorPlugin.java 276 Avoid empty catch blocks
33 org/cougaar/lib/vishnu/client/VishnuComm.java 206 Avoid empty catch blocks
34 org/cougaar/lib/vishnu/client/VishnuComm.java 261 Avoid empty catch blocks
35 org/cougaar/lib/vishnu/client/VishnuComm.java 262 Avoid empty catch blocks
36 org/cougaar/lib/vishnu/client/VishnuComm.java 312 Avoid empty catch blocks
37 org/cougaar/lib/vishnu/client/VishnuComm.java 313 Avoid empty catch blocks
38 org/cougaar/lib/vishnu/client/VishnuComm.java 345 Avoid empty catch blocks
39 org/cougaar/lib/vishnu/client/VishnuComm.java 346 Avoid empty catch blocks
40 org/cougaar/lib/vishnu/client/VishnuComm.java 456 Avoid empty catch blocks
41 org/cougaar/lib/vishnu/client/VishnuComm.java 649 Avoid empty catch blocks
42 org/cougaar/lib/vishnu/client/VishnuComm.java 837 Avoid empty catch blocks
43 org/cougaar/lib/vishnu/client/VishnuComm.java 854 Avoid unused private methods such as 'socketPostToURL(String,String,String,String,boolean,Logger)'
44 org/cougaar/lib/vishnu/client/VishnuConfig.java 300 Avoid empty catch blocks
45 org/cougaar/lib/vishnu/client/VishnuPlugin.java 202 Avoid empty catch blocks
46 org/cougaar/lib/vishnu/client/VishnuPlugin.java 384 This for loop could be simplified to a while loop
47 org/cougaar/lib/vishnu/client/VishnuPlugin.java 400 This for loop could be simplified to a while loop
48 org/cougaar/lib/vishnu/client/XMLProcessor.java 73 Avoid unused private fields such as 'format'
49 org/cougaar/lib/vishnu/client/XMLProcessor.java 220 Avoid unused local variables such as 'children'
50 org/cougaar/lib/vishnu/client/XMLProcessor.java 234 Avoid unused local variables such as 'duplicate'
51 org/cougaar/lib/vishnu/client/XMLProcessor.java 297 Avoid unused local variables such as 'nameToNodeToRemove'
52 org/cougaar/lib/vishnu/client/XMLProcessor.java 727 Avoid unused local variables such as 'nlist'
53 org/cougaar/lib/vishnu/client/XMLProcessor.java 748 Avoid unused local variables such as 'was'
54 org/cougaar/lib/vishnu/client/XMLResultHandler.java 249 Avoid empty 'if' statements
55 org/cougaar/lib/vishnu/client/custom/CustomDataXMLize.java 160 Avoid empty catch blocks
56 org/cougaar/lib/vishnu/client/custom/CustomDataXMLize.java 161 Avoid empty catch blocks
57 org/cougaar/lib/vishnu/client/custom/DirectDataHelper.java 280 Avoid unused local variables such as 'loc'
58 org/cougaar/lib/vishnu/client/custom/XMLDataHelper.java 262 Avoid empty catch blocks