PMD Results

The following document contains the results of PMD 4.1.

Files

org/apache/geronimo/javamail/authentication/AuthenticatorFactory.java

ViolationLine
Avoid empty catch blocks65 - 68

org/apache/geronimo/javamail/authentication/SASLAuthenticator.java

ViolationLine
Avoid unused imports such as 'java.io.UnsupportedEncodingException'22
Avoid empty catch blocks66 - 67

org/apache/geronimo/javamail/handlers/AbstractTextHandler.java

ViolationLine
Avoid unused imports such as 'java.io.Reader'26

org/apache/geronimo/javamail/store/imap/IMAPAttachedMessage.java

ViolationLine
Avoid unused imports such as 'javax.activation.DataHandler'20

org/apache/geronimo/javamail/store/imap/IMAPFolder.java

ViolationLine
Avoid unused imports such as 'java.util.Iterator'25
Avoid unused imports such as 'java.util.Vector'30
Avoid empty catch blocks169 - 173
Avoid empty catch blocks408 - 410
Avoid empty catch blocks444 - 447
Avoid empty catch blocks575 - 577
Avoid empty catch blocks609 - 611
These nested if statements could be combined655 - 657
Avoid unnecessary return statements1064
Avoid empty catch blocks1572 - 1573
These nested if statements could be combined1849 - 1854
An empty statement (semicolon) not part of a loop2005
Avoid empty catch blocks2140 - 2142
Avoid empty catch blocks2157 - 2158
Avoid empty catch blocks2184 - 2185
Avoid empty catch blocks2196 - 2197
These nested if statements could be combined2378 - 2380

org/apache/geronimo/javamail/store/imap/IMAPMessage.java

ViolationLine
Avoid unused imports such as 'java.io.BufferedReader'20
Avoid unused imports such as 'java.io.ByteArrayInputStream'21
Avoid unused imports such as 'java.io.ByteArrayOutputStream'22
Avoid unused imports such as 'java.io.InputStreamReader'25
Avoid unused imports such as 'javax.mail.Folder'37
Avoid unused imports such as 'javax.mail.Session'43
Avoid unused imports such as 'javax.mail.Store'44
Avoid unused imports such as 'javax.mail.event.MessageChangedEvent'46
Avoid unused imports such as 'org.apache.geronimo.javamail.store.imap.connection.IMAPBody'54
Avoid unused imports such as 'org.apache.geronimo.javamail.util.MailConnection'64
An empty statement (semicolon) not part of a loop1226

org/apache/geronimo/javamail/store/imap/IMAPMimeBodyPart.java

ViolationLine
Avoid empty catch blocks165 - 167

org/apache/geronimo/javamail/store/imap/IMAPRootFolder.java

ViolationLine
Avoid unused imports such as 'javax.mail.Store'25
Avoid unused imports such as 'org.apache.geronimo.javamail.store.imap.connection.IMAPConnection'27
Avoid unused imports such as 'org.apache.geronimo.javamail.store.imap.connection.IMAPEnvelope'28
Avoid unused imports such as 'org.apache.geronimo.javamail.store.imap.connection.IMAPBodyStructure'29

org/apache/geronimo/javamail/store/imap/IMAPStore.java

ViolationLine
Avoid unused imports such as 'java.io.File'21
Avoid unused imports such as 'java.io.IOException'22
Avoid unused imports such as 'java.util.ArrayList'24
Avoid unused imports such as 'java.util.Iterator'25
Avoid unused imports such as 'javax.mail.AuthenticationFailedException'29
Avoid empty catch blocks488 - 489
Avoid empty catch blocks588 - 589

org/apache/geronimo/javamail/store/imap/Rights.java

ViolationLine
Avoid unused imports such as 'java.util.HashSet'22
Avoid unused imports such as 'java.util.Set'25

org/apache/geronimo/javamail/store/imap/connection/IMAPACLResponse.java

ViolationLine
Avoid unused imports such as 'org.apache.geronimo.javamail.store.imap.connection.IMAPResponseTokenizer.Token'28

org/apache/geronimo/javamail/store/imap/connection/IMAPBodySection.java

ViolationLine
Avoid unused imports such as 'java.util.StringTokenizer'22

org/apache/geronimo/javamail/store/imap/connection/IMAPBodyStructure.java

ViolationLine
Avoid unused imports such as 'java.util.Date'21
Avoid unused imports such as 'java.util.Iterator'22

org/apache/geronimo/javamail/store/imap/connection/IMAPCapabilityResponse.java

ViolationLine
Avoid unused imports such as 'org.apache.geronimo.javamail.store.imap.connection.IMAPResponseTokenizer.Token'26

org/apache/geronimo/javamail/store/imap/connection/IMAPCommand.java

