PMD Results

The following document contains the results of PMD 5.5.1.

Files

com/gargoylesoftware/htmlunit/BrowserVersion.java

Violation Line
Do not hard code the IP address 295
Do not hard code the IP address 301
Do not hard code the IP address 307

com/gargoylesoftware/htmlunit/Cache.java

Violation Line
Useless parentheses. 203

com/gargoylesoftware/htmlunit/DefaultPageCreator.java

Violation Line
Useless parentheses. 232
Useless parentheses. 233

com/gargoylesoftware/htmlunit/ProxyAutoConfig.java

Violation Line
Useless parentheses. 332
Avoid empty catch blocks 370372

com/gargoylesoftware/htmlunit/SgmlPage.java

Violation Line
Unnecessary use of fully qualified name 'org.w3c.dom.Node.DOCUMENT_NODE' due to existing import 'org.w3c.dom.Node' 114
Useless parentheses. 312

com/gargoylesoftware/htmlunit/WebAssert.java

Violation Line
Avoid empty catch blocks 249251

com/gargoylesoftware/htmlunit/WebClient.java

Violation Line
Too many static imports may lead to messy code 152312
Useless parentheses. 575
Avoid empty catch blocks 960962
Avoid empty catch blocks 975977
Avoid empty catch blocks 12291231

com/gargoylesoftware/htmlunit/WebConsole.java

Violation Line
Avoid empty catch blocks 360362
Avoid empty catch blocks 376378

com/gargoylesoftware/htmlunit/activex/javascript/msxml/MSXMLJavaScriptEnvironment.java

Violation Line
Avoid empty if statements 8184

com/gargoylesoftware/htmlunit/activex/javascript/msxml/XMLDOMDocument.java

Violation Line
Avoid empty catch blocks 402404
Avoid empty catch blocks 489491

com/gargoylesoftware/htmlunit/activex/javascript/msxml/XMLDOMNodeList.java

Violation Line
Avoid empty catch blocks 432434

com/gargoylesoftware/htmlunit/html/BaseFrameElement.java

Violation Line
Avoid empty catch blocks 98100
Avoid empty catch blocks 101103

com/gargoylesoftware/htmlunit/html/DoTypeProcessor.java

Violation Line
Too many static imports may lead to messy code 15279
Avoid empty catch blocks 161162

com/gargoylesoftware/htmlunit/html/DomElement.java

Violation Line
Useless parentheses. 922
Useless parentheses. 975
Useless parentheses. 976

com/gargoylesoftware/htmlunit/html/DomTreeWalker.java

Violation Line
These nested if statements could be combined 213216

com/gargoylesoftware/htmlunit/html/HTMLParser.java

Violation Line
Avoid empty catch blocks 614616
Useless parentheses. 663
Useless parentheses. 664665
Useless parentheses. 666
Useless parentheses. 667

com/gargoylesoftware/htmlunit/html/HtmlCheckBoxInput.java

Violation Line
Overriding method merely calls super 133135

com/gargoylesoftware/htmlunit/html/HtmlColorInput.java

Violation Line
Avoid empty catch blocks 6769
Avoid empty catch blocks 7072

com/gargoylesoftware/htmlunit/html/HtmlDateInput.java

Violation Line
Avoid empty catch blocks 5759

com/gargoylesoftware/htmlunit/html/HtmlDateTimeLocalInput.java

Violation Line
Avoid empty catch blocks 5759

com/gargoylesoftware/htmlunit/html/HtmlElement.java

Violation Line
Avoid unused method parameters such as 'attributeValue'. 236
Avoid unused method parameters such as 'qualifiedName'. 236
Useless parentheses. 999
Useless parentheses. 999
Useless parentheses. 1000
Useless parentheses. 1000
Useless parentheses. 1001
Useless parentheses. 1001

com/gargoylesoftware/htmlunit/html/HtmlFileInput.java

Violation Line
Avoid empty catch blocks 197199

com/gargoylesoftware/htmlunit/html/HtmlImage.java

Violation Line
Too many static imports may lead to messy code 15709
Useless parentheses. 202
Useless parentheses. 468
Avoid empty try blocks 620622
Useless parentheses. 640642
Useless parentheses. 662

com/gargoylesoftware/htmlunit/html/HtmlMonthInput.java

Violation Line
Avoid empty catch blocks 5759

com/gargoylesoftware/htmlunit/html/HtmlNumberInput.java

