FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is

Effort is min

Summary

Classes Bugs Errors Missing Classes
308 54 0 0

davmail.DavGateway

Bug Category Details Line Priority
Redundant nullcheck of currentVersion, which is known to be non-null in davmail.DavGateway.start() STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 149 Medium

davmail.caldav.CaldavConnection$CaldavRequest

Bug Category Details Line Priority
Boxing/unboxing to parse a primitive davmail.caldav.CaldavConnection$CaldavRequest.buildDepth() PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 1477 High

davmail.exchange.ExchangeSession

Bug Category Details Line Priority
davmail.exchange.ExchangeSession.CONTACT_ATTRIBUTES is a mutable collection MALICIOUS_CODE MS_MUTABLE_COLLECTION 3419 High
davmail.exchange.ExchangeSession.IMAP_MESSAGE_ATTRIBUTES is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 816 Medium
davmail.exchange.ExchangeSession.PASSWORD_FIELDS is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 77 Medium
davmail.exchange.ExchangeSession.POP_MESSAGE_ATTRIBUTES is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 797 Medium
davmail.exchange.ExchangeSession.TOKEN_FIELDS is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 87 Medium
davmail.exchange.ExchangeSession.UID_MESSAGE_ATTRIBUTES is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 837 Medium
davmail.exchange.ExchangeSession.USER_NAME_FIELDS is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 66 Medium

davmail.exchange.ExchangeSession$MessageList

Bug Category Details Line Priority
davmail.exchange.ExchangeSession$MessageList is Serializable; consider declaring a serialVersionUID BAD_PRACTICE SE_NO_SERIALVERSIONID 2213 Medium

davmail.exchange.VCalendar

Bug Category Details Line Priority
Uninitialized read of vTimezone in new davmail.exchange.VCalendar(BufferedReader, String, VObject) CORRECTNESS UR_UNINIT_READ 54 High

davmail.exchange.VProperty

Bug Category Details Line Priority
davmail.exchange.VProperty.MULTIVALUED_PROPERTIES is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 33 Medium

davmail.exchange.dav.DavExchangeSession

Bug Category Details Line Priority
davmail.exchange.dav.DavExchangeSession.EVENT_REQUEST_PROPERTIES is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 2200 Medium
davmail.exchange.dav.DavExchangeSession.FOLDER_PROPERTIES is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 1791 Medium
davmail.exchange.dav.DavExchangeSession.ITEM_PROPERTIES is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 2101 Medium
davmail.exchange.dav.DavExchangeSession.importanceToPriorityMap is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 3064 Medium
davmail.exchange.dav.DavExchangeSession.priorityToImportanceMap is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 3072 Medium
Unread public/protected field: davmail.exchange.dav.DavExchangeSession.outboxName STYLE URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD 818 Medium

davmail.exchange.dav.ExchangePropFindMethod

Bug Category Details Line Priority
Return value of org.apache.jackrabbit.webdav.property.DavPropertyName.getName() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 64 Medium

davmail.exchange.dav.Field

Bug Category Details Line Priority
davmail.exchange.dav.Field.distinguishedPropertySetMap is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 42 Medium
davmail.exchange.dav.Field.fieldMap is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 91 Medium
davmail.exchange.dav.Field.propertyTypeMap is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 74 Medium

davmail.exchange.ews.EWSMethod$Item

Bug Category Details Line Priority
Class davmail.exchange.ews.EWSMethod$Item defines non-transient non-serializable instance field attachments BAD_PRACTICE SE_BAD_FIELD Not available Medium
Class davmail.exchange.ews.EWSMethod$Item defines non-transient non-serializable instance field attendees BAD_PRACTICE SE_BAD_FIELD Not available Medium
Class davmail.exchange.ews.EWSMethod$Item defines non-transient non-serializable instance field fieldUpdates BAD_PRACTICE SE_BAD_FIELD Not available Medium
Class davmail.exchange.ews.EWSMethod$Item defines non-transient non-serializable instance field occurrences BAD_PRACTICE SE_BAD_FIELD Not available Medium

davmail.exchange.ews.EwsExchangeSession

Bug Category Details Line Priority
davmail.exchange.ews.EwsExchangeSession.EVENT_REQUEST_PROPERTIES is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 1997 Medium
davmail.exchange.ews.EwsExchangeSession.FOLDER_PROPERTIES is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 1074 Medium
davmail.exchange.ews.EwsExchangeSession.GALFIND_ATTRIBUTE_MAP is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 2428 Medium
davmail.exchange.ews.EwsExchangeSession.IGNORE_ATTRIBUTE_SET is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 2457 Medium
davmail.exchange.ews.EwsExchangeSession.ITEM_PROPERTIES is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 1986 Medium
davmail.exchange.ews.EwsExchangeSession.MESSAGE_TYPES is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 62 Medium
davmail.exchange.ews.EwsExchangeSession.importanceToPriorityMap is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 2656 Medium
davmail.exchange.ews.EwsExchangeSession.priorityToImportanceMap is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 2664 Medium

davmail.exchange.ews.EwsExchangeSession$AttributeCondition

Bug Category Details Line Priority
Redundant nullcheck of fieldURI, which is known to be non-null in davmail.exchange.ews.EwsExchangeSession$AttributeCondition.getFieldURI() STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 869 Medium

davmail.http.DavGatewaySSLProtocolSocketFactory

Bug Category Details Line Priority
davmail.http.DavGatewaySSLProtocolSocketFactory.createSSLContext() might ignore java.lang.Exception BAD_PRACTICE DE_MIGHT_IGNORE 140 Medium
Exception is caught when Exception is not thrown in davmail.http.DavGatewaySSLProtocolSocketFactory.createSSLContext() STYLE REC_CATCH_EXCEPTION 140 Medium

davmail.http.DavGatewayX509TrustManager

Bug Category Details Line Priority
Found reliance on default encoding in davmail.http.DavGatewayX509TrustManager.isCertificateTrusted(X509Certificate): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 108 High

davmail.http.KerberosHelper$3

Bug Category Details Line Priority

davmail.http.KerberosHelper$KerberosCallbackHandler

Bug Category Details Line Priority
Found reliance on default encoding in davmail.http.KerberosHelper$KerberosCallbackHandler.handle(Callback[]): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 72 High

davmail.http.KerberosLoginConfiguration

Bug Category Details Line Priority
davmail.http.KerberosLoginConfiguration.getAppConfigurationEntry(String) may expose internal representation by returning KerberosLoginConfiguration.CLIENT_LOGIN_MODULE MALICIOUS_CODE EI_EXPOSE_REP 81 Medium
davmail.http.KerberosLoginConfiguration.getAppConfigurationEntry(String) may expose internal representation by returning KerberosLoginConfiguration.SERVER_LOGIN_MODULE MALICIOUS_CODE EI_EXPOSE_REP 83 Medium
davmail.http.KerberosLoginConfiguration.CLIENT_LOGIN_MODULE should be package protected MALICIOUS_CODE MS_PKGPROTECT 59 Medium
davmail.http.KerberosLoginConfiguration.SERVER_LOGIN_MODULE should be package protected MALICIOUS_CODE MS_PKGPROTECT 72 Medium

davmail.http.SunPKCS11ProviderHandler

Bug Category Details Line Priority
Found reliance on default encoding in davmail.http.SunPKCS11ProviderHandler.registerProvider(String): String.getBytes() I18N DM_DEFAULT_ENCODING 41 High

davmail.imap.ImapConnection

Bug Category Details Line Priority
davmail.imap.ImapConnection.handleRefresh(TreeMap, TreeMap) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 749 Medium

davmail.ldap.LdapConnection

Bug Category Details Line Priority
Repeated conditional test in davmail.ldap.LdapConnection.parseSimpleFilter(BerDecoder, int) CORRECTNESS RpC_REPEATED_CONDITIONAL_TEST 766 Medium

davmail.pop.PopConnection

Bug Category Details Line Priority
Boxing/unboxing to parse a primitive davmail.pop.PopConnection.run() PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 170 High

davmail.service.DavService

Bug Category Details Line Priority
Switch statement found in davmail.service.DavService.serviceRequest(int) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 44-49 Medium

davmail.ui.SelectCertificateDialog

Bug Category Details Line Priority
new davmail.ui.SelectCertificateDialog(String[], String[]) may expose internal representation by storing an externally mutable object into SelectCertificateDialog.aliases MALICIOUS_CODE EI_EXPOSE_REP2 53 Medium

davmail.ui.tray.AwtGatewayTray$11

Bug Category Details Line Priority
davmail.ui.tray.AwtGatewayTray$11.actionPerformed(ActionEvent) invokes System.exit(...), which shuts down the entire virtual machine BAD_PRACTICE DM_EXIT 261 Medium

davmail.ui.tray.FrameGatewayTray$12

Bug Category Details Line Priority
davmail.ui.tray.FrameGatewayTray$12.actionPerformed(ActionEvent) invokes System.exit(...), which shuts down the entire virtual machine BAD_PRACTICE DM_EXIT 256 Medium

davmail.ui.tray.SwtGatewayTray$5

Bug Category Details Line Priority
davmail.ui.tray.SwtGatewayTray$5.run() invokes System.exit(...), which shuts down the entire virtual machine BAD_PRACTICE DM_EXIT 392 Medium