PMD Results

The following document contains the results of PMD 5.6.1.

Files

com/gargoylesoftware/htmlunit/BrowserVersion.java

Violation Line
Do not hard code the IP address 323
Do not hard code the IP address 329
Do not hard code the IP address 335
Do not hard code the IP address 341

com/gargoylesoftware/htmlunit/BrowserVersionFeatures.java

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

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 152330
Useless parentheses. 577
Avoid empty catch blocks 963965
Avoid empty catch blocks 978980
Avoid empty catch blocks 12361238

com/gargoylesoftware/htmlunit/WebClientInternals.java

Violation Line
Avoid unused private fields such as 'webClient_'. 33

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 401403
Avoid empty catch blocks 488490

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

Violation Line
Avoid empty catch blocks 431433

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 15280
Avoid empty catch blocks 162163

com/gargoylesoftware/htmlunit/html/DomElement.java

Violation Line
Useless parentheses. 907
Useless parentheses. 960
Useless parentheses. 961
Unnecessary use of fully qualified name 'java.util.Map.Entry' due to existing import 'java.util.Map' 1671

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 632634
Useless parentheses. 681
Useless parentheses. 682683
Useless parentheses. 684
Useless parentheses. 685

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 'qualifiedName'. 250
Avoid unused method parameters such as 'attributeValue'. 250
Avoid unused method parameters such as 'nashorn'. 579
Useless parentheses. 970
Useless parentheses. 970
Useless parentheses. 971
Useless parentheses. 971
Useless parentheses. 972
Useless parentheses. 972

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 15713
Useless parentheses. 205
Useless parentheses. 471
Avoid empty try blocks 623625
Useless parentheses. 665
Useless parentheses. 666

com/gargoylesoftware/htmlunit/html/HtmlImageInput.java

Violation Line
Useless parentheses. 230

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 202204

com/gargoylesoftware/htmlunit/html/HtmlOption.java

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

com/gargoylesoftware/htmlunit/html/HtmlPage.java

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

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 205207
Avoid empty if statements 208210
Avoid empty if statements 217219

com/gargoylesoftware/htmlunit/html/HtmlTextArea.java

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

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 291296

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 15365
Useless parentheses. 175
Useless parentheses. 175
Useless parentheses. 193
Useless parentheses. 193

com/gargoylesoftware/htmlunit/javascript/JavaScriptEngine.java

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

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

Violation Line
Useless parentheses. 236238
Useless parentheses. 253255

com/gargoylesoftware/htmlunit/javascript/configuration/AbstractJavaScriptConfiguration.java

Violation Line
Unnecessary use of fully qualified name 'SupportedBrowser.CHROME' due to existing static import 'com.gargoylesoftware.htmlunit.javascript.configuration.SupportedBrowser.*' 100
Unnecessary use of fully qualified name 'SupportedBrowser.IE' due to existing static import 'com.gargoylesoftware.htmlunit.javascript.configuration.SupportedBrowser.*' 103
Unnecessary use of fully qualified name 'SupportedBrowser.FF45' due to existing static import 'com.gargoylesoftware.htmlunit.javascript.configuration.SupportedBrowser.*' 106
Unnecessary use of fully qualified name 'SupportedBrowser.FF52' due to existing static import 'com.gargoylesoftware.htmlunit.javascript.configuration.SupportedBrowser.*' 109
Unnecessary use of fully qualified name 'SupportedBrowser.EDGE' due to existing static import 'com.gargoylesoftware.htmlunit.javascript.configuration.SupportedBrowser.*' 112
Useless parentheses. 323
Useless parentheses. 324
Useless parentheses. 325

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

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

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

Violation Line
Too many static imports may lead to messy code 15541
Avoid empty catch blocks 518520
Avoid empty catch blocks 534536

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

