| <?xml version="1.0"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <!-- |
| This file contains some false positive bugs detected by spotbugs. Their |
| false positive nature has been analyzed individually and they have been |
| put here to instruct findbugs it must ignore them. |
| --> |
| <FindBugsFilter |
| xmlns="https://github.com/spotbugs/filter/3.0.0" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubusercontent.com/spotbugs/spotbugs/3.1.0/spotbugs/etc/findbugsfilter.xsd"> |
| <!-- Reason: Intentionally exposing an array --> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.jpeg.segments.DqtSegment$QuantizationTable" /> |
| <Method name="getElements" /> |
| <Bug pattern="EI_EXPOSE_REP" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.jpeg.segments.DqtSegment$QuantizationTable" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.tiff.AbstractTiffElement$DataElement" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.tiff.TiffField" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.tiff.AbstractTiffImageData$Strips" /> |
| <Method name="getImageData" /> |
| <Bug pattern="EI_EXPOSE_REP" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.tiff.AbstractTiffImageData$Strips" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.tiff.TiffRasterData" /> |
| <Method name="getData" /> |
| <Bug pattern="EI_EXPOSE_REP" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.tiff.TiffRasterData" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.tiff.TiffRasterDataFloat" /> |
| <Method name="getData" /> |
| <Bug pattern="EI_EXPOSE_REP" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.tiff.TiffRasterDataFloat" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.tiff.TiffRasterDataInt" /> |
| <Method name="getIntData" /> |
| <Bug pattern="EI_EXPOSE_REP" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.tiff.TiffRasterDataInt" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.tiff.datareaders.ImageDataReader" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.tiff.photometricinterpreters.PhotometricInterpreter" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.tiff.write.TiffImageWriterLossless" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.tiff.write.TiffOutputField" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.icc.IccProfileInfo" /> |
| <Method name="getTags" /> |
| <Bug pattern="EI_EXPOSE_REP" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.icc.IccProfileInfo" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.icc.IccTag" /> |
| <Method name="setData" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.palette.SimplePalette" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.tiff.write.TiffOutputDirectory" /> |
| <Method name="setNextDirectory" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.tiff.TiffImageMetadata$Directory" /> |
| <Method name="<init>" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.tiff.TiffField" /> |
| <Method name="getFieldType" /> |
| <Bug pattern="EI_EXPOSE_REP" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.jpeg.decoder.JpegDecoder" /> |
| <Method name="decode" /> |
| <Bug pattern="EI_EXPOSE_REP" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.jpeg.JpegImageMetadata" /> |
| <Method name="getExif" /> |
| <Bug pattern="EI_EXPOSE_REP" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.jpeg.JpegImageMetadata" /> |
| <Method name="getPhotoshop" /> |
| <Bug pattern="EI_EXPOSE_REP" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.jpeg.JpegImageMetadata" /> |
| <Method name="<init>" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.mylzw.MyLzwCompressor" /> |
| <Method name="<init>" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.tiff.TiffImagingParameters" /> |
| <Method name="getOutputSet" /> |
| <Bug pattern="EI_EXPOSE_REP" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.tiff.TiffImagingParameters" /> |
| <Method name="setOutputSet" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.webp.WebPImageMetadata" /> |
| <Method name="getExif" /> |
| <Bug pattern="EI_EXPOSE_REP" /> |
| </Match> |
| <Match> |
| <Class name="org.apache.commons.imaging.formats.webp.WebPImageMetadata" /> |
| <Method name="<init>" /> |
| <Bug pattern="EI_EXPOSE_REP2" /> |
| </Match> |
| <!-- Reason: We don't want to implement Serializable at all. --> |
| <Match> |
| <Bug pattern="SE_COMPARATOR_SHOULD_BE_SERIALIZABLE" /> |
| </Match> |
| <!-- https://github.com/spotbugs/spotbugs/issues/2710 --> |
| <Match> |
| <Class name="~.*" /> |
| <Bug pattern="CT_CONSTRUCTOR_THROW" /> |
| </Match> |
| </FindBugsFilter> |