363N/A<?xml version="1.0" encoding="UTF-8"?>
363N/A<!--
363N/A
363N/A DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
363N/A
583N/A Copyright (c) 2010-2013 Oracle and/or its affiliates. All rights reserved.
363N/A
363N/A The contents of this file are subject to the terms of either the GNU
363N/A General Public License Version 2 only ("GPL") or the Common Development
363N/A and Distribution License("CDDL") (collectively, the "License"). You
363N/A may not use this file except in compliance with the License. You can
363N/A obtain a copy of the License at
363N/A https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
363N/A or packager/legal/LICENSE.txt. See the License for the specific
363N/A language governing permissions and limitations under the License.
363N/A
363N/A When distributing the software, include this License Header Notice in each
363N/A file and include the License file at packager/legal/LICENSE.txt.
363N/A
363N/A GPL Classpath Exception:
363N/A Oracle designates this particular file as subject to the "Classpath"
363N/A exception as provided by Oracle in the GPL Version 2 section of the License
363N/A file that accompanied this code.
363N/A
363N/A Modifications:
363N/A If applicable, add the following below the License Header, with the fields
363N/A enclosed by brackets [] replaced by your own identifying information:
363N/A "Portions Copyright [year] [name of copyright owner]"
363N/A
363N/A Contributor(s):
363N/A If you wish your version of this file to be governed by only the CDDL or
363N/A only the GPL Version 2, indicate your decision by adding "[Contributor]
363N/A elects to include this software in this distribution under the [CDDL or GPL
363N/A Version 2] license." If you don't indicate a single choice of license, a
363N/A recipient has the option to distribute your version of this file under
363N/A either the CDDL, the GPL Version 2 or to extend the choice of license to
363N/A its licensees as provided above. However, if you add GPL Version 2 code
363N/A and therefore, elected the GPL Version 2 license, then the option applies
363N/A only if the new code is made subject to such option by the copyright
363N/A holder.
363N/A
363N/A-->
363N/A
363N/A<!-- FindBugs exclude list for JavaMail mbox provider -->
363N/A
363N/A<FindBugsFilter>
363N/A <!--
363N/A Without multi-catch we just catch all possible exceptions.
363N/A -->
363N/A <Match>
363N/A <Class name="com.sun.mail.mbox.MboxStore"/>
363N/A <Method name="&lt;init&gt;"/> <!-- match constructor -->
363N/A <Bug pattern="REC_CATCH_EXCEPTION"/>
363N/A </Match>
363N/A
363N/A <!--
583N/A We purposely return null instead of an empty list.
583N/A -->
583N/A <Match>
583N/A <Class name="com.sun.mail.mbox.MboxFolder"/>
583N/A <Method name="load"/>
583N/A <Bug pattern="PZLA_PREFER_ZERO_LENGTH_ARRAYS"/>
583N/A </Match>
583N/A
583N/A <!--
363N/A We purposely don't close this stream, which is just a wrapper
363N/A around the original stream that needs to remain open.
363N/A -->
363N/A <Match>
363N/A <Class name="com.sun.mail.mbox.SunV3Multipart"/>
363N/A <Method name="parse"/>
363N/A <Bug pattern="OS_OPEN_STREAM"/>
363N/A </Match>
363N/A
363N/A <!--
363N/A When deleting the temp file fails, there's really nothing to be done.
363N/A -->
363N/A <Match>
363N/A <Class name="com.sun.mail.mbox.TempFile"/>
363N/A <Method name="close"/>
363N/A <Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE"/>
363N/A </Match>
583N/A
583N/A <!--
583N/A We never serialize this class.
583N/A -->
583N/A <Match>
583N/A <Class name="com.sun.mail.mbox.UNIXInbox"/>
583N/A <Field name="lockfileName"/>
583N/A <Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED"/>
583N/A </Match>
363N/A</FindBugsFilter>