Violation Line
Too many static imports may lead to messy code 152067
Unnecessary use of fully qualified name 'DomElement.ATTRIBUTE_NOT_DEFINED' due to existing static import 'com.gargoylesoftware.htmlunit.html.DomElement.ATTRIBUTE_NOT_DEFINED' 660
Useless parentheses. 917
Useless parentheses. 917

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

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

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

Violation Line
Avoid empty if statements 142144

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

Violation Line
Too many static imports may lead to messy code 15165
Useless parentheses. 90

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

Violation Line
Too many static imports may lead to messy code 154481
Avoid empty catch blocks 449451

com/gargoylesoftware/htmlunit/javascript/host/canvas/CanvasRenderingContext2D.java

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

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/CSSKeyframesRule.java

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

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

Violation Line
Avoid empty catch blocks 139141

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

Violation Line
Too many static imports may lead to messy code 153172
Avoid empty catch blocks 665667
Avoid empty catch blocks 17471749
Avoid empty catch blocks 25212523
Avoid empty catch blocks 29052907
Useless parentheses. 2927
Avoid empty if statements 29722974
Useless parentheses. 3107
Avoid empty catch blocks 31683170

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

Violation Line
Too many static imports may lead to messy code 151556
Useless parentheses. 700
Useless parentheses. 701702
Useless parentheses. 702
Unnecessary use of fully qualified name 'org.w3c.dom.css.CSSRule' due to existing import 'org.w3c.dom.css.CSSRule' 1125
Unnecessary use of fully qualified name 'org.w3c.dom.css.CSSRule' due to existing import 'org.w3c.dom.css.CSSRule' 1128

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

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

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

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

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

Violation Line
Too many static imports may lead to messy code 15657
Avoid empty catch blocks 457459

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

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

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

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

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

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

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

Violation Line
Too many static imports may lead to messy code 154288
Avoid empty catch blocks 591593
Avoid empty catch blocks 708710
Useless parentheses. 1055

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

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

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

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

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

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

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

Violation Line
Useless parentheses. 134

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 15163

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

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

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

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

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

Violation Line
Too many static imports may lead to messy code 151133
Useless parentheses. 947
Useless parentheses. 952
Useless parentheses. 952

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

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

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

Violation Line
Avoid empty catch blocks 7577
Avoid empty catch blocks 9193

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

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

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. 162163
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 3941

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

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

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

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

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

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

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

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

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

Violation Line
Too many static imports may lead to messy code 151170
Useless parentheses. 773

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

Violation Line
Too many static imports may lead to messy code 154018
Avoid empty catch blocks 546548
Avoid empty catch blocks 549551
These nested if statements could be combined 15321534
These nested if statements could be combined 15701586
Useless parentheses. 1577
Useless parentheses. 1577
Useless parentheses. 1577
Avoid empty catch blocks 17101712
Useless parentheses. 1911
Useless parentheses. 1912
Useless parentheses. 1948

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

Violation Line
Too many static imports may lead to messy code 15531
Avoid empty catch blocks 205207
These nested if statements could be combined 283287
These nested if statements could be combined 458460

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

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

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

Violation Line
Too many static imports may lead to messy code 15406
Avoid empty catch blocks 237239
Avoid empty catch blocks 296298

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

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

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

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

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

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

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

Violation Line
These nested if statements could be combined 260262

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

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

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

Violation Line
These nested if statements could be combined 96122
Useless parentheses. 96

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

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

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

Violation Line
Too many static imports may lead to messy code 15212
Avoid empty catch blocks 7274

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

Violation Line
Avoid empty catch blocks 272274

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

Violation Line
Overriding method merely calls super 106108

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

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

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

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

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

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

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

Violation Line
Too many static imports may lead to messy code 15504
Useless parentheses. 263

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

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

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

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

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

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

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

Violation Line
Too many static imports may lead to messy code 15111
Useless parentheses. 105106

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/svg/SVGElement.java

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

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

Violation Line
Too many static imports may lead to messy code 15322
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 151099
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. 412

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 378380

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