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 226
Do not hard code the IP address 232
Do not hard code the IP address 238

com/gargoylesoftware/htmlunit/Cache.java

Violation Line
Useless parentheses. 203

com/gargoylesoftware/htmlunit/DefaultPageCreator.java

Violation Line
Useless parentheses. 227
Useless parentheses. 228

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 152298
Useless parentheses. 572
Avoid empty catch blocks 957959
Avoid empty catch blocks 972974
Avoid empty catch blocks 12171219

com/gargoylesoftware/htmlunit/WebConsole.java

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

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 15660
Useless parentheses. 194
Avoid empty try blocks 579581
Useless parentheses. 613

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 15447
Overriding method merely calls super 379381

com/gargoylesoftware/htmlunit/html/HtmlPage.java

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

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 151071

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

Violation Line
Useless parentheses. 238240
Useless parentheses. 255257

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 152327
Avoid empty catch blocks 448450

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

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

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 153175
Avoid empty catch blocks 668670
Avoid empty catch blocks 17501752
Avoid empty catch blocks 25242526
Avoid empty catch blocks 29082910
Useless parentheses. 2930
Avoid empty if statements 29752977
Useless parentheses. 3110
Avoid empty catch blocks 31713173

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

Violation Line
Too many static imports may lead to messy code 151570
Useless parentheses. 715
Useless parentheses. 716717
Useless parentheses. 717
Unnecessary use of fully qualified name 'org.w3c.dom.css.CSSRule' due to existing import 'org.w3c.dom.css.CSSRule' 1142

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/css/StyleAttributes.java

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

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 15737

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 15843

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 151959
Useless parentheses. 1167
Useless parentheses. 1713

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

Violation Line
Too many static imports may lead to messy code 152699
Avoid empty catch blocks 608610
Avoid empty catch blocks 611613
Useless parentheses. 916
Useless parentheses. 916
These nested if statements could be combined 20802082
These nested if statements could be combined 21182134
Useless parentheses. 2125
Useless parentheses. 2125
Useless parentheses. 2125
Avoid empty catch blocks 22582260
Useless parentheses. 2479
Useless parentheses. 2480
Useless parentheses. 2516

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 15297

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 15365

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

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

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 151105
Useless parentheses. 758759
Useless parentheses. 795796
These nested if statements could be combined 960962

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

Violation Line
Useless parentheses. 403

com/gargoylesoftware/htmlunit/util/DebuggingWebConnection.java

Violation Line
Avoid empty catch blocks 189191
Useless parentheses. 243

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. 333
Useless parentheses. 334
Useless parentheses. 335
Useless parentheses. 669
Useless parentheses. 669
Useless parentheses. 690
Useless parentheses. 690
Useless parentheses. 708
Useless parentheses. 708
Useless parentheses. 717
Useless parentheses. 717
Useless parentheses. 1000
Useless parentheses. 1014
Avoid empty catch blocks 10321034
Useless parentheses. 1036
Avoid empty catch blocks 10691071

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' 445

netscape/javascript/JSException.java

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