PMD Results
The following document contains the results of PMD
Files
javax/mail/Address.java
Violation | Line |
---|
Ensure you override both equals() and hashCode() | 35 |
javax/mail/FetchProfile.java
Violation | Line |
---|
Avoid unused constructor parameters such as 'name' | 63 - 66 |
javax/mail/Flags.java
Violation | Line |
---|
Avoid unused imports such as 'java.util.Iterator' | 22 |
Avoid unused imports such as 'java.util.LinkedList' | 23 |
Avoid unused imports such as 'java.util.List' | 24 |
Avoid unused private fields such as 'mask' | 72 |
javax/mail/Folder.java
Violation | Line |
---|
Avoid unnecessary return statements | 518 |
javax/mail/internet/AddressException.java
Violation | Line |
---|
Avoid unused constructor parameters such as 'ref' | 35 - 37 |
javax/mail/internet/AddressParser.java
Violation | Line |
---|
Avoid unused imports such as 'java.lang.reflect.Array' | 21 |
Avoid empty catch blocks | 456 - 457 |
Avoid unused local variables such as 'startPosition' | 783 |
These nested if statements could be combined | 1141 - 1143 |
Avoid unused private methods such as 'isSpace(char)' | 1524 |
javax/mail/internet/HeaderTokenizer.java
Violation | Line |
---|
Avoid empty while statements | 280 |
javax/mail/internet/InternetAddress.java
Violation | Line |
---|
Avoid unused imports such as 'java.lang.reflect.Array' | 20 |
Avoid unused imports such as 'java.util.ArrayList' | 23 |
Avoid unused imports such as 'java.util.List' | 24 |
Avoid unused imports such as 'java.util.StringTokenizer' | 25 |
Avoid unused imports such as 'org.apache.geronimo.mail.util.SessionUtil' | 30 |
Avoid empty catch blocks | 422 - 424 |
Avoid empty catch blocks | 424 - 426 |
Avoid empty catch blocks | 426 - 428 |
javax/mail/internet/InternetHeaders.java
Violation | Line |
---|
Avoid unused imports such as 'java.util.Arrays' | 24 |
Avoid unused imports such as 'java.util.HashSet' | 27 |
Avoid unused imports such as 'java.util.Iterator' | 28 |
Avoid unused imports such as 'java.util.LinkedHashMap' | 29 |
Avoid unused imports such as 'java.util.Map' | 31 |
Avoid unused imports such as 'java.util.Set' | 32 |
Avoid unused private fields such as 'lastHeaderName' | 47 |
These nested if statements could be combined | 458 - 460 |
These nested if statements could be combined | 478 - 480 |
These nested if statements could be combined | 581 - 583 |
javax/mail/internet/MimeBodyPart.java
Violation | Line |
---|
Avoid unused imports such as 'javax.swing.text.AbstractDocument.Content' | 38 |
Avoid empty catch blocks | 115 - 116 |
Avoid empty catch blocks | 269 - 271 |
Avoid empty catch blocks | 310 - 311 |
These nested if statements could be combined | 548 - 567 |
These nested if statements could be combined | 550 - 566 |
These nested if statements could be combined | 553 - 565 |
javax/mail/internet/MimeMessage.java
Violation | Line |
---|
Avoid empty catch blocks | 531 - 533 |
Avoid unused local variables such as 's' | 562 |
Avoid empty catch blocks | 632 - 634 |
Avoid empty catch blocks | 786 - 788 |
Avoid empty catch blocks | 851 - 852 |
These nested if statements could be combined | 1365 - 1384 |
These nested if statements could be combined | 1367 - 1383 |
These nested if statements could be combined | 1370 - 1382 |
javax/mail/internet/MimeMultipart.java
Violation | Line |
---|
Avoid unused imports such as 'java.io.ByteArrayInputStream' | 21 |
javax/mail/internet/MimeUtility.java
Violation | Line |
---|
Avoid unused imports such as 'java.io.BufferedInputStream' | 20 |
Avoid unused imports such as 'org.apache.geronimo.mail.util.QuotedPrintable' | 46 |
Avoid unused private fields such as 'defaultJavaCharset' | 69 |
These nested if statements could be combined | 187 - 190 |
Avoid empty catch blocks | 200 - 201 |
These nested if statements could be combined | 343 - 346 |
Avoid empty catch blocks | 356 - 357 |
Avoid empty catch blocks | 673 - 674 |
Avoid unused local variables such as 'requiresQuoting' | 693 |
Avoid empty catch blocks | 842 - 843 |
Avoid empty catch blocks | 951 - 953 |
These nested if statements could be combined | 1012 - 1014 |
Avoid unused local variables such as 'lineBreak' | 1134 |
These nested if statements could be combined | 1139 - 1143 |
These nested if statements could be combined | 1216 - 1218 |
javax/mail/internet/NewsAddress.java
Violation | Line |
---|
Avoid unused imports such as 'sun.security.provider.Sun' | 26 |
javax/mail/internet/ParameterList.java
Violation | Line |
---|
Avoid unused imports such as 'java.io.UnsupportedEncodingException' | 21 |
Avoid unused imports such as 'java.util.ArrayList' | 22 |
Avoid unused imports such as 'java.util.List' | 27 |
Avoid unused imports such as 'java.util.StringTokenizer' | 29 |
Avoid empty catch blocks | 189 - 191 |
javax/mail/search/ComparisonTerm.java
Violation | Line |
---|
Overriding method merely calls super | 38 - 40 |
Overriding method merely calls super | 42 - 44 |
javax/mail/search/MessageNumberTerm.java
Violation | Line |
---|
Ensure you override both equals() and hashCode() | 34 |
Overriding method merely calls super | 34 - 36 |
javax/mail/Service.java
Violation | Line |
---|
Avoid empty catch blocks | 174 - 176 |
Avoid empty catch blocks | 231 - 232 |
Avoid empty catch blocks | 239 - 240 |
javax/mail/Session.java
Violation | Line |
---|
These nested if statements could be combined | 134 - 136 |
Avoid empty catch blocks | 565 - 567 |
Avoid empty catch blocks | 567 - 569 |
Avoid empty catch blocks | 583 - 585 |
Avoid empty catch blocks | 585 - 587 |
Avoid empty catch blocks | 603 - 605 |
Avoid empty catch blocks | 605 - 607 |
Avoid empty catch blocks | 700 - 702 |
Avoid empty catch blocks | 702 - 704 |
Avoid empty catch blocks | 719 - 721 |
Avoid empty catch blocks | 721 - 723 |
Avoid empty catch blocks | 735 - 737 |
Avoid empty catch blocks | 737 - 739 |
Avoid empty catch blocks | 753 - 755 |
Avoid empty catch blocks | 755 - 757 |
javax/mail/StoreClosedException.java
Violation | Line |
---|
Avoid unused constructor parameters such as 'store' | 31 - 33 |
javax/mail/util/ByteArrayDataSource.java
Violation | Line |
---|
Avoid empty catch blocks | 99 - 101 |
javax/mail/util/SharedByteArrayInputStream.java
Violation | Line |
---|
Avoid unused imports such as 'java.io.IOException' | 21 |
org/apache/geronimo/mail/handlers/MessageHandler.java
Violation | Line |
---|
Avoid unused imports such as 'javax.mail.internet.ContentType' | 21 |
Avoid unused imports such as 'javax.mail.internet.MimeUtility' | 27 |
Avoid unused imports such as 'javax.mail.internet.ParseException' | 28 |
Avoid unused imports such as 'java.io.InputStreamReader' | 31 |
Avoid unused imports such as 'java.io.OutputStreamWriter' | 33 |
Avoid unused imports such as 'java.io.StringWriter' | 34 |
Avoid unused imports such as 'java.io.UnsupportedEncodingException' | 35 |
org/apache/geronimo/mail/handlers/MultipartHandler.java
Violation | Line |
---|
Avoid unused imports such as 'javax.mail.internet.MimeMessage' | 26 |
org/apache/geronimo/mail/util/Base64DecoderStream.java
Violation | Line |
---|
Avoid unused private methods such as 'getBufferedChar()' | 77 |
These nested if statements could be combined | 108 - 110 |
These nested if statements could be combined | 123 - 125 |
org/apache/geronimo/mail/util/Base64EncoderStream.java
Violation | Line |
---|
These nested if statements could be combined | 163 - 166 |
org/apache/geronimo/mail/util/HexEncoder.java
Violation | Line |
---|
Avoid unused local variables such as 'b3' | 152 |
Avoid unused local variables such as 'b4' | 152 |
org/apache/geronimo/mail/util/QuotedPrintable.java
Violation | Line |
---|
Avoid unused imports such as 'java.io.InputStream' | 22 |
org/apache/geronimo/mail/util/QuotedPrintableDecoderStream.java
Violation | Line |
---|
Avoid unused imports such as 'java.io.ByteArrayOutputStream' | 20 |
Avoid unused imports such as 'java.io.UnsupportedEncodingException' | 24 |
org/apache/geronimo/mail/util/QuotedPrintableEncoder.java
Violation | Line |
---|
Avoid unused imports such as 'java.io.EOFException' | 20 |
org/apache/geronimo/mail/util/RFC2231Encoder.java
Violation | Line |
---|
Avoid unused local variables such as 'language' | 248 |
org/apache/geronimo/mail/util/SessionUtil.java
Violation | Line |
---|
Avoid unused imports such as 'java.security.Security' | 20 |
Avoid empty catch blocks | 122 - 123 |
Avoid empty catch blocks | 167 - 169 |
Avoid empty catch blocks | 191 - 193 |
Avoid empty catch blocks | 210 - 212 |
org/apache/geronimo/mail/util/UUDecoderStream.java
Violation | Line |
---|
Avoid unused private methods such as 'getBufferedChar()' | 71 |
These nested if statements could be combined | 96 - 98 |
These nested if statements could be combined | 111 - 113 |
An empty statement (semicolon) not part of a loop | 180 |
org/apache/geronimo/mail/util/XTextEncoder.java
Violation | Line |
---|
Avoid unused local variables such as 'b3' | 135 |
Avoid unused local variables such as 'b4' | 135 |