ViolationLine
Avoid unused imports such as 'java.text.SimpleDateFormat'25
Avoid unused imports such as 'java.util.Vector'29
Avoid unused imports such as 'javax.mail.search.DateTerm'42
Avoid unused imports such as 'javax.mail.search.MessageNumberTerm'48
Avoid unused imports such as 'org.apache.geronimo.javamail.store.imap.Rights'63
Avoid empty catch blocks120 - 121
Avoid empty catch blocks162 - 163
Avoid empty catch blocks231 - 232
Avoid empty catch blocks516 - 517
Avoid empty catch blocks533 - 534
Avoid empty catch blocks554 - 555
Avoid empty catch blocks570 - 571
Avoid empty catch blocks597 - 598
Avoid empty catch blocks612 - 613
Avoid empty catch blocks623 - 624
Avoid empty catch blocks641 - 642
Avoid empty catch blocks669 - 670
Avoid empty catch blocks686 - 687

org/apache/geronimo/javamail/store/imap/connection/IMAPConnection.java

ViolationLine
Avoid unused imports such as 'java.io.InputStream'21
Avoid unused imports such as 'java.io.OutputStream'22
Avoid unused imports such as 'java.io.PrintStream'23
Avoid unused imports such as 'java.io.UnsupportedEncodingException'24
Avoid unused imports such as 'java.io.Writer'25
Avoid unused imports such as 'java.net.InetAddress'26
Avoid unused imports such as 'java.net.Socket'27
Avoid unused imports such as 'java.net.SocketException'28
Avoid unused imports such as 'java.net.UnknownHostException'29
Avoid unused imports such as 'java.util.HashMap'32
Avoid unused imports such as 'java.util.StringTokenizer'36
Avoid unused imports such as 'javax.mail.Address'38
Avoid unused imports such as 'javax.mail.AuthenticationFailedException'39
Avoid unused imports such as 'javax.mail.Message'43
Avoid unused imports such as 'javax.mail.Session'47
Avoid unused imports such as 'javax.mail.URLName'49
Avoid unused imports such as 'org.apache.geronimo.javamail.util.TraceInputStream'66
Avoid unused imports such as 'org.apache.geronimo.javamail.util.TraceOutputStream'67
These nested if statements could be combined476 - 478
Avoid empty catch blocks872 - 875

org/apache/geronimo/javamail/store/imap/connection/IMAPConnectionPool.java

ViolationLine
Avoid unused imports such as 'java.util.StringTokenizer'24
Avoid unused imports such as 'javax.mail.Session'27
Avoid unused imports such as 'javax.mail.Store'28
Avoid empty catch blocks508 - 511
Avoid empty catch blocks534 - 536
Avoid empty catch blocks554 - 556
Avoid empty catch blocks566 - 568

org/apache/geronimo/javamail/store/imap/connection/IMAPContinuationResponse.java

ViolationLine
Avoid unused imports such as 'java.util.ArrayList'20
Avoid unused imports such as 'java.util.List'21
Avoid unused imports such as 'javax.mail.MessagingException'23

org/apache/geronimo/javamail/store/imap/connection/IMAPDateFormat.java

ViolationLine
Avoid unused imports such as 'java.text.ParsePosition'22

org/apache/geronimo/javamail/store/imap/connection/IMAPFetchDataItem.java

ViolationLine
Avoid unused imports such as 'javax.mail.internet.MailDateFormat'20

org/apache/geronimo/javamail/store/imap/connection/IMAPFlags.java

ViolationLine
Avoid unused imports such as 'java.util.List'20

org/apache/geronimo/javamail/store/imap/connection/IMAPFlagsResponse.java

ViolationLine
Avoid unused imports such as 'java.util.List'23

org/apache/geronimo/javamail/store/imap/connection/IMAPInternalDate.java

ViolationLine
Avoid unused imports such as 'org.apache.geronimo.javamail.util.ResponseFormatException'24

org/apache/geronimo/javamail/store/imap/connection/IMAPListRightsResponse.java

ViolationLine
Avoid unused imports such as 'org.apache.geronimo.javamail.store.imap.connection.IMAPResponseTokenizer.Token'26

org/apache/geronimo/javamail/store/imap/connection/IMAPMailboxStatus.java

ViolationLine
Avoid unused local variables such as 'name'.125
Avoid unused local variables such as 'name'.152

org/apache/geronimo/javamail/store/imap/connection/IMAPNamespace.java

ViolationLine
Avoid unused imports such as 'java.util.ArrayList'20
Avoid unused imports such as 'java.util.List'21

org/apache/geronimo/javamail/store/imap/connection/IMAPOkResponse.java

ViolationLine
Avoid unused imports such as 'java.util.ArrayList'19
Avoid unused imports such as 'javax.mail.MessagingException'22

