| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved. |
| |
| This program and the accompanying materials are made available under the |
| terms of the Eclipse Public License v. 2.0, which is available at |
| http://www.eclipse.org/legal/epl-2.0. |
| |
| This Source Code may also be made available under the following Secondary |
| Licenses when the conditions for such availability set forth in the |
| Eclipse Public License v. 2.0 are satisfied: GNU General Public License, |
| version 2 with the GNU Classpath Exception, which is available at |
| https://www.gnu.org/software/classpath/license.html. |
| |
| SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 |
| |
| --> |
| |
| <!-- FindBugs exclude list for JavaMail mbox provider --> |
| |
| <FindBugsFilter> |
| <!-- |
| Without multi-catch we just catch all possible exceptions. |
| --> |
| <Match> |
| <Class name="com.sun.mail.mbox.MboxStore"/> |
| <Method name="<init>"/> <!-- match constructor --> |
| <Bug pattern="REC_CATCH_EXCEPTION"/> |
| </Match> |
| |
| <!-- |
| We purposely return null instead of an empty list. |
| --> |
| <Match> |
| <Class name="com.sun.mail.mbox.MboxFolder"/> |
| <Method name="load"/> |
| <Bug pattern="PZLA_PREFER_ZERO_LENGTH_ARRAYS"/> |
| </Match> |
| |
| <!-- |
| We purposely don't close this stream, which is just a wrapper |
| around the original stream that needs to remain open. |
| --> |
| <Match> |
| <Class name="com.sun.mail.mbox.SunV3Multipart"/> |
| <Method name="parse"/> |
| <Bug pattern="OS_OPEN_STREAM"/> |
| </Match> |
| |
| <!-- |
| When deleting the temp file fails, there's really nothing to be done. |
| --> |
| <Match> |
| <Class name="com.sun.mail.mbox.TempFile"/> |
| <Method name="close"/> |
| <Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE"/> |
| </Match> |
| |
| <!-- |
| We never serialize this class. |
| --> |
| <Match> |
| <Class name="com.sun.mail.mbox.UNIXInbox"/> |
| <Field name="lockfileName"/> |
| <Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED"/> |
| </Match> |
| |
| <!-- |
| If close fails, what are we supposed to do? |
| --> |
| <Match> |
| <Class name="com.sun.mail.mbox.MboxFolder"/> |
| <Method name="appendMessages"/> |
| <Bug pattern="DE_MIGHT_IGNORE"/> |
| </Match> |
| |
| <!-- |
| If getSentDate fails, treat it the same as returning null. |
| --> |
| <Match> |
| <Class name="com.sun.mail.mbox.MboxMessage"/> |
| <Method name="getUnixFromLine"/> |
| <Bug pattern="DE_MIGHT_IGNORE"/> |
| </Match> |
| </FindBugsFilter> |