Violation Line
Avoid empty catch blocks 201203

com/gargoylesoftware/htmlunit/html/HtmlOption.java

Violation Line
Too many static imports may lead to messy code 15452
Overriding method merely calls super 384386

com/gargoylesoftware/htmlunit/html/HtmlPage.java

Violation Line
Too many static imports may lead to messy code 152487
Overriding method merely calls super 21812183

com/gargoylesoftware/htmlunit/html/HtmlRadioButtonInput.java

Violation Line
Overriding method merely calls super 237239

com/gargoylesoftware/htmlunit/html/HtmlRangeInput.java

Violation Line
Avoid empty catch blocks 5254

com/gargoylesoftware/htmlunit/html/HtmlSerializer.java

Violation Line
Avoid empty if statements 207209
Avoid empty if statements 210212
Avoid empty if statements 219221

com/gargoylesoftware/htmlunit/html/HtmlTextArea.java

Violation Line
Too many static imports may lead to messy code 15620

com/gargoylesoftware/htmlunit/html/HtmlTimeInput.java

Violation Line
Avoid empty catch blocks 5759

com/gargoylesoftware/htmlunit/html/HtmlWeekInput.java

Violation Line
Avoid empty catch blocks 5759

com/gargoylesoftware/htmlunit/html/ScriptElementSupport.java

Violation Line
These nested if statements could be combined 285290

com/gargoylesoftware/htmlunit/httpclient/HtmlUnitVersionAttributeHandler.java

Violation Line
Avoid empty catch blocks 4345

com/gargoylesoftware/htmlunit/javascript/HtmlUnitContextFactory.java

Violation Line
Too many static imports may lead to messy code 15335

com/gargoylesoftware/htmlunit/javascript/JavaScriptEngine.java

Violation Line
Too many static imports may lead to messy code 151070

com/gargoylesoftware/htmlunit/javascript/background/JavaScriptJobManagerImpl.java

Violation Line
Useless parentheses. 236238
Useless parentheses. 253255

com/gargoylesoftware/htmlunit/javascript/host/ClientRectList.java

Violation Line
Too many static imports may lead to messy code 15113

com/gargoylesoftware/htmlunit/javascript/host/Console.java

Violation Line
Too many static imports may lead to messy code 15542
Avoid empty catch blocks 519521
Avoid empty catch blocks 535537

com/gargoylesoftware/htmlunit/javascript/host/Element.java

Violation Line
Too many static imports may lead to messy code 15628

com/gargoylesoftware/htmlunit/javascript/host/Location.java

Violation Line
Too many static imports may lead to messy code 15543

com/gargoylesoftware/htmlunit/javascript/host/Promise.java

Violation Line
Avoid empty if statements 145147

com/gargoylesoftware/htmlunit/javascript/host/Storage.java

Violation Line
Too many static imports may lead to messy code 15166
Useless parentheses. 91

com/gargoylesoftware/htmlunit/javascript/host/Window.java

Violation Line
Too many static imports may lead to messy code 152328
Avoid empty catch blocks 447449

com/gargoylesoftware/htmlunit/javascript/host/canvas/rendering/GaeRenderingBackend.java

Violation Line
Avoid unused constructor parameters such as 'imageWidth'. 33
Avoid unused constructor parameters such as 'imageHeight'. 33

com/gargoylesoftware/htmlunit/javascript/host/css/CSSKeyframesRule.java

Violation Line
Too many static imports may lead to messy code 1575

com/gargoylesoftware/htmlunit/javascript/host/css/CSSRuleList.java

Violation Line
Avoid empty catch blocks 140142

com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleDeclaration.java

Violation Line
Too many static imports may lead to messy code 153173
Avoid empty catch blocks 666668
Avoid empty catch blocks 17481750
Avoid empty catch blocks 25222524
Avoid empty catch blocks 29062908
Useless parentheses. 2928
Avoid empty if statements 29732975
Useless parentheses. 3108
Avoid empty catch blocks 31693171

com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleSheet.java

Violation Line
Too many static imports may lead to messy code 151557
Useless parentheses. 701
Useless parentheses. 702703
Useless parentheses. 703
Unnecessary use of fully qualified name 'org.w3c.dom.css.CSSRule' due to existing import 'org.w3c.dom.css.CSSRule' 1129

com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclaration.java

Violation Line
Too many static imports may lead to messy code 151868