org/apache/geronimo/javamail/store/imap/connection/IMAPResponse.java

ViolationLine
Avoid unused imports such as 'javax.mail.MessagingException'19

org/apache/geronimo/javamail/store/imap/connection/IMAPResponseStream.java

ViolationLine
Avoid unused imports such as 'java.io.ByteArrayOutputStream'20
Avoid unused imports such as 'java.util.HashMap'24
Avoid unused imports such as 'java.util.Map'25
Avoid unused imports such as 'javax.mail.event.FolderEvent'28
Avoid unused imports such as 'org.apache.geronimo.javamail.util.ConnectionException'31

org/apache/geronimo/javamail/store/imap/connection/IMAPResponseTokenizer.java

ViolationLine
Avoid empty catch blocks111 - 112
Avoid empty catch blocks129 - 130
Avoid unused local variables such as 'intValue'.241
Avoid empty catch blocks243 - 244
These nested if statements could be combined281 - 283
Avoid empty while statements575

org/apache/geronimo/javamail/store/imap/connection/IMAPSearchDateFormat.java

ViolationLine
Avoid unused imports such as 'java.text.ParsePosition'22

org/apache/geronimo/javamail/store/imap/connection/IMAPSizeResponse.java

ViolationLine
Avoid unused imports such as 'java.util.ArrayList'19
Avoid unused imports such as 'java.util.List'20
Avoid unused imports such as 'java.util.Map'21
Avoid unused imports such as 'javax.mail.MessagingException'23

org/apache/geronimo/javamail/store/imap/connection/IMAPTaggedResponse.java

ViolationLine
Avoid unused imports such as 'java.util.ArrayList'19
Avoid unused imports such as 'java.util.List'20
Avoid unused imports such as 'javax.mail.MessagingException'22

org/apache/geronimo/javamail/store/imap/connection/IMAPUntaggedResponse.java

ViolationLine
Avoid unused imports such as 'java.util.ArrayList'19
Avoid unused imports such as 'java.util.List'20
Avoid unused imports such as 'javax.mail.MessagingException'22

org/apache/geronimo/javamail/store/nntp/NNTPGroupFolder.java

ViolationLine
Avoid empty catch blocks115 - 117
Avoid empty catch blocks125 - 127
Avoid empty catch blocks135 - 137
Avoid empty catch blocks289 - 291
Avoid empty catch blocks299 - 302

org/apache/geronimo/javamail/store/nntp/NNTPMessage.java

ViolationLine
Avoid empty catch blocks135 - 137

org/apache/geronimo/javamail/store/nntp/NNTPRootFolder.java

ViolationLine
These nested if statements could be combined203 - 205

org/apache/geronimo/javamail/store/nntp/NNTPStore.java

ViolationLine
Avoid unused imports such as 'java.io.PrintStream'23

org/apache/geronimo/javamail/store/nntp/newsrc/NNTPNewsrc.java

ViolationLine
Avoid empty catch blocks76 - 80
Avoid empty catch blocks84 - 86
Avoid empty catch blocks168 - 170

org/apache/geronimo/javamail/store/nntp/newsrc/Range.java

ViolationLine
Avoid empty catch blocks94 - 95

org/apache/geronimo/javamail/store/pop3/POP3Folder.java

ViolationLine
Avoid unused imports such as 'java.util.List'22
Avoid unused imports such as 'javax.mail.FolderClosedException'27
Avoid unused imports such as 'javax.mail.Session'31
Avoid unused imports such as 'javax.mail.Store'32
Avoid unused imports such as 'javax.mail.URLName'33
These nested if statements could be combined269 - 275
Avoid empty catch blocks341 - 342

org/apache/geronimo/javamail/store/pop3/POP3Message.java

ViolationLine
Avoid unused imports such as 'java.io.ByteArrayOutputStream'23
Avoid empty catch blocks145 - 147

org/apache/geronimo/javamail/store/pop3/POP3RootFolder.java

ViolationLine
Avoid unused imports such as 'javax.mail.Message'22
Avoid unused imports such as 'javax.mail.MethodNotSupportedException'24
Avoid unused imports such as 'javax.mail.Store'25
Avoid unused imports such as 'org.apache.geronimo.javamail.store.pop3.connection.POP3Connection'27

org/apache/geronimo/javamail/store/pop3/POP3Store.java

ViolationLine
Avoid unused imports such as 'javax.mail.AuthenticationFailedException'26
Avoid empty catch blocks254 - 255
Avoid empty catch blocks289 - 290

org/apache/geronimo/javamail/store/pop3/connection/POP3Connection.java

ViolationLine
Avoid unused imports such as 'java.net.InetAddress'21
Avoid unused imports such as 'java.net.Socket'22
Avoid unused imports such as 'java.net.SocketException'23
Avoid unused imports such as 'java.net.UnknownHostException'24
Avoid unused imports such as 'java.util.ArrayList'27
Avoid unused imports such as 'java.util.Date'28
Avoid unused imports such as 'java.util.HashMap'29
Avoid unused imports such as 'java.util.Iterator'30
Avoid unused imports such as 'java.util.LinkedList'31
Avoid unused imports such as 'java.util.StringTokenizer'33
Avoid unused imports such as 'javax.mail.internet.InternetHeaders'36
Avoid unused imports such as 'org.apache.geronimo.javamail.util.InvalidCommandException'42
Avoid unused local variables such as 'source'.258
Avoid empty catch blocks489 - 491
Avoid empty catch blocks498 - 500
Avoid empty catch blocks506 - 507

org/apache/geronimo/javamail/store/pop3/connection/POP3ConnectionPool.java

ViolationLine
Avoid unused imports such as 'java.util.ArrayList'20
Avoid unused imports such as 'java.util.Iterator'21
Avoid unused imports such as 'java.util.List'22
Avoid unused imports such as 'java.util.Map'23
Avoid unused imports such as 'java.util.StringTokenizer'24
Avoid unused imports such as 'javax.mail.Session'27
Avoid unused imports such as 'javax.mail.Store'28
Avoid unused imports such as 'javax.mail.StoreClosedException'30

org/apache/geronimo/javamail/store/pop3/connection/POP3ListResponse.java

ViolationLine
Avoid unused imports such as 'java.io.ByteArrayInputStream'22

org/apache/geronimo/javamail/transport/nntp/NNTPConnection.java

ViolationLine
Avoid unused imports such as 'java.io.InputStream'25
Avoid unused imports such as 'java.io.OutputStream'27
Avoid unused imports such as 'java.io.PrintStream'28
Avoid unused imports such as 'java.lang.reflect.InvocationTargetException'30
Avoid unused imports such as 'java.lang.reflect.Method'31
Avoid unused imports such as 'java.net.InetAddress'32
Avoid unused imports such as 'java.net.Socket'33
Avoid unused imports such as 'javax.mail.Session'41
Avoid unused imports such as 'org.apache.geronimo.mail.util.SessionUtil'49

org/apache/geronimo/javamail/transport/nntp/NNTPTransport.java

ViolationLine
Avoid unused imports such as 'java.io.PrintStream'22
Avoid unused local variables such as 'from'.160
Avoid unused local variables such as 'haveGroup'.180

org/apache/geronimo/javamail/transport/smtp/SMTPConnection.java

ViolationLine
Avoid unused imports such as 'java.io.BufferedOutputStream'23
Avoid unused imports such as 'java.io.InputStreamReader'26
Avoid unused imports such as 'java.io.OutputStream'27
Avoid unused imports such as 'java.io.PrintStream'28
Avoid unused imports such as 'java.lang.reflect.InvocationTargetException'31
Avoid unused imports such as 'java.lang.reflect.Method'32
Avoid unused imports such as 'java.net.InetAddress'33
Avoid unused imports such as 'java.net.Socket'34
Avoid unused imports such as 'javax.mail.Session'49
These nested if statements could be combined266 - 277
These nested if statements could be combined425 - 443
Avoid empty catch blocks447 - 448
Avoid empty catch blocks448 - 449
Avoid empty catch blocks774 - 776

org/apache/geronimo/javamail/transport/smtp/SMTPTransport.java

ViolationLine
Avoid unused imports such as 'java.io.IOException'22
Avoid unused imports such as 'java.io.UnsupportedEncodingException'23
Avoid unused imports such as 'javax.mail.AuthenticationFailedException'28
Avoid unused imports such as 'javax.mail.internet.MimeMultipart'37
Avoid unused imports such as 'javax.mail.internet.MimePart'38
These nested if statements could be combined321 - 344

org/apache/geronimo/javamail/util/MailConnection.java

ViolationLine
Error while parsing /Users/bohn/geronimo-javamail/trunk/geronimo-javamail_1.4/target/checkout/geronimo-javamail_1.4_provider/src/main/java/org/apache/geronimo/javamail/util/MailConnection.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /Users/bohn/geronimo-javamail/trunk/geronimo-javamail_1.4/target/checkout/geronimo-javamail_1.4_provider/src/main/java/org/apache/geronimo/javamail/util/MailConnection.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /Users/bohn/geronimo-javamail/trunk/geronimo-javamail_1.4/target/checkout/geronimo-javamail_1.4_provider/src/main/java/org/apache/geronimo/javamail/util/MailConnection.java: Can't use generics unless running in JDK 1.5 mode!0