PMD Results

The following document contains the results of PMD 6.0.1.

Files

com/gargoylesoftware/htmlunit/BrowserVersion.java

Violation Line
Do not hard code the IP address 359
Do not hard code the IP address 365
Do not hard code the IP address 371
Do not hard code the IP address 377

com/gargoylesoftware/htmlunit/BrowserVersionFeatures.java

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

com/gargoylesoftware/htmlunit/Cache.java

Violation Line
Useless parentheses. 213

com/gargoylesoftware/htmlunit/DefaultPageCreator.java

Violation Line
Useless parentheses. 227
Useless parentheses. 228

com/gargoylesoftware/htmlunit/ProxyAutoConfig.java

Violation Line
Useless parentheses. 325
Avoid empty catch blocks 363365

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. 301

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 152366
Useless parentheses. 586
Avoid empty catch blocks 972974
Avoid empty catch blocks 987989
Avoid empty catch blocks 12571259

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 99101

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. 927
Useless parentheses. 941
Useless parentheses. 998
Useless parentheses. 999
Unnecessary use of fully qualified name 'java.util.Map.Entry' due to existing import 'java.util.Map' 1716

com/gargoylesoftware/htmlunit/html/DomTreeWalker.java

Violation Line
These nested if statements could be combined 213216

com/gargoylesoftware/htmlunit/html/HTMLParser.java

Violation Line
Too many static imports may lead to messy code 151058
Avoid empty catch blocks 637639
Useless parentheses. 686
Useless parentheses. 687688
Useless parentheses. 689
Useless parentheses. 690

com/gargoylesoftware/htmlunit/html/HtmlCheckBoxInput.java

Violation Line
Overriding method merely calls super 132134

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'. 253
Avoid unused method parameters such as 'attributeValue'. 253
Useless parentheses. 975
Useless parentheses. 975
Useless parentheses. 976
Useless parentheses. 976
Useless parentheses. 977
Useless parentheses. 977

com/gargoylesoftware/htmlunit/html/HtmlFileInput.java

Violation Line
Avoid empty catch blocks 182184

com/gargoylesoftware/htmlunit/html/HtmlForm.java

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

com/gargoylesoftware/htmlunit/html/HtmlImage.java

Violation Line
Too many static imports may lead to messy code 15723
Useless parentheses. 207
Useless parentheses. 476

com/gargoylesoftware/htmlunit/html/HtmlImageInput.java

Violation Line
Useless parentheses. 228

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 15451
Overriding method merely calls super 384386

com/gargoylesoftware/htmlunit/html/HtmlPage.java

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

com/gargoylesoftware/htmlunit/html/HtmlRadioButtonInput.java

Violation Line
Overriding method merely calls super 236238

com/gargoylesoftware/htmlunit/html/HtmlRangeInput.java

Violation Line
Avoid empty catch blocks 5254

com/gargoylesoftware/htmlunit/html/HtmlTextArea.java

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

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 15366
Useless parentheses. 178
Useless parentheses. 178
Useless parentheses. 196
Useless parentheses. 196

com/gargoylesoftware/htmlunit/javascript/JavaScriptEngine.java

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

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

Violation Line
Useless parentheses. 236238
Useless parentheses. 253255

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

Violation Line
Too many static imports may lead to messy code 15375
Useless parentheses. 332
Useless parentheses. 333
Useless parentheses. 334

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 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 152068
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. 918
Useless parentheses. 918

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

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

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

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

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

Violation Line
Avoid empty if statements 326328

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 154559
Avoid empty catch blocks 454456

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

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

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

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

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 153181
Avoid empty catch blocks 675677
Avoid empty catch blocks 17691771
Avoid empty catch blocks 25432545
Avoid empty catch blocks 29212923
Useless parentheses. 2943
Avoid empty if statements 29882990
Useless parentheses. 3117
Avoid empty catch blocks 31773179

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

Violation Line
Too many static imports may lead to messy code 151621
Useless parentheses. 631
Useless parentheses. 632633
Useless parentheses. 633
Unnecessary use of fully qualified name 'org.w3c.dom.css.CSSRule' due to existing import 'org.w3c.dom.css.CSSRule' 1069

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

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

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

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

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

Violation Line
Too many static imports may lead to messy code 15662
Avoid empty catch blocks 460462

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 15307

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

Violation Line
Too many static imports may lead to messy code 154310
Avoid empty catch blocks 596598
Avoid empty catch blocks 713715
Useless parentheses. 1050

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 15879

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 15680

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

Violation Line
Too many static imports may lead to messy code 15326
Avoid empty catch blocks 215217

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 15200

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 239241

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

Violation Line
Too many static imports may lead to messy code 15206
Useless parentheses. 135136
Avoid empty catch blocks 186188

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

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

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 15546

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 15314

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

Violation Line
Too many static imports may lead to messy code 151197
Useless parentheses. 804
Useless parentheses. 833

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

Violation Line
Too many static imports may lead to messy code 153999
Avoid empty catch blocks 548550
Useless parentheses. 1565
Useless parentheses. 1565
Useless parentheses. 1565
Avoid empty catch blocks 16971699
Useless parentheses. 1895
Useless parentheses. 1896
Useless parentheses. 1929

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

Violation Line
Too many static imports may lead to messy code 15527
Avoid empty catch blocks 205207

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

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

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

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

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

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

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 15364

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 15375

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

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

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 15213
Avoid empty catch blocks 7375

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 15443

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 15108

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

Violation Line
Useless parentheses. 343346

com/gargoylesoftware/htmlunit/javascript/host/svg/SVGElement.java

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

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

Violation Line
Too many static imports may lead to messy code 15323
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. 758759
Useless parentheses. 795796
These nested if statements could be combined 964966

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

Violation Line
Useless parentheses. 430

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. 368
Useless parentheses. 369
Useless parentheses. 370
Useless parentheses. 703
Useless parentheses. 703
Useless parentheses. 724
Useless parentheses. 724
Useless parentheses. 742
Useless parentheses. 742
Useless parentheses. 751
Useless parentheses. 751
Useless parentheses. 1031
Useless parentheses. 1045
Avoid empty catch blocks 10631065
Useless parentheses. 1067
Avoid empty catch blocks 11001102

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