com/gargoylesoftware/htmlunit/javascript/host/dom/AbstractList.java

Violation Line
Too many static imports may lead to messy code 15658
Avoid empty catch blocks 458460

com/gargoylesoftware/htmlunit/javascript/host/dom/Attr.java

Violation Line
Too many static imports may lead to messy code 15195

com/gargoylesoftware/htmlunit/javascript/host/dom/DOMImplementation.java

Violation Line
Too many static imports may lead to messy code 15299

com/gargoylesoftware/htmlunit/javascript/host/dom/DOMTokenList.java

Violation Line
Too many static imports may lead to messy code 15268

com/gargoylesoftware/htmlunit/javascript/host/dom/Document.java

Violation Line
Too many static imports may lead to messy code 15584
Avoid empty catch blocks 392394
Avoid empty catch blocks 508510

com/gargoylesoftware/htmlunit/javascript/host/dom/DocumentType.java

Violation Line
Too many static imports may lead to messy code 15175

com/gargoylesoftware/htmlunit/javascript/host/dom/MediaList.java

Violation Line
Too many static imports may lead to messy code 15111

com/gargoylesoftware/htmlunit/javascript/host/dom/Node.java

Violation Line
Too many static imports may lead to messy code 15734

com/gargoylesoftware/htmlunit/javascript/host/dom/Selection.java

Violation Line
Useless parentheses. 133

com/gargoylesoftware/htmlunit/javascript/host/dom/TextRange.java

Violation Line
Avoid empty catch blocks 149151

com/gargoylesoftware/htmlunit/javascript/host/event/CloseEvent.java

Violation Line
Too many static imports may lead to messy code 15167

com/gargoylesoftware/htmlunit/javascript/host/event/Event.java

Violation Line
Too many static imports may lead to messy code 15673

com/gargoylesoftware/htmlunit/javascript/host/event/EventTarget.java

Violation Line
Too many static imports may lead to messy code 15334

com/gargoylesoftware/htmlunit/javascript/host/event/KeyboardEvent.java

Violation Line
Too many static imports may lead to messy code 151063
Useless parentheses. 948
Useless parentheses. 953
Useless parentheses. 953

com/gargoylesoftware/htmlunit/javascript/host/event/MessageEvent.java

Violation Line
Too many static imports may lead to messy code 15200

com/gargoylesoftware/htmlunit/javascript/host/event/PopStateEvent.java

Violation Line
Too many static imports may lead to messy code 15119

com/gargoylesoftware/htmlunit/javascript/host/event/ProgressEvent.java

Violation Line
Avoid empty catch blocks 7678
Avoid empty catch blocks 9294

com/gargoylesoftware/htmlunit/javascript/host/event/UIEvent.java

Violation Line
Too many static imports may lead to messy code 15176

com/gargoylesoftware/htmlunit/javascript/host/file/File.java

Violation Line
Too many static imports may lead to messy code 15143

com/gargoylesoftware/htmlunit/javascript/host/geo/Geolocation.java

Violation Line
Avoid empty catch blocks 236238

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLAllCollection.java

Violation Line
Too many static imports may lead to messy code 15244
Useless parentheses. 163164
Avoid empty catch blocks 213215

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLAnchorElement.java

Violation Line
Too many static imports may lead to messy code 15824

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLBGSoundElement.java

Violation Line
These nested if statements could be combined 4042

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLBaseElement.java

Violation Line
Too many static imports may lead to messy code 1596

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLCanvasElement.java

Violation Line
Too many static imports may lead to messy code 15180

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLCollection.java

Violation Line
Too many static imports may lead to messy code 15315

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLDocument.java

Violation Line
Too many static imports may lead to messy code 151952
Useless parentheses. 1169
Useless parentheses. 1706

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLElement.java

Violation Line
Too many static imports may lead to messy code 152689
Avoid empty catch blocks 598600
Avoid empty catch blocks 601603
Useless parentheses. 906
Useless parentheses. 906
These nested if statements could be combined 20702072
These nested if statements could be combined 21082124
Useless parentheses. 2115
Useless parentheses. 2115
Useless parentheses. 2115
Avoid empty catch blocks 22482250
Useless parentheses. 2469
Useless parentheses. 2470
Useless parentheses. 2506

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLFormElement.java

Violation Line
Too many static imports may lead to messy code 15522
Avoid empty catch blocks 206208
These nested if statements could be combined 284288
These nested if statements could be combined 459461

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLIFrameElement.java

Violation Line
Too many static imports may lead to messy code 15227

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLImageElement.java

Violation Line
Too many static imports may lead to messy code 15416
Avoid empty catch blocks 247249
Avoid empty catch blocks 306308

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLInputElement.java

Violation Line
Too many static imports may lead to messy code 15821

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLMenuElement.java

Violation Line
Too many static imports may lead to messy code 15118

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLObjectElement.java

Violation Line
Too many static imports may lead to messy code 15357

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLOptionElement.java

Violation Line
These nested if statements could be combined 261263

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLOptionsCollection.java

Violation Line
Too many static imports may lead to messy code 15380

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLPhraseElement.java

Violation Line
These nested if statements could be combined 97123
Useless parentheses. 97

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLPreElement.java

Violation Line
Too many static imports may lead to messy code 15131

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLScriptElement.java

Violation Line
Too many static imports may lead to messy code 15231
Avoid empty catch blocks 7375

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLSelectElement.java

Violation Line
Avoid empty catch blocks 273275

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLSpanElement.java

Violation Line
Overriding method merely calls super 109111

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLTableCaptionElement.java

Violation Line
Too many static imports may lead to messy code 15100

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLTableCellElement.java

Violation Line
Too many static imports may lead to messy code 15398

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLTableColElement.java

Violation Line
Too many static imports may lead to messy code 15135

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLTableElement.java

Violation Line
Too many static imports may lead to messy code 15505
Useless parentheses. 253

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLTableRowElement.java

Violation Line
Too many static imports may lead to messy code 15270

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLTableSectionElement.java

Violation Line
Too many static imports may lead to messy code 15174

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLTextAreaElement.java

Violation Line
Too many static imports may lead to messy code 15349

com/gargoylesoftware/htmlunit/javascript/host/html/HTMLUnknownElement.java

Violation Line
Too many static imports may lead to messy code 15109

com/gargoylesoftware/htmlunit/javascript/host/intl/DefaultDateTimeFormatter.java

Violation Line
Useless parentheses. 4649

com/gargoylesoftware/htmlunit/javascript/host/intl/GAEDateTimeFormatter.java

Violation Line
Useless parentheses. 4346

com/gargoylesoftware/htmlunit/javascript/host/xml/XMLDocument.java

Violation Line
Too many static imports may lead to messy code 15321
These nested if statements could be combined 129131

com/gargoylesoftware/htmlunit/javascript/host/xml/XMLHttpRequest.java

Violation Line
Too many static imports may lead to messy code 151109
Useless parentheses. 762763
Useless parentheses. 799800
These nested if statements could be combined 964966

com/gargoylesoftware/htmlunit/javascript/regexp/RegExpJsToJavaConverter.java

Violation Line
Useless parentheses. 403

com/gargoylesoftware/htmlunit/util/DebuggingWebConnection.java

Violation Line
Avoid empty catch blocks 190192
Useless parentheses. 244

com/gargoylesoftware/htmlunit/util/KeyDataPair.java

Violation Line
Overriding method merely calls super 8691
Overriding method merely calls super 97102

com/gargoylesoftware/htmlunit/util/UrlUtils.java

Violation Line
Useless parentheses. 330
Useless parentheses. 331
Useless parentheses. 332
Useless parentheses. 666
Useless parentheses. 666
Useless parentheses. 687
Useless parentheses. 687
Useless parentheses. 705
Useless parentheses. 705
Useless parentheses. 714
Useless parentheses. 714
Useless parentheses. 997
Useless parentheses. 1011
Avoid empty catch blocks 10291031
Useless parentheses. 1033
Avoid empty catch blocks 10661068

com/gargoylesoftware/htmlunit/xml/XmlPage.java

Violation Line
Overriding method merely calls super 373375

com/gargoylesoftware/htmlunit/xml/XmlUtil.java

Violation Line
Unnecessary use of fully qualified name 'org.w3c.dom.Node.ELEMENT_NODE' due to existing import 'org.w3c.dom.Node' 449

netscape/javascript/JSException.java

Violation Line
Avoid unused constructor parameters such as 'filename'. 80
Avoid unused constructor parameters such as 'lineno'. 80
Avoid unused constructor parameters such as 'tokenIndex'. 81
Avoid unused constructor parameters such as 'source'. 81