commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1417043 [1/21] - in /commons/proper/imaging/trunk/src: main/java/org/apache/commons/imaging/ main/java/org/apache/commons/imaging/color/ main/java/org/apache/commons/imaging/common/ main/java/org/apache/commons/imaging/common/bytesource/ m...
Date Tue, 04 Dec 2012 17:24:32 GMT
Author: ggregory
Date: Tue Dec  4 17:23:16 2012
New Revision: 1417043

URL: http://svn.apache.org/viewvc?rev=1417043&view=rev
Log:
Use final where possible.

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ColorTools.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/FormatCompliance.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageDump.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageFormat.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageInfo.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageReadException.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageWriteException.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/Imaging.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImagingException.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/PixelDensity.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/color/ColorCieLab.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/color/ColorCieLch.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/color/ColorCieLuv.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/color/ColorCmy.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/color/ColorCmyk.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/color/ColorConversions.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/color/ColorHsl.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/color/ColorHsv.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/color/ColorHunterLab.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/color/ColorXyz.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/BasicCParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/BinaryConstant.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/BinaryConversions.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/BinaryFileFunctions.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/BinaryFileParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/BinaryInputStream.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/BinaryOutputStream.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/BitArrayOutputStream.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/BitInputStream.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/BitInputStreamFlexible.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/Compression.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/ImageBuilder.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/ImageMetadata.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/MyByteArrayOutputStream.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/PackBits.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/RationalNumber.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/RationalNumberUtilities.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/RgbBufferedImageFactory.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/SimpleBufferedImageFactory.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/ZLibUtils.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSource.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSourceArray.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSourceFile.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSourceInputStream.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/itu_t4/HuffmanTree.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/itu_t4/HuffmanTreeException.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/itu_t4/T4AndT6Compression.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/itu_t4/T4_T6_Tables.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/mylzw/BitsToByteInputStream.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/mylzw/MyBitInputStream.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/mylzw/MyBitOutputStream.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/mylzw/MyLzwCompressor.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/mylzw/MyLzwDecompressor.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/bmp/BmpHeaderInfo.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/bmp/BmpImageParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/bmp/ImageContents.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/bmp/pixelparsers/PixelParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/bmp/pixelparsers/PixelParserBitFields.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/bmp/pixelparsers/PixelParserRgb.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/bmp/pixelparsers/PixelParserRle.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/bmp/pixelparsers/PixelParserSimple.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/bmp/writers/BmpWriterPalette.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/bmp/writers/BmpWriterRgb.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/dcx/DcxImageParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/GenericGifBlock.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/GifBlock.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/GifHeaderInfo.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/GifImageParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/GraphicControlExtension.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/ImageContents.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/ImageDescriptor.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/icns/IcnsDecoder.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/icns/IcnsImageParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/icns/IcnsType.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/icns/Rle24Compression.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/ico/IcoImageParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/Block.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/JpegImageMetadata.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/JpegImageParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/JpegPhotoshopMetadata.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/JpegUtils.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/ZigZag.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/Dct.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/JpegDecoder.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/JpegInputStream.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/YCbCrConverter.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/exif/ExifRewriter.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcBlock.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcRecord.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcTypeLookup.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcTypes.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/JpegIptcRewriter.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/PhotoshopApp13Data.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/App13Segment.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/App14Segment.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/App2Segment.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/AppnSegment.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/ComSegment.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/DhtSegment.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/DqtSegment.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/GenericSegment.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/JfifSegment.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/Segment.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/SofnSegment.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/SosSegment.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/UnknownSegment.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/xmp/JpegRewriter.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/xmp/JpegXmpParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/xmp/JpegXmpRewriter.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pcx/PcxImageParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pcx/PcxWriter.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/BitParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/GammaCorrection.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/PngCrc.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/PngImageInfo.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/PngImageParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/PngText.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/PngWriter.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/ScanExpediter.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/ScanExpediterInterlaced.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/ScanExpediterSimple.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunk.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkGama.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkIccp.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkIdat.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkIhdr.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkItxt.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkPhys.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkPlte.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkText.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkZtxt.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngTextChunk.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterAverage.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterNone.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterPaeth.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterSub.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/scanlinefilters/ScanlineFilterUp.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/transparencyfilters/TransparencyFilter.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/transparencyfilters/TransparencyFilterGrayscale.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/transparencyfilters/TransparencyFilterIndexedColor.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/transparencyfilters/TransparencyFilterTrueColor.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pnm/FileInfo.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pnm/PamFileInfo.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pnm/PamWriter.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pnm/PbmFileInfo.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pnm/PbmWriter.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pnm/PgmFileInfo.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pnm/PgmWriter.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pnm/PnmImageParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pnm/PnmWriter.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pnm/PpmFileInfo.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pnm/PpmWriter.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pnm/WhiteSpaceReader.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/ImageContents.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/ImageResourceBlock.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/ImageResourceType.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/PsdConstants.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/PsdHeaderInfo.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/PsdImageParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/dataparsers/DataParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/dataparsers/DataParserBitmap.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/dataparsers/DataParserCmyk.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/dataparsers/DataParserGrayscale.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/dataparsers/DataParserIndexed.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/dataparsers/DataParserLab.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/dataparsers/DataParserRgb.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/dataparsers/DataParserStub.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/datareaders/CompressedDataReader.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/datareaders/DataReader.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/datareaders/UncompressedDataReader.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/rgbe/InfoHeaderReader.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/rgbe/RgbeImageParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/rgbe/RgbeInfo.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/JpegImageData.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffContents.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffDirectory.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffElement.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffField.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffHeader.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffImageData.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffImageMetadata.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffImageParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffReader.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffValueOutsideFileBoundsException.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/constants/TagConstantsUtils.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReader.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderStrips.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderTiled.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/fieldtypes/FieldType.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/fieldtypes/FieldTypeAscii.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/fieldtypes/FieldTypeByte.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/fieldtypes/FieldTypeDouble.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/fieldtypes/FieldTypeFloat.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/fieldtypes/FieldTypeLong.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/fieldtypes/FieldTypeRational.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/fieldtypes/FieldTypeShort.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/fieldtypes/FieldTypeUnknown.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/photometricinterpreters/PhotometricInterpreter.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/photometricinterpreters/PhotometricInterpreterBiLevel.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/photometricinterpreters/PhotometricInterpreterCieLab.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/photometricinterpreters/PhotometricInterpreterCmyk.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/photometricinterpreters/PhotometricInterpreterLogLuv.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/photometricinterpreters/PhotometricInterpreterPalette.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/photometricinterpreters/PhotometricInterpreterRgb.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/photometricinterpreters/PhotometricInterpreterYCbCr.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfo.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoAny.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoAscii.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoAsciiOrByte.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoAsciiOrRational.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoByte.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoByteOrShort.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoDouble.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoFloat.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoGpsText.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoLong.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoRational.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoSByte.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoSLong.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoSRational.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoSShort.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoShort.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoShortOrLong.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoShortOrLongOrRational.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoShortOrRational.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoUndefined.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoUnknown.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/taginfos/TagInfoXpString.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/ImageDataOffsets.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffImageWriterBase.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffImageWriterLossless.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffImageWriterLossy.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffOutputDirectory.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffOutputField.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffOutputItem.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffOutputSet.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffOutputSummary.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/wbmp/WbmpImageParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/xbm/XbmImageParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/xpm/XpmImageParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/icc/IccProfileInfo.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/icc/IccProfileParser.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/icc/IccTag.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/icc/IccTagDataTypes.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/icc/IccTagTypes.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/ColorSpaceSubset.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutQuantizer.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/PaletteFactory.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/QuantizedPalette.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/SimplePalette.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/util/CachingInputStream.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/util/CachingOutputStream.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/util/Debug.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/util/DebugInputStream.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/util/DebugOutputStream.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/util/IoUtils.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/util/ParamMap.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/util/UnicodeUtils.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/ImagingGuessFormatTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/ImagingTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/color/ColorConversionsTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/common/BinaryFileFunctionsTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/common/RationalNumberTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/common/bytesource/ByteSourceDataTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/common/bytesource/ByteSourceImageTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/common/bytesource/ByteSourceTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/examples/ApacheImagingSpeedAndMemoryTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/examples/ImageReadExample.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/examples/ImageWriteExample.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/examples/MetadataExample.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/examples/SampleUsage.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/examples/WriteExifMetadataExample.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/bmp/BmpBaseTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/bmp/BmpReadTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/bmp/BmpRoundtripTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/dcx/DcxBaseTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/dcx/DcxReadTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/gif/GifBaseTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/gif/GifReadTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/icns/IcnsBaseTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/icns/IcnsReadTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/icns/IcnsRoundTripTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/ico/IcoBaseTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/ico/IcoReadTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/ico/IcoRoundtripTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/JpegBaseTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/JpegReadTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/JpegWithJpegThumbnailTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/decoder/DctTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/exif/AsciiFieldTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/exif/ExifBaseTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/exif/ExifDumpTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/exif/ExifRewriteTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/exif/GpsTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/exif/MakerNoteFieldTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/exif/SpecificExifTagTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/exif/TextFieldTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/exif/WriteExifMetadataExampleTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcBaseTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcDumpTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcUpdateTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/xmp/JpegXmpBaseTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/xmp/JpegXmpDumpTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/xmp/JpegXmpRewriteTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/pam/PamBaseTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/pam/PamReadTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/pcx/PcxBaseTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/pcx/PcxReadTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/png/ConvertPngToGifTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/png/PngBaseTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/png/PngMultipleRoundtripTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/png/PngReadTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/png/PngTextTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/png/PngWriteForceTrueColorText.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/png/PngWriteReadTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/psd/PsdBaseTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/psd/PsdReadTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/rgbe/RgbeBaseTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/rgbe/RgbeReadTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/tiff/TiffBaseTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/tiff/TiffCcittTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/tiff/TiffLzwTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/tiff/TiffReadTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/tiff/TiffRoundtripTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/tiff/TiffTagIntegrityTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/wbmp/WbmpBaseTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/wbmp/WbmpReadTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/xbm/XbmBaseTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/xbm/XbmReadTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/xmp/XmpDumpTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/xmp/XmpUpdateTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/xpm/XpmBaseTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/xpm/XpmReadTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/roundtrip/RoundtripTest.java
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/test/util/FileSystemTraversal.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ColorTools.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ColorTools.java?rev=1417043&r1=1417042&r2=1417043&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ColorTools.java (original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ColorTools.java Tue Dec  4 17:23:16 2012
@@ -40,27 +40,27 @@ import java.io.IOException;
  */
 public class ColorTools {
 
-    public BufferedImage correctImage(BufferedImage src, File file)
+    public BufferedImage correctImage(final BufferedImage src, final File file)
             throws ImageReadException, IOException {
-        ICC_Profile icc = Imaging.getICCProfile(file);
+        final ICC_Profile icc = Imaging.getICCProfile(file);
         if (icc == null) {
             return src;
         }
 
-        ICC_ColorSpace cs = new ICC_ColorSpace(icc);
+        final ICC_ColorSpace cs = new ICC_ColorSpace(icc);
 
-        BufferedImage dst = convertFromColorSpace(src, cs);
+        final BufferedImage dst = convertFromColorSpace(src, cs);
         return dst;
     }
 
-    public BufferedImage relabelColorSpace(BufferedImage bi, ICC_Profile profile)
+    public BufferedImage relabelColorSpace(final BufferedImage bi, final ICC_Profile profile)
             throws ImagingOpException {
-        ICC_ColorSpace cs = new ICC_ColorSpace(profile);
+        final ICC_ColorSpace cs = new ICC_ColorSpace(profile);
 
         return relabelColorSpace(bi, cs);
     }
 
-    public BufferedImage relabelColorSpace(BufferedImage bi, ColorSpace cs)
+    public BufferedImage relabelColorSpace(final BufferedImage bi, final ColorSpace cs)
             throws ImagingOpException {
         // This does not do the conversion. It tries to relabel the
         // BufferedImage
@@ -68,13 +68,13 @@ public class ColorTools {
         // use this when the image is mislabeled, presumably having been
         // wrongly assumed to be sRGB
 
-        ColorModel cm = deriveColorModel(bi, cs);
+        final ColorModel cm = deriveColorModel(bi, cs);
 
         return relabelColorSpace(bi, cm);
 
     }
 
-    public BufferedImage relabelColorSpace(BufferedImage bi, ColorModel cm)
+    public BufferedImage relabelColorSpace(final BufferedImage bi, final ColorModel cm)
             throws ImagingOpException {
         // This does not do the conversion. It tries to relabel the
         // BufferedImage
@@ -82,28 +82,28 @@ public class ColorTools {
         // use this when the image is mislabeled, presumably having been
         // wrongly assumed to be sRGB
 
-        BufferedImage result = new BufferedImage(cm, bi.getRaster(), false,
+        final BufferedImage result = new BufferedImage(cm, bi.getRaster(), false,
                 null);
 
         return result;
     }
 
-    public ColorModel deriveColorModel(BufferedImage bi, ColorSpace cs)
+    public ColorModel deriveColorModel(final BufferedImage bi, final ColorSpace cs)
             throws ImagingOpException {
         // boolean hasAlpha = (bi.getAlphaRaster() != null);
         return deriveColorModel(bi, cs, false);
     }
 
-    public ColorModel deriveColorModel(BufferedImage bi, ColorSpace cs,
-            boolean force_no_alpha) throws ImagingOpException {
+    public ColorModel deriveColorModel(final BufferedImage bi, final ColorSpace cs,
+            final boolean force_no_alpha) throws ImagingOpException {
         return deriveColorModel(bi.getColorModel(), cs, force_no_alpha);
     }
 
-    public ColorModel deriveColorModel(ColorModel old_cm, ColorSpace cs,
-            boolean force_no_alpha) throws ImagingOpException {
+    public ColorModel deriveColorModel(final ColorModel old_cm, final ColorSpace cs,
+            final boolean force_no_alpha) throws ImagingOpException {
 
         if (old_cm instanceof ComponentColorModel) {
-            ComponentColorModel ccm = (ComponentColorModel) old_cm;
+            final ComponentColorModel ccm = (ComponentColorModel) old_cm;
             // ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_sRGB);
             if (force_no_alpha) {
                 return new ComponentColorModel(cs, false, false,
@@ -114,12 +114,12 @@ public class ColorTools {
                         ccm.getTransferType());
             }
         } else if (old_cm instanceof DirectColorModel) {
-            DirectColorModel dcm = (DirectColorModel) old_cm;
+            final DirectColorModel dcm = (DirectColorModel) old_cm;
 
-            int old_mask = dcm.getRedMask() | dcm.getGreenMask()
+            final int old_mask = dcm.getRedMask() | dcm.getGreenMask()
                     | dcm.getBlueMask() | dcm.getAlphaMask();
 
-            int old_bits = count_bits_in_mask(old_mask);
+            final int old_bits = count_bits_in_mask(old_mask);
 
             return new DirectColorModel(cs, old_bits, dcm.getRedMask(),
                     dcm.getGreenMask(), dcm.getBlueMask(), dcm.getAlphaMask(),
@@ -160,17 +160,17 @@ public class ColorTools {
         return count;
     }
 
-    public BufferedImage convertToColorSpace(BufferedImage bi, ColorSpace to) {
-        ColorSpace from = bi.getColorModel().getColorSpace();
+    public BufferedImage convertToColorSpace(final BufferedImage bi, final ColorSpace to) {
+        final ColorSpace from = bi.getColorModel().getColorSpace();
 
-        RenderingHints hints = new RenderingHints(RenderingHints.KEY_RENDERING,
+        final RenderingHints hints = new RenderingHints(RenderingHints.KEY_RENDERING,
                 RenderingHints.VALUE_RENDER_QUALITY);
         hints.put(RenderingHints.KEY_COLOR_RENDERING,
                 RenderingHints.VALUE_COLOR_RENDER_QUALITY);
         hints.put(RenderingHints.KEY_DITHERING,
                 RenderingHints.VALUE_DITHER_ENABLE);
 
-        ColorConvertOp op = new ColorConvertOp(from, to, hints);
+        final ColorConvertOp op = new ColorConvertOp(from, to, hints);
 
         BufferedImage result = op.filter(bi, null);
 
@@ -179,43 +179,43 @@ public class ColorTools {
         return result;
     }
 
-    public BufferedImage convertTosRGB(BufferedImage bi) {
+    public BufferedImage convertTosRGB(final BufferedImage bi) {
         ColorSpace cs_sRGB = ColorSpace.getInstance(ColorSpace.CS_sRGB);
 
-        ColorModel srgbCM = ColorModel.getRGBdefault();
+        final ColorModel srgbCM = ColorModel.getRGBdefault();
         cs_sRGB = srgbCM.getColorSpace();
 
         return convertToColorSpace(bi, cs_sRGB);
     }
 
-    protected BufferedImage convertFromColorSpace(BufferedImage bi,
-            ColorSpace from) {
+    protected BufferedImage convertFromColorSpace(final BufferedImage bi,
+            final ColorSpace from) {
         ColorSpace cs_sRGB;
 
-        ColorModel srgbCM = ColorModel.getRGBdefault();
+        final ColorModel srgbCM = ColorModel.getRGBdefault();
         cs_sRGB = srgbCM.getColorSpace();
 
         return convertBetweenColorSpaces(bi, from, cs_sRGB);
 
     }
 
-    public BufferedImage convertBetweenICCProfiles(BufferedImage bi,
-            ICC_Profile from, ICC_Profile to) {
-        ICC_ColorSpace cs_from = new ICC_ColorSpace(from);
-        ICC_ColorSpace cs_to = new ICC_ColorSpace(to);
+    public BufferedImage convertBetweenICCProfiles(final BufferedImage bi,
+            final ICC_Profile from, final ICC_Profile to) {
+        final ICC_ColorSpace cs_from = new ICC_ColorSpace(from);
+        final ICC_ColorSpace cs_to = new ICC_ColorSpace(to);
 
         return convertBetweenColorSpaces(bi, cs_from, cs_to);
     }
 
-    public BufferedImage convertToICCProfile(BufferedImage bi, ICC_Profile to) {
-        ICC_ColorSpace cs_to = new ICC_ColorSpace(to);
+    public BufferedImage convertToICCProfile(final BufferedImage bi, final ICC_Profile to) {
+        final ICC_ColorSpace cs_to = new ICC_ColorSpace(to);
 
         return convertToColorSpace(bi, cs_to);
     }
 
     public BufferedImage convertBetweenColorSpacesX2(BufferedImage bi,
-            ColorSpace from, ColorSpace to) {
-        RenderingHints hints = new RenderingHints(RenderingHints.KEY_RENDERING,
+            final ColorSpace from, final ColorSpace to) {
+        final RenderingHints hints = new RenderingHints(RenderingHints.KEY_RENDERING,
                 RenderingHints.VALUE_RENDER_QUALITY);
         hints.put(RenderingHints.KEY_COLOR_RENDERING,
                 RenderingHints.VALUE_COLOR_RENDER_QUALITY);
@@ -228,7 +228,7 @@ public class ColorTools {
         // ColorModel.getRGBdefault().getColorSpace());
 
         bi = relabelColorSpace(bi, from);
-        ColorConvertOp op = new ColorConvertOp(from, to, hints);
+        final ColorConvertOp op = new ColorConvertOp(from, to, hints);
         bi = op.filter(bi, null);
 
         bi = relabelColorSpace(bi, from);
@@ -242,15 +242,15 @@ public class ColorTools {
     }
 
     public BufferedImage convertBetweenColorSpaces(BufferedImage bi,
-            ColorSpace from, ColorSpace to) {
-        RenderingHints hints = new RenderingHints(RenderingHints.KEY_RENDERING,
+            final ColorSpace from, final ColorSpace to) {
+        final RenderingHints hints = new RenderingHints(RenderingHints.KEY_RENDERING,
                 RenderingHints.VALUE_RENDER_QUALITY);
         hints.put(RenderingHints.KEY_COLOR_RENDERING,
                 RenderingHints.VALUE_COLOR_RENDER_QUALITY);
         hints.put(RenderingHints.KEY_DITHERING,
                 RenderingHints.VALUE_DITHER_ENABLE);
 
-        ColorConvertOp op = new ColorConvertOp(from, to, hints);
+        final ColorConvertOp op = new ColorConvertOp(from, to, hints);
 
         bi = relabelColorSpace(bi, from);
 

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/FormatCompliance.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/FormatCompliance.java?rev=1417043&r1=1417042&r2=1417043&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/FormatCompliance.java (original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/FormatCompliance.java Tue Dec  4 17:23:16 2012
@@ -32,12 +32,12 @@ public class FormatCompliance {
     private final String description;
     private final List<String> comments = new ArrayList<String>();
 
-    public FormatCompliance(String description) {
+    public FormatCompliance(final String description) {
         this.description = description;
         failOnError = false;
     }
 
-    public FormatCompliance(String description, boolean fail_on_error) {
+    public FormatCompliance(final String description, final boolean fail_on_error) {
         this.description = description;
         this.failOnError = fail_on_error;
     }
@@ -46,21 +46,21 @@ public class FormatCompliance {
         return new FormatCompliance("ignore", false);
     }
 
-    public void addComment(String s) throws ImageReadException {
+    public void addComment(final String s) throws ImageReadException {
         comments.add(s);
         if (failOnError) {
             throw new ImageReadException(s);
         }
     }
 
-    public void addComment(String s, int value) throws ImageReadException {
+    public void addComment(final String s, final int value) throws ImageReadException {
         addComment(s + ": " + getValueDescription(value));
     }
 
     @Override
     public String toString() {
-        StringWriter sw = new StringWriter();
-        PrintWriter pw = new PrintWriter(sw);
+        final StringWriter sw = new StringWriter();
+        final PrintWriter pw = new PrintWriter(sw);
 
         dump(pw);
 
@@ -71,7 +71,7 @@ public class FormatCompliance {
         dump(new PrintWriter(new OutputStreamWriter(System.out, Charset.defaultCharset())));
     }
 
-    public void dump(PrintWriter pw) {
+    public void dump(final PrintWriter pw) {
         pw.println("Format Compliance: " + description);
 
         if (comments.size() == 0) {
@@ -85,11 +85,11 @@ public class FormatCompliance {
         pw.flush();
     }
 
-    private String getValueDescription(int value) {
+    private String getValueDescription(final int value) {
         return value + " (" + Integer.toHexString(value) + ")";
     }
 
-    public boolean compare_bytes(String name, byte expected[], byte actual[])
+    public boolean compare_bytes(final String name, final byte expected[], final byte actual[])
             throws ImageReadException {
         if (expected.length != actual.length) {
             addComment(name + ": " + "Unexpected length: (expected: "
@@ -112,7 +112,7 @@ public class FormatCompliance {
         return true;
     }
 
-    public boolean checkBounds(String name, int min, int max, int actual)
+    public boolean checkBounds(final String name, final int min, final int max, final int actual)
             throws ImageReadException {
         if ((actual < min) || (actual > max)) {
             addComment(name + ": " + "bounds check: " + min + " <= " + actual
@@ -123,20 +123,20 @@ public class FormatCompliance {
         return true;
     }
 
-    public boolean compare(String name, int valid, int actual)
+    public boolean compare(final String name, final int valid, final int actual)
             throws ImageReadException {
         return compare(name, new int[] { valid, }, actual);
     }
 
-    public boolean compare(String name, int valid[], int actual)
+    public boolean compare(final String name, final int valid[], final int actual)
             throws ImageReadException {
-        for (int element : valid) {
+        for (final int element : valid) {
             if (actual == element) {
                 return true;
             }
         }
 
-        StringBuilder result = new StringBuilder();
+        final StringBuilder result = new StringBuilder();
         result.append(name + ": " + "Unexpected value: (valid: ");
         if (valid.length > 1) {
             result.append("{");

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageDump.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageDump.java?rev=1417043&r1=1417042&r2=1417043&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageDump.java (original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageDump.java Tue Dec  4 17:23:16 2012
@@ -29,7 +29,7 @@ import org.apache.commons.imaging.icc.Ic
  * image files.
  */
 public class ImageDump {
-    private String colorSpaceTypeToName(ColorSpace cs) {
+    private String colorSpaceTypeToName(final ColorSpace cs) {
         // System.out.println(prefix + ": " + "type: "
         // + cs.getType() );
         switch (cs.getType()) {
@@ -53,7 +53,7 @@ public class ImageDump {
         return "unknown";
     }
 
-    public void dumpColorSpace(String prefix, ColorSpace cs) {
+    public void dumpColorSpace(final String prefix, final ColorSpace cs) {
         System.out.println(prefix + ": " + "type: " + cs.getType() + " ("
                 + colorSpaceTypeToName(cs) + ")");
 
@@ -63,34 +63,34 @@ public class ImageDump {
             return;
         }
 
-        ICC_ColorSpace fICC_ColorSpace = (ICC_ColorSpace) cs;
-        ICC_Profile fICC_Profile = fICC_ColorSpace.getProfile();
+        final ICC_ColorSpace fICC_ColorSpace = (ICC_ColorSpace) cs;
+        final ICC_Profile fICC_Profile = fICC_ColorSpace.getProfile();
 
-        byte bytes[] = fICC_Profile.getData();
+        final byte bytes[] = fICC_Profile.getData();
 
-        IccProfileParser parser = new IccProfileParser();
+        final IccProfileParser parser = new IccProfileParser();
 
-        IccProfileInfo info = parser.getICCProfileInfo(bytes);
+        final IccProfileInfo info = parser.getICCProfileInfo(bytes);
         info.dump(prefix);
     }
 
-    public void dump(BufferedImage src) {
+    public void dump(final BufferedImage src) {
         dump("", src);
     }
 
-    public void dump(String prefix, BufferedImage src) {
+    public void dump(final String prefix, final BufferedImage src) {
         System.out.println(prefix + ": " + "dump");
         dumpColorSpace(prefix, src.getColorModel().getColorSpace());
         dumpBIProps(prefix, src);
     }
 
-    public void dumpBIProps(String prefix, BufferedImage src) {
-        String keys[] = src.getPropertyNames();
+    public void dumpBIProps(final String prefix, final BufferedImage src) {
+        final String keys[] = src.getPropertyNames();
         if (keys == null) {
             System.out.println(prefix + ": no props");
             return;
         }
-        for (String key : keys) {
+        for (final String key : keys) {
             System.out.println(prefix + ": " + key + ": "
                     + src.getProperty(key));
         }

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageFormat.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageFormat.java?rev=1417043&r1=1417042&r2=1417043&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageFormat.java (original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageFormat.java Tue Dec  4 17:23:16 2012
@@ -24,25 +24,25 @@ public class ImageFormat {
     private final String extension;
     public final boolean actual;
 
-    private ImageFormat(String name, boolean actual) {
+    private ImageFormat(final String name, final boolean actual) {
         this.name = name;
         this.extension = name;
         this.actual = actual;
     }
 
-    private ImageFormat(String name) {
+    private ImageFormat(final String name) {
         this.name = name;
         this.extension = name;
         actual = true;
     }
 
     @Override
-    public boolean equals(Object o) {
+    public boolean equals(final Object o) {
         if (!(o instanceof ImageFormat)) {
             return false;
         }
 
-        ImageFormat other = (ImageFormat) o;
+        final ImageFormat other = (ImageFormat) o;
 
         return other.getName().equals(getName());
 
@@ -98,7 +98,7 @@ public class ImageFormat {
      * @return A valid array of ImageFormat objects.
      */
     public static ImageFormat[] getAllFormats() {
-        ImageFormat result[] = {
+        final ImageFormat result[] = {
                 IMAGE_FORMAT_UNKNOWN,
                 IMAGE_FORMAT_BMP,
                 IMAGE_FORMAT_DCX,

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageInfo.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageInfo.java?rev=1417043&r1=1417042&r2=1417043&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageInfo.java (original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageInfo.java Tue Dec  4 17:23:16 2012
@@ -73,13 +73,13 @@ public class ImageInfo {
 
     private final String compressionAlgorithm;
 
-    public ImageInfo(String formatDetails, int bitsPerPixel,
-            List<String> comments, ImageFormat format, String formatName,
-            int height, String mimeType, int numberOfImages,
-            int physicalHeightDpi, float physicalHeightInch,
-            int physicalWidthDpi, float physicalWidthInch, int width,
-            boolean isProgressive, boolean isTransparent, boolean usesPalette,
-            int colorType, String compressionAlgorithm) {
+    public ImageInfo(final String formatDetails, final int bitsPerPixel,
+            final List<String> comments, final ImageFormat format, final String formatName,
+            final int height, final String mimeType, final int numberOfImages,
+            final int physicalHeightDpi, final float physicalHeightInch,
+            final int physicalWidthDpi, final float physicalWidthInch, final int width,
+            final boolean isProgressive, final boolean isTransparent, final boolean usesPalette,
+            final int colorType, final String compressionAlgorithm) {
         this.formatDetails = formatDetails;
 
         this.bitsPerPixel = bitsPerPixel;
@@ -287,25 +287,25 @@ public class ImageInfo {
     @Override
     public String toString() {
         try {
-            StringWriter sw = new StringWriter();
-            PrintWriter pw = new PrintWriter(sw);
+            final StringWriter sw = new StringWriter();
+            final PrintWriter pw = new PrintWriter(sw);
 
             toString(pw, "");
             pw.flush();
 
             return sw.toString();
-        } catch (Exception e) {
+        } catch (final Exception e) {
             return "Image Data: Error";
         }
     }
 
-    public void toString(PrintWriter pw, String prefix) {
+    public void toString(final PrintWriter pw, final String prefix) {
         pw.println("Format Details: " + formatDetails);
 
         pw.println("Bits Per Pixel: " + bitsPerPixel);
         pw.println("Comments: " + comments.size());
         for (int i = 0; i < comments.size(); i++) {
-            String s = comments.get(i);
+            final String s = comments.get(i);
             pw.println("\t" + i + ": '" + s + "'");
 
         }

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageParser.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageParser.java?rev=1417043&r1=1417042&r2=1417043&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageParser.java (original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageParser.java Tue Dec  4 17:23:16 2012
@@ -95,7 +95,7 @@ public abstract class ImageParser extend
      * @return A valid array of image parsers
      */
     public static final ImageParser[] getAllImageParsers() {
-        ImageParser result[] = {
+        final ImageParser result[] = {
                 new BmpImageParser(),
                 new DcxImageParser(),
                 new GifImageParser(),
@@ -132,7 +132,7 @@ public abstract class ImageParser extend
      * implementation.
      * @throws IOException In the event of unsuccessful data read operation. 
      */
-    public final IImageMetadata getMetadata(ByteSource byteSource)
+    public final IImageMetadata getMetadata(final ByteSource byteSource)
             throws ImageReadException, IOException {
         return getMetadata(byteSource, null);
     }
@@ -179,7 +179,7 @@ public abstract class ImageParser extend
      * implementation.
      * @throws IOException In the event of unsuccessful data read operation. 
      */
-    public final IImageMetadata getMetadata(byte bytes[])
+    public final IImageMetadata getMetadata(final byte bytes[])
             throws ImageReadException, IOException {
         return getMetadata(bytes, null);
     }
@@ -206,7 +206,7 @@ public abstract class ImageParser extend
      * implementation.
      * @throws IOException In the event of unsuccessful data read operation. 
      */
-    public final IImageMetadata getMetadata(byte bytes[], Map<String,Object> params)
+    public final IImageMetadata getMetadata(final byte bytes[], final Map<String,Object> params)
             throws ImageReadException, IOException {
         return getMetadata(new ByteSourceArray(bytes), params);
     }
@@ -228,7 +228,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful file read or
      * access operation.
      */
-    public final IImageMetadata getMetadata(File file)
+    public final IImageMetadata getMetadata(final File file)
             throws ImageReadException, IOException {
         return getMetadata(file, null);
     }
@@ -256,7 +256,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful file read or
      * access operation.
      */
-    public final IImageMetadata getMetadata(File file, Map<String,Object> params)
+    public final IImageMetadata getMetadata(final File file, final Map<String,Object> params)
             throws ImageReadException, IOException {
         if (debug) {
             System.out.println(getName() + ".getMetadata" + ": "
@@ -314,7 +314,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful data
      * access operation.
      */
-    public final ImageInfo getImageInfo(ByteSource byteSource)
+    public final ImageInfo getImageInfo(final ByteSource byteSource)
             throws ImageReadException, IOException {
         return getImageInfo(byteSource, null);
     }
@@ -344,7 +344,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful data
      * access operation.
      */
-    public final ImageInfo getImageInfo(byte bytes[], Map<String,Object> params)
+    public final ImageInfo getImageInfo(final byte bytes[], final Map<String,Object> params)
             throws ImageReadException, IOException {
         return getImageInfo(new ByteSourceArray(bytes), params);
     }
@@ -372,7 +372,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful file read or
      * access operation.
      */
-    public final ImageInfo getImageInfo(File file, Map<String,Object> params)
+    public final ImageInfo getImageInfo(final File file, final Map<String,Object> params)
             throws ImageReadException, IOException {
         if (!canAcceptExtension(file)) {
             return null;
@@ -391,7 +391,7 @@ public abstract class ImageParser extend
      * @throws IOException
      *             may be thrown by sub-classes
      */
-    public FormatCompliance getFormatCompliance(ByteSource byteSource)
+    public FormatCompliance getFormatCompliance(final ByteSource byteSource)
             throws ImageReadException, IOException {
         return null;
     }
@@ -407,7 +407,7 @@ public abstract class ImageParser extend
      * @throws IOException
      *             may be thrown by sub-classes
      */
-    public final FormatCompliance getFormatCompliance(byte bytes[])
+    public final FormatCompliance getFormatCompliance(final byte bytes[])
             throws ImageReadException, IOException {
         return getFormatCompliance(new ByteSourceArray(bytes));
     }
@@ -423,7 +423,7 @@ public abstract class ImageParser extend
      * @throws IOException
      *             may be thrown by sub-classes
      */
-    public final FormatCompliance getFormatCompliance(File file)
+    public final FormatCompliance getFormatCompliance(final File file)
             throws ImageReadException, IOException {
         if (!canAcceptExtension(file)) {
             return null;
@@ -443,11 +443,11 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful read or
      * access operation.
      */
-    public List<BufferedImage> getAllBufferedImages(ByteSource byteSource)
+    public List<BufferedImage> getAllBufferedImages(final ByteSource byteSource)
             throws ImageReadException, IOException {
-        BufferedImage bi = getBufferedImage(byteSource, null);
+        final BufferedImage bi = getBufferedImage(byteSource, null);
 
-        List<BufferedImage> result = new ArrayList<BufferedImage>();
+        final List<BufferedImage> result = new ArrayList<BufferedImage>();
 
         result.add(bi);
 
@@ -465,7 +465,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful read or
      * access operation.
      */
-    public final List<BufferedImage> getAllBufferedImages(byte bytes[])
+    public final List<BufferedImage> getAllBufferedImages(final byte bytes[])
             throws ImageReadException, IOException {
         return getAllBufferedImages(new ByteSourceArray(bytes));
     }
@@ -481,7 +481,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful read or
      * access operation.
      */
-    public final List<BufferedImage> getAllBufferedImages(File file)
+    public final List<BufferedImage> getAllBufferedImages(final File file)
             throws ImageReadException, IOException {
         if (!canAcceptExtension(file)) {
             return null;
@@ -524,7 +524,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful read or
      * access operation.
      */
-    public final BufferedImage getBufferedImage(byte bytes[], Map<String,Object> params)
+    public final BufferedImage getBufferedImage(final byte bytes[], final Map<String,Object> params)
             throws ImageReadException, IOException {
         return getBufferedImage(new ByteSourceArray(bytes), params);
     }
@@ -544,7 +544,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful read or
      * access operation.
      */
-    public final BufferedImage getBufferedImage(File file, Map<String,Object> params)
+    public final BufferedImage getBufferedImage(final File file, final Map<String,Object> params)
             throws ImageReadException, IOException {
         if (!canAcceptExtension(file)) {
             return null;
@@ -574,11 +574,11 @@ public abstract class ImageParser extend
      * @throws IOException In the event of an write error from
      * the output stream.
      */
-    public void writeImage(BufferedImage src, OutputStream os, Map<String,Object> params)
+    public void writeImage(final BufferedImage src, final OutputStream os, final Map<String,Object> params)
             throws ImageWriteException, IOException {
         try {
             os.close(); // we are obligated to close stream.
-        } catch (Exception e) {
+        } catch (final Exception e) {
             Debug.debug(e);
         }
 
@@ -596,7 +596,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful read or
      * access operation.
      */
-    public final Dimension getImageSize(byte bytes[])
+    public final Dimension getImageSize(final byte bytes[])
             throws ImageReadException, IOException {
         return getImageSize(bytes, null);
     }
@@ -613,7 +613,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful read or
      * access operation.
      */
-    public final Dimension getImageSize(byte bytes[], Map<String,Object> params)
+    public final Dimension getImageSize(final byte bytes[], final Map<String,Object> params)
             throws ImageReadException, IOException {
         return getImageSize(new ByteSourceArray(bytes), params);
     }
@@ -628,7 +628,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful read or
      * access operation.
      */
-    public final Dimension getImageSize(File file) throws ImageReadException,
+    public final Dimension getImageSize(final File file) throws ImageReadException,
             IOException {
 
         return getImageSize(file, null);
@@ -646,7 +646,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful read or
      * access operation.
      */
-    public final Dimension getImageSize(File file, Map<String,Object> params)
+    public final Dimension getImageSize(final File file, final Map<String,Object> params)
             throws ImageReadException, IOException {
 
         if (!canAcceptExtension(file)) {
@@ -706,7 +706,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful read or
      * access operation.
      */
-    public final byte[] getICCProfileBytes(byte bytes[])
+    public final byte[] getICCProfileBytes(final byte bytes[])
             throws ImageReadException, IOException {
         return getICCProfileBytes(bytes, null);
     }
@@ -725,7 +725,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful read or
      * access operation.
      */
-    public final byte[] getICCProfileBytes(byte bytes[], Map<String,Object> params)
+    public final byte[] getICCProfileBytes(final byte bytes[], final Map<String,Object> params)
             throws ImageReadException, IOException {
         return getICCProfileBytes(new ByteSourceArray(bytes), params);
     }
@@ -742,7 +742,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful read or
      * access operation.
      */
-    public final byte[] getICCProfileBytes(File file)
+    public final byte[] getICCProfileBytes(final File file)
             throws ImageReadException, IOException {
         return getICCProfileBytes(file, null);
     }
@@ -761,7 +761,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful read or
      * access operation.
      */
-    public final byte[] getICCProfileBytes(File file, Map<String,Object> params)
+    public final byte[] getICCProfileBytes(final File file, final Map<String,Object> params)
             throws ImageReadException, IOException {
         if (!canAcceptExtension(file)) {
             return null;
@@ -804,7 +804,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful read or
      * access operation.
      */
-    public final String dumpImageFile(byte bytes[]) throws ImageReadException,
+    public final String dumpImageFile(final byte bytes[]) throws ImageReadException,
             IOException {
         return dumpImageFile(new ByteSourceArray(bytes));
     }
@@ -821,7 +821,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful read or
      * access operation.
      */
-    public final String dumpImageFile(File file) throws ImageReadException,
+    public final String dumpImageFile(final File file) throws ImageReadException,
             IOException {
         if (!canAcceptExtension(file)) {
             return null;
@@ -845,10 +845,10 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful read or
      * access operation.
      */
-    public final String dumpImageFile(ByteSource byteSource)
+    public final String dumpImageFile(final ByteSource byteSource)
             throws ImageReadException, IOException {
-        StringWriter sw = new StringWriter();
-        PrintWriter pw = new PrintWriter(sw);
+        final StringWriter sw = new StringWriter();
+        final PrintWriter pw = new PrintWriter(sw);
 
         dumpImageFile(pw, byteSource);
 
@@ -868,7 +868,7 @@ public abstract class ImageParser extend
      * @throws IOException In the event of unsuccessful read or
      * access operation.
      */
-    public boolean dumpImageFile(PrintWriter pw, ByteSource byteSource)
+    public boolean dumpImageFile(final PrintWriter pw, final ByteSource byteSource)
             throws ImageReadException, IOException {
         return false;
     }
@@ -919,10 +919,10 @@ public abstract class ImageParser extend
      * @param type An instance of ImageFormat. 
      * @return If the parser can accept the format, true; otherwise, false.
      */
-    public boolean canAcceptType(ImageFormat type) {
-        ImageFormat types[] = getAcceptedTypes();
+    public boolean canAcceptType(final ImageFormat type) {
+        final ImageFormat types[] = getAcceptedTypes();
 
-        for (ImageFormat type2 : types) {
+        for (final ImageFormat type2 : types) {
             if (type2.equals(type)) {
                 return true;
             }
@@ -936,7 +936,7 @@ public abstract class ImageParser extend
      * @param file An valid file reference. 
      * @return If the parser can accept the format, true; otherwise, false.
      */
-    protected final boolean canAcceptExtension(File file) {
+    protected final boolean canAcceptExtension(final File file) {
         return canAcceptExtension(file.getName());
     }
 
@@ -946,18 +946,18 @@ public abstract class ImageParser extend
      * @param filename An valid string giving a file name or file path. 
      * @return If the parser can accept the format, true; otherwise, false.
      */
-    protected final boolean canAcceptExtension(String filename) {
-        String exts[] = getAcceptedExtensions();
+    protected final boolean canAcceptExtension(final String filename) {
+        final String exts[] = getAcceptedExtensions();
         if (exts == null) {
             return true;
         }
 
-        int index = filename.lastIndexOf('.');
+        final int index = filename.lastIndexOf('.');
         if (index >= 0) {
             String ext = filename.substring(index);
             ext = ext.toLowerCase();
 
-            for (String ext2 : exts) {
+            for (final String ext2 : exts) {
                 if (ext2.toLowerCase().equals(ext)) {
                     return true;
                 }
@@ -975,12 +975,12 @@ public abstract class ImageParser extend
      * @return A valid instance of an implementation of a 
      * IBufferedImageFactory.
      */
-    protected IBufferedImageFactory getBufferedImageFactory(Map<String,Object> params) {
+    protected IBufferedImageFactory getBufferedImageFactory(final Map<String,Object> params) {
         if (params == null) {
             return new SimpleBufferedImageFactory();
         }
 
-        IBufferedImageFactory result = (IBufferedImageFactory) params
+        final IBufferedImageFactory result = (IBufferedImageFactory) params
                 .get(ImagingConstants.BUFFERED_IMAGE_FACTORY);
 
         if (null != result) {
@@ -999,7 +999,7 @@ public abstract class ImageParser extend
      * @return If the params specify strict format compliance, true;
      * otherwise, false.
      */
-    public static final boolean isStrict(Map<String,Object> params) {
+    public static final boolean isStrict(final Map<String,Object> params) {
         if (params == null || !params.containsKey(PARAM_KEY_STRICT)) {
             return false;
         }

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageReadException.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageReadException.java?rev=1417043&r1=1417042&r2=1417043&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageReadException.java (original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageReadException.java Tue Dec  4 17:23:16 2012
@@ -24,11 +24,11 @@ package org.apache.commons.imaging;
 public class ImageReadException extends ImagingException {
     private static final long serialVersionUID = -1L;
 
-    public ImageReadException(String s) {
+    public ImageReadException(final String s) {
         super(s);
     }
 
-    public ImageReadException(String s, Exception e) {
+    public ImageReadException(final String s, final Exception e) {
         super(s, e);
     }
 }

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageWriteException.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageWriteException.java?rev=1417043&r1=1417042&r2=1417043&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageWriteException.java (original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/ImageWriteException.java Tue Dec  4 17:23:16 2012
@@ -24,11 +24,11 @@ package org.apache.commons.imaging;
 public class ImageWriteException extends ImagingException {
     static final long serialVersionUID = -1L;
 
-    public ImageWriteException(String s) {
+    public ImageWriteException(final String s) {
         super(s);
     }
 
-    public ImageWriteException(String s, Exception e) {
+    public ImageWriteException(final String s, final Exception e) {
         super(s, e);
     }
 }



Mime
View raw message