You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by vh...@apache.org on 2014/07/15 22:44:19 UTC
svn commit: r1610846 - in /xmlgraphics/commons/trunk: ./
src/java/org/apache/xmlgraphics/image/codec/png/
src/java/org/apache/xmlgraphics/image/codec/tiff/
src/java/org/apache/xmlgraphics/image/codec/util/
src/java/org/apache/xmlgraphics/image/loader/i...
Author: vhennebert
Date: Tue Jul 15 20:44:18 2014
New Revision: 1610846
URL: http://svn.apache.org/r1610846
Log:
Enabled Checkstyle ExplicitInitializationCheck and fixed resulting warnings
Modified:
xmlgraphics/commons/trunk/checkstyle-5.5.xml
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGDecodeParam.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGEncodeParam.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGImageDecoder.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGImageEncoder.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGRed.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFDecodeParam.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFDirectory.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFFaxDecoder.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFImage.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFLZWDecoder.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/FileCacheSeekableStream.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/ForwardSeekableStream.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/MemoryCacheSeekableStream.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/SimpleRenderedImage.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageRawJPEG.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/PNGFile.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/PreloaderEPS.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/rendered/Any2LsRGBRed.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/rendered/Any2sRGBRed.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/ImageWriterParams.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/imageio/ImageIOImageWriter.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/AbstractGraphics2D.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/GraphicContext.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2D.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSTilingPattern.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSPageDeviceDictionary.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSState.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCParser.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85InputStream.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85OutputStream.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCIIHexOutputStream.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Base64DecodeStream.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Base64EncodeStream.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/RunLengthEncodeOutputStream.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/SubInputStream.java
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/XMPSchemaRegistry.java
xmlgraphics/commons/trunk/test/java/org/apache/xmlgraphics/image/writer/imageio/ImageIOTIFFImageWriterTestCase.java
Modified: xmlgraphics/commons/trunk/checkstyle-5.5.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/checkstyle-5.5.xml?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/checkstyle-5.5.xml (original)
+++ xmlgraphics/commons/trunk/checkstyle-5.5.xml Tue Jul 15 20:44:18 2014
@@ -100,7 +100,7 @@
<!-- ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... -->
<!-- ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... -->
- <!-- <module name="ExplicitInitialization"/> produces 795 new errors -->
+ <module name="ExplicitInitialization"/>
<!-- ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... -->
<!-- ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... -->
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGDecodeParam.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGDecodeParam.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGDecodeParam.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGDecodeParam.java Tue Jul 15 20:44:18 2014
@@ -83,7 +83,7 @@ public class PNGDecodeParam implements I
*/
public PNGDecodeParam() { }
- private boolean suppressAlpha = false;
+ private boolean suppressAlpha;
/**
* Returns <code>true</code> if alpha (transparency) will
@@ -104,7 +104,7 @@ public class PNGDecodeParam implements I
this.suppressAlpha = suppressAlpha;
}
- private boolean expandPalette = false;
+ private boolean expandPalette;
/**
* Returns true if palette-color images will be expanded to
@@ -128,7 +128,7 @@ public class PNGDecodeParam implements I
this.expandPalette = expandPalette;
}
- private boolean output8BitGray = false;
+ private boolean output8BitGray;
/**
* Returns the current value of the 8-bit gray output parameter.
@@ -285,7 +285,7 @@ public class PNGDecodeParam implements I
this.displayExponent = displayExponent;
}
- private boolean expandGrayAlpha = false;
+ private boolean expandGrayAlpha;
/**
* Returns the current setting of the gray/alpha expansion.
@@ -309,9 +309,9 @@ public class PNGDecodeParam implements I
this.expandGrayAlpha = expandGrayAlpha;
}
- private boolean generateEncodeParam = false;
+ private boolean generateEncodeParam;
- private PNGEncodeParam encodeParam = null;
+ private PNGEncodeParam encodeParam;
/**
* Returns <code>true</code> if an instance of
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGEncodeParam.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGEncodeParam.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGEncodeParam.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGEncodeParam.java Tue Jul 15 20:44:18 2014
@@ -115,7 +115,7 @@ public abstract class PNGEncodeParam imp
// bKGD chunk
- private boolean backgroundSet = false;
+ private boolean backgroundSet;
/**
* Suppresses the 'bKGD' chunk from being output.
@@ -147,8 +147,8 @@ public abstract class PNGEncodeParam imp
// PLTE chunk
- private int[] palette = null;
- private boolean paletteSet = false;
+ private int[] palette;
+ private boolean paletteSet;
/**
* Sets the RGB palette of the image to be encoded.
@@ -285,7 +285,7 @@ public abstract class PNGEncodeParam imp
// bKGD chunk
- private boolean backgroundSet = false;
+ private boolean backgroundSet;
/**
* Suppresses the 'bKGD' chunk from being output.
@@ -388,7 +388,7 @@ public abstract class PNGEncodeParam imp
}
private int bitShift;
- private boolean bitShiftSet = false;
+ private boolean bitShiftSet;
/**
* Sets the desired bit shift for a grayscale image.
@@ -449,7 +449,7 @@ public abstract class PNGEncodeParam imp
// bKGD chunk
- private boolean backgroundSet = false;
+ private boolean backgroundSet;
/**
* Suppresses the 'bKGD' chunk from being output.
@@ -545,7 +545,7 @@ public abstract class PNGEncodeParam imp
}
protected int bitDepth;
- protected boolean bitDepthSet = false;
+ protected boolean bitDepthSet;
/**
* Sets the desired bit depth of an image.
@@ -577,7 +577,7 @@ public abstract class PNGEncodeParam imp
bitDepthSet = false;
}
- private boolean useInterlacing = false;
+ private boolean useInterlacing;
/**
* Turns Adam7 interlacing on or off.
@@ -628,8 +628,8 @@ public abstract class PNGEncodeParam imp
// cHRM chunk
- private float[] chromaticity = null;
- private boolean chromaticitySet = false;
+ private float[] chromaticity;
+ private boolean chromaticitySet;
/**
* Sets the white point and primary chromaticities in CIE (x, y)
@@ -706,7 +706,7 @@ public abstract class PNGEncodeParam imp
// gAMA chunk
private float gamma;
- private boolean gammaSet = false;
+ private boolean gammaSet;
/**
* Sets the file gamma value for the image.
@@ -749,8 +749,8 @@ public abstract class PNGEncodeParam imp
// hIST chunk
- private int[] paletteHistogram = null;
- private boolean paletteHistogramSet = false;
+ private int[] paletteHistogram;
+ private boolean paletteHistogramSet;
/**
* Sets the palette histogram to be stored with this image.
@@ -796,8 +796,8 @@ public abstract class PNGEncodeParam imp
// iCCP chunk
- private byte[] iccProfileData = null;
- private boolean iccProfileDataSet = false;
+ private byte[] iccProfileData;
+ private boolean iccProfileDataSet;
/**
* Sets the ICC profile data to be stored with this image.
@@ -842,8 +842,8 @@ public abstract class PNGEncodeParam imp
// pHYS chunk
- private int[] physicalDimension = null;
- private boolean physicalDimensionSet = false;
+ private int[] physicalDimension;
+ private boolean physicalDimensionSet;
/**
* Sets the physical dimension information to be stored with this
@@ -908,8 +908,8 @@ public abstract class PNGEncodeParam imp
// sPLT chunk
- private PNGSuggestedPaletteEntry[] suggestedPalette = null;
- private boolean suggestedPaletteSet = false;
+ private PNGSuggestedPaletteEntry[] suggestedPalette;
+ private boolean suggestedPaletteSet;
/**
* Sets the suggested palette information to be stored with this
@@ -958,8 +958,8 @@ public abstract class PNGEncodeParam imp
// sBIT chunk
- private int[] significantBits = null;
- private boolean significantBitsSet = false;
+ private int[] significantBits;
+ private boolean significantBitsSet;
/**
* Sets the number of significant bits for each band of the image.
@@ -1011,7 +1011,7 @@ public abstract class PNGEncodeParam imp
// sRGB chunk
private int srgbIntent;
- private boolean srgbIntentSet = false;
+ private boolean srgbIntentSet;
/**
* Sets the sRGB rendering intent to be stored with this image.
@@ -1057,8 +1057,8 @@ public abstract class PNGEncodeParam imp
// tEXt chunk
- private String[] text = null;
- private boolean textSet = false;
+ private String[] text;
+ private boolean textSet;
/**
* Sets the textual data to be stored in uncompressed form with this
@@ -1106,7 +1106,7 @@ public abstract class PNGEncodeParam imp
// tIME chunk
private Date modificationTime;
- private boolean modificationTimeSet = false;
+ private boolean modificationTimeSet;
/**
* Sets the modification time, as a <code>Date</code>, to be
@@ -1153,7 +1153,7 @@ public abstract class PNGEncodeParam imp
// tRNS chunk
- boolean transparencySet = false;
+ boolean transparencySet;
/**
* Suppresses the 'tRNS' chunk from being output.
@@ -1171,8 +1171,8 @@ public abstract class PNGEncodeParam imp
// zTXT chunk
- private String[] zText = null;
- private boolean zTextSet = false;
+ private String[] zText;
+ private boolean zTextSet;
/**
* Sets the text strings to be stored in compressed form with this
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGImageDecoder.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGImageDecoder.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGImageDecoder.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGImageDecoder.java Tue Jul 15 20:44:18 2014
@@ -126,36 +126,36 @@ class PNGImage extends SimpleRenderedIma
private int maxOpacity;
- private int[] significantBits = null;
+ private int[] significantBits;
// Parameter information
// If true, the user wants destination alpha where applicable.
- private boolean suppressAlpha = false;
+ private boolean suppressAlpha;
// If true, perform palette lookup internally
- private boolean expandPalette = false;
+ private boolean expandPalette;
// If true, output < 8 bit gray images in 8 bit components format
- private boolean output8BitGray = false;
+ private boolean output8BitGray;
// Create an alpha channel in the destination color model.
- private boolean outputHasAlphaPalette = false;
+ private boolean outputHasAlphaPalette;
// Perform gamma correction on the image
- private boolean performGammaCorrection = false;
+ private boolean performGammaCorrection;
// Expand GA to GGGA for compatbility with Java2D
- private boolean expandGrayAlpha = false;
+ private boolean expandGrayAlpha;
// Produce an instance of PNGEncodeParam
- private boolean generateEncodeParam = false;
+ private boolean generateEncodeParam;
// PNGDecodeParam controlling decode process
- private PNGDecodeParam decodeParam = null;
+ private PNGDecodeParam decodeParam;
// PNGEncodeParam to store file details in
- private PNGEncodeParam encodeParam = null;
+ private PNGEncodeParam encodeParam;
private boolean emitProperties = true;
@@ -165,7 +165,7 @@ class PNGImage extends SimpleRenderedIma
private float displayExponent = 2.2F;
- private float[] chromaticity = null;
+ private float[] chromaticity;
private int sRGBRenderingIntent = -1;
@@ -231,7 +231,7 @@ class PNGImage extends SimpleRenderedIma
private int outputBands;
// Number of private chunks
- private int chunkIndex = 0;
+ private int chunkIndex;
private List textKeys = new ArrayList();
private List textStrings = new ArrayList();
@@ -241,7 +241,7 @@ class PNGImage extends SimpleRenderedIma
private WritableRaster theTile;
- private int[] gammaLut = null;
+ private int[] gammaLut;
private void initGammaLut(int bits) {
double exp = (double)userExponent / (fileGamma * displayExponent);
@@ -271,7 +271,7 @@ class PNGImage extends SimpleRenderedIma
(byte)0xcc, (byte)0xdd, (byte)0xee, (byte)0xff }
};
- private int[] grayLut = null;
+ private int[] grayLut;
private void initGrayLut(int bits) {
int len = 1 << bits;
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGImageEncoder.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGImageEncoder.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGImageEncoder.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGImageEncoder.java Tue Jul 15 20:44:18 2014
@@ -199,7 +199,7 @@ class IDATOutputStream extends FilterOut
private static final byte[] TYPE_SIGNATURE
= {(byte)'I', (byte)'D', (byte)'A', (byte)'T'};
- private int bytesWritten = 0;
+ private int bytesWritten;
private int segmentLength;
private byte[] buffer;
@@ -305,15 +305,15 @@ public class PNGImageEncoder extends Ima
private int bpp; // bytes per pixel, rounded up
- private boolean skipAlpha = false;
- private boolean compressGray = false;
+ private boolean skipAlpha;
+ private boolean compressGray;
private boolean interlace;
- private byte[] redPalette = null;
- private byte[] greenPalette = null;
- private byte[] bluePalette = null;
- private byte[] alphaPalette = null;
+ private byte[] redPalette;
+ private byte[] greenPalette;
+ private byte[] bluePalette;
+ private byte[] alphaPalette;
private DataOutputStream dataOutput;
@@ -345,10 +345,10 @@ public class PNGImageEncoder extends Ima
cs.close();
}
- private byte[] prevRow = null;
- private byte[] currRow = null;
+ private byte[] prevRow;
+ private byte[] currRow;
- private byte[][] filteredRows = null;
+ private byte[][] filteredRows;
private static int clamp(int val, int maxValue) {
return (val > maxValue) ? maxValue : val;
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGRed.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGRed.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGRed.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/png/PNGRed.java Tue Jul 15 20:44:18 2014
@@ -189,36 +189,36 @@ public class PNGRed extends AbstractRed
private int maxOpacity;
- private int[] significantBits = null;
+ private int[] significantBits;
// Parameter information
// If true, the user wants destination alpha where applicable.
- private boolean suppressAlpha = false;
+ private boolean suppressAlpha;
// If true, perform palette lookup internally
- private boolean expandPalette = false;
+ private boolean expandPalette;
// If true, output < 8 bit gray images in 8 bit components format
- private boolean output8BitGray = false;
+ private boolean output8BitGray;
// Create an alpha channel in the destination color model.
- private boolean outputHasAlphaPalette = false;
+ private boolean outputHasAlphaPalette;
// Perform gamma correction on the image
- private boolean performGammaCorrection = false;
+ private boolean performGammaCorrection;
// Expand GA to GGGA for compatbility with Java2D
- private boolean expandGrayAlpha = false;
+ private boolean expandGrayAlpha;
// Produce an instance of PNGEncodeParam
- private boolean generateEncodeParam = false;
+ private boolean generateEncodeParam;
// PNGDecodeParam controlling decode process
- private PNGDecodeParam decodeParam = null;
+ private PNGDecodeParam decodeParam;
// PNGEncodeParam to store file details in
- private PNGEncodeParam encodeParam = null;
+ private PNGEncodeParam encodeParam;
private boolean emitProperties = true;
@@ -228,7 +228,7 @@ public class PNGRed extends AbstractRed
private float displayExponent = 2.2F;
- private float[] chromaticity = null;
+ private float[] chromaticity;
private int sRGBRenderingIntent = -1;
@@ -294,7 +294,7 @@ public class PNGRed extends AbstractRed
private int outputBands;
// Number of private chunks
- private int chunkIndex = 0;
+ private int chunkIndex;
private List textKeys = new ArrayList();
private List textStrings = new ArrayList();
@@ -309,7 +309,7 @@ public class PNGRed extends AbstractRed
private Map<String, Object> properties = new HashMap<String, Object>();
- private int[] gammaLut = null;
+ private int[] gammaLut;
private void initGammaLut(int bits) {
double exp = (double)userExponent / (fileGamma * displayExponent);
@@ -339,7 +339,7 @@ public class PNGRed extends AbstractRed
(byte)0xcc, (byte)0xdd, (byte)0xee, (byte)0xff }
};
- private int[] grayLut = null;
+ private int[] grayLut;
private void initGrayLut(int bits) {
int len = 1 << bits;
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFDecodeParam.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFDecodeParam.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFDecodeParam.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFDecodeParam.java Tue Jul 15 20:44:18 2014
@@ -72,8 +72,8 @@ import org.apache.xmlgraphics.image.cod
*/
public class TIFFDecodeParam implements ImageDecodeParam {
- private boolean decodePaletteAsShorts = false;
- private Long ifdOffset = null;
+ private boolean decodePaletteAsShorts;
+ private Long ifdOffset;
private boolean convertJPEGYCbCrToRGB = true;
/** Constructs a default instance of <code>TIFFDecodeParam</code>. */
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFDirectory.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFDirectory.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFDirectory.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFDirectory.java Tue Jul 15 20:44:18 2014
@@ -80,7 +80,7 @@ public class TIFFDirectory implements Se
long ifdOffset = 8;
/** The offset of the next IFD. */
- long nextIFDOffset = 0;
+ long nextIFDOffset;
/** The default constructor. */
TIFFDirectory() { }
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFFaxDecoder.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFFaxDecoder.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFFaxDecoder.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFFaxDecoder.java Tue Jul 15 20:44:18 2014
@@ -37,18 +37,18 @@ class TIFFFaxDecoder {
// Data structures needed to store changing elements for the previous
// and the current scanline
- private int changingElemSize = 0;
+ private int changingElemSize;
private int[] prevChangingElems;
private int[] currChangingElems;
// Element at which to start search in getNextChangingElement
- private int lastChangingElement = 0;
+ private int lastChangingElement;
private int compression = 2;
// Variables set by T4Options
- private int uncompressedMode = 0;
- private int fillBits = 0;
+ private int uncompressedMode;
+ private int fillBits;
private int oneD;
static int[] table1 = {
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFImage.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFImage.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFImage.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFImage.java Tue Jul 15 20:44:18 2014
@@ -105,21 +105,21 @@ public class TIFFImage extends AbstractR
int predictor;
// DEFLATE variables
- Inflater inflater = null;
+ Inflater inflater;
// Endian-ness indicator
boolean isBigEndian;
int imageType;
- boolean isWhiteZero = false;
+ boolean isWhiteZero;
int dataType;
boolean decodePaletteAsShorts;
boolean tiled;
// Decoders
- private TIFFFaxDecoder decoder = null;
- private TIFFLZWDecoder lzwDecoder = null;
+ private TIFFFaxDecoder decoder;
+ private TIFFLZWDecoder lzwDecoder;
/**
* Inflates <code>deflated</code> into <code>inflated</code> using the
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFLZWDecoder.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFLZWDecoder.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFLZWDecoder.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFLZWDecoder.java Tue Jul 15 20:44:18 2014
@@ -33,7 +33,7 @@ import org.apache.xmlgraphics.image.code
public class TIFFLZWDecoder {
byte[][] stringTable;
- byte[] data = null;
+ byte[] data;
byte[] uncompData;
int tableIndex;
int bitsToGet = 9;
@@ -44,8 +44,8 @@ public class TIFFLZWDecoder {
int h;
int predictor;
int samplesPerPixel;
- int nextData = 0;
- int nextBits = 0;
+ int nextData;
+ int nextBits;
int[] andTable = {
511,
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/FileCacheSeekableStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/FileCacheSeekableStream.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/FileCacheSeekableStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/FileCacheSeekableStream.java Tue Jul 15 20:44:18 2014
@@ -56,13 +56,13 @@ public final class FileCacheSeekableStre
private byte[] buf = new byte[bufLen];
/** Number of bytes in the cache. */
- private long length = 0;
+ private long length;
/** Next byte to be read. */
- private long pointer = 0;
+ private long pointer;
/** True if we've encountered the end of the source stream. */
- private boolean foundEOF = false;
+ private boolean foundEOF;
/**
* Constructs a <code>MemoryCacheSeekableStream</code> that takes
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/ForwardSeekableStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/ForwardSeekableStream.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/ForwardSeekableStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/ForwardSeekableStream.java Tue Jul 15 20:44:18 2014
@@ -34,7 +34,7 @@ public class ForwardSeekableStream exten
private InputStream src;
/** The current position. */
- long pointer = 0L;
+ long pointer;
/**
* Constructs a <code>InputStreamForwardSeekableStream</code> from a
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/MemoryCacheSeekableStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/MemoryCacheSeekableStream.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/MemoryCacheSeekableStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/MemoryCacheSeekableStream.java Tue Jul 15 20:44:18 2014
@@ -43,7 +43,7 @@ public final class MemoryCacheSeekableSt
private InputStream src;
/** Position of first unread byte. */
- private long pointer = 0;
+ private long pointer;
/** Log_2 of the sector size. */
private static final int SECTOR_SHIFT = 9;
@@ -58,13 +58,13 @@ public final class MemoryCacheSeekableSt
private List data = new ArrayList();
/** Number of sectors stored. */
- int sectors = 0;
+ int sectors;
/** Number of bytes read. */
- int length = 0;
+ int length;
/** True if we've previously reached the end of the source stream */
- boolean foundEOS = false;
+ boolean foundEOS;
/**
* Constructs a <code>MemoryCacheSeekableStream</code> that takes
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/SimpleRenderedImage.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/SimpleRenderedImage.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/SimpleRenderedImage.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/SimpleRenderedImage.java Tue Jul 15 20:44:18 2014
@@ -68,16 +68,16 @@ public abstract class SimpleRenderedImag
protected int tileHeight;
/** The X coordinate of the upper-left pixel of tile (0, 0). */
- protected int tileGridXOffset = 0;
+ protected int tileGridXOffset;
/** The Y coordinate of the upper-left pixel of tile (0, 0). */
- protected int tileGridYOffset = 0;
+ protected int tileGridYOffset;
/** The image's SampleModel. */
- protected SampleModel sampleModel = null;
+ protected SampleModel sampleModel;
/** The image's ColorModel. */
- protected ColorModel colorModel = null;
+ protected ColorModel colorModel;
/** The image's sources, stored in a Vector. */
protected List sources = new ArrayList();
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageRawJPEG.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageRawJPEG.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageRawJPEG.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageRawJPEG.java Tue Jul 15 20:44:18 2014
@@ -34,7 +34,7 @@ public class ImageRawJPEG extends ImageR
private int sofType;
private ColorSpace colorSpace;
private ICC_Profile iccProfile;
- private boolean invertImage = false;
+ private boolean invertImage;
/**
* Main constructor.
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/PNGFile.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/PNGFile.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/PNGFile.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/PNGFile.java Tue Jul 15 20:44:18 2014
@@ -67,7 +67,7 @@ class PNGFile implements PNGConstants {
private byte[] bluePalette;
private byte[] alphaPalette;
private boolean hasPalette;
- private boolean hasAlphaPalette = false;
+ private boolean hasAlphaPalette;
public PNGFile(InputStream stream) throws IOException, ImageException {
if (!stream.markSupported()) {
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/PreloaderEPS.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/PreloaderEPS.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/PreloaderEPS.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/PreloaderEPS.java Tue Jul 15 20:44:18 2014
@@ -178,12 +178,12 @@ public class PreloaderEPS extends Abstra
*/
public static class EPSBinaryFileHeader {
- private long psStart = 0;
- private long psLength = 0;
- private long wmfStart = 0;
- private long wmfLength = 0;
- private long tiffStart = 0;
- private long tiffLength = 0;
+ private long psStart;
+ private long psLength;
+ private long wmfStart;
+ private long wmfLength;
+ private long tiffStart;
+ private long tiffLength;
/**
* Returns the start offset of the PostScript section.
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/rendered/Any2LsRGBRed.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/rendered/Any2LsRGBRed.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/rendered/Any2LsRGBRed.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/rendered/Any2LsRGBRed.java Tue Jul 15 20:44:18 2014
@@ -50,7 +50,7 @@ import org.apache.xmlgraphics.image.Grap
*/
public class Any2LsRGBRed extends AbstractRed {
- boolean srcIssRGB = false;
+ boolean srcIssRGB;
/**
* Construct a luminace image from src.
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/rendered/Any2sRGBRed.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/rendered/Any2sRGBRed.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/rendered/Any2sRGBRed.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/rendered/Any2sRGBRed.java Tue Jul 15 20:44:18 2014
@@ -52,7 +52,7 @@ import org.apache.xmlgraphics.image.Grap
*/
public class Any2sRGBRed extends AbstractRed {
- boolean srcIsLsRGB = false;
+ boolean srcIsLsRGB;
/**
* Construct a luminace image from src.
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/ImageWriterParams.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/ImageWriterParams.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/ImageWriterParams.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/ImageWriterParams.java Tue Jul 15 20:44:18 2014
@@ -33,8 +33,8 @@ public class ImageWriterParams {
/** Used for generating exactly one strip for each row */
public static final int ONE_ROW_PER_STRIP = 1;
- private Integer xResolution = null;
- private Integer yResolution = null;
+ private Integer xResolution;
+ private Integer yResolution;
private Float jpegQuality;
private Boolean jpegForceBaseline;
private String compressionMethod;
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/imageio/ImageIOImageWriter.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/imageio/ImageIOImageWriter.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/imageio/ImageIOImageWriter.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/writer/imageio/ImageIOImageWriter.java Tue Jul 15 20:44:18 2014
@@ -290,7 +290,7 @@ public class ImageIOImageWriter implemen
private javax.imageio.ImageWriter iiowriter;
private ImageOutputStream imageStream;
- private boolean prepared = false;
+ private boolean prepared;
public IIOMultiImageWriter(OutputStream out) throws IOException {
this.iiowriter = getIIOImageWriter();
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/AbstractGraphics2D.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/AbstractGraphics2D.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/AbstractGraphics2D.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/AbstractGraphics2D.java Tue Jul 15 20:44:18 2014
@@ -82,12 +82,12 @@ public abstract class AbstractGraphics2D
/**
* Text handling strategy.
*/
- protected boolean textAsShapes = false;
+ protected boolean textAsShapes;
/**
* Protection agains infinite recursion
*/
- protected boolean inPossibleRecursion = false;
+ protected boolean inPossibleRecursion;
/**
* @param textAsShapes if true, all text is turned into shapes in the
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/GraphicContext.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/GraphicContext.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/GraphicContext.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/GraphicContext.java Tue Jul 15 20:44:18 2014
@@ -104,7 +104,7 @@ public class GraphicContext implements C
/**
* Current clip
*/
- protected Shape clip = null;
+ protected Shape clip;
/**
* Current set of RenderingHints
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2D.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2D.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2D.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2D.java Tue Jul 15 20:44:18 2014
@@ -79,7 +79,7 @@ public class PSGraphics2D extends Abstra
protected PSGenerator gen;
/** Disable or enable clipping */
- protected boolean clippingDisabled = false;
+ protected boolean clippingDisabled;
/** Fallback text handler */
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSTilingPattern.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSTilingPattern.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSTilingPattern.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSTilingPattern.java Tue Jul 15 20:44:18 2014
@@ -48,38 +48,38 @@ public class PSTilingPattern {
/**
* The name of the pattern (for example: "Pattern1" )
*/
- protected String patternName = null;
+ protected String patternName;
/**
* The XUID is an extended unique ID -- an array of integers that provides for
* distributed, hierarchical management of the space of unique ID numbers
* (optional)
*/
- protected List xUID = null;
+ protected List xUID;
/**
* A PostScript procedure for painting the pattern cell
*/
- protected StringBuffer paintProc = null;
+ protected StringBuffer paintProc;
/**
* An array of four numbers in the pattern coordinate system, giving
* the coordinates of the left, bottom, right, and top edges, respectively, of the
* pattern cell's bounding box
*/
- protected Rectangle2D bBox = null;
+ protected Rectangle2D bBox;
/**
* The desired horizontal spacing between pattern cells, measured in
* the pattern coordinate system
*/
- protected double xStep = 0;
+ protected double xStep;
/**
* The desired vertical spacing between pattern cells, measured in
* the pattern coordinate system
*/
- protected double yStep = 0;
+ protected double yStep;
/**
* A code that determines how the color of the pattern cell is to be
@@ -99,7 +99,7 @@ public class PSTilingPattern {
/**
* A texture is used for filling shapes
*/
- protected TexturePaint texture = null;
+ protected TexturePaint texture;
/**
* Constructor for the creation of pattern with defined PaintProc
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSPageDeviceDictionary.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSPageDeviceDictionary.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSPageDeviceDictionary.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSPageDeviceDictionary.java Tue Jul 15 20:44:18 2014
@@ -33,7 +33,7 @@ public class PSPageDeviceDictionary exte
/**
* Whether or not the contents of the dictionary are flushed on retrieval
*/
- private boolean flushOnRetrieval = false;
+ private boolean flushOnRetrieval;
/**
* Dictionary content that has not been output/written yet
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSState.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSState.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSState.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSState.java Tue Jul 15 20:44:18 2014
@@ -42,9 +42,9 @@ public class PSState implements Serializ
private AffineTransform transform = new AffineTransform();
private List transformConcatList = new java.util.ArrayList();
- private int linecap = 0;
- private int linejoin = 0;
- private float miterLimit = 0;
+ private int linecap;
+ private int linejoin;
+ private float miterLimit;
private double linewidth = 1.0f;
private String dashpattern = DEFAULT_DASH;
private Color color = DEFAULT_RGB_COLOR;
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCParser.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCParser.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCParser.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCParser.java Tue Jul 15 20:44:18 2014
@@ -51,14 +51,14 @@ public class DSCParser implements DSCPar
private InputStream in;
private BufferedReader reader;
- private boolean eofFound = false;
+ private boolean eofFound;
private boolean checkEOF = true;
private DSCEvent currentEvent;
private DSCEvent nextEvent;
private DSCListener nestedDocumentHandler;
private DSCListener filterListener;
private List listeners;
- private boolean listenersDisabled = false;
+ private boolean listenersDisabled;
/**
* Creates a new DSC parser.
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85InputStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85InputStream.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85InputStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85InputStream.java Tue Jul 15 20:44:18 2014
@@ -38,10 +38,10 @@ public class ASCII85InputStream extends
implements ASCII85Constants {
private InputStream in;
- private boolean eodReached = false;
+ private boolean eodReached;
private int[] b = new int[4]; //decoded
- private int bSize = 0;
- private int bIndex = 0;
+ private int bSize;
+ private int bIndex;
/** @see java.io.FilterInputStream **/
public ASCII85InputStream(InputStream in) {
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85OutputStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85OutputStream.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85OutputStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85OutputStream.java Tue Jul 15 20:44:18 2014
@@ -33,10 +33,10 @@ public class ASCII85OutputStream extends
private static final boolean DEBUG = false;
- private int pos = 0;
- private long buffer = 0;
- private int posinline = 0;
- private int bw = 0;
+ private int pos;
+ private long buffer;
+ private int posinline;
+ private int bw;
/** @see java.io.FilterOutputStream **/
public ASCII85OutputStream(OutputStream out) {
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCIIHexOutputStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCIIHexOutputStream.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCIIHexOutputStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCIIHexOutputStream.java Tue Jul 15 20:44:18 2014
@@ -38,7 +38,7 @@ public class ASCIIHexOutputStream extend
private static final int A = 0x41; //"A"
private static final int ADIFF = A - NINE - 1;
- private int posinline = 0;
+ private int posinline;
/** @see java.io.FilterOutputStream **/
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Base64DecodeStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Base64DecodeStream.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Base64DecodeStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Base64DecodeStream.java Tue Jul 15 20:44:18 2014
@@ -99,7 +99,7 @@ public class Base64DecodeStream extends
byte[] decodeBuffer = new byte[4];
byte[] outBuffer = new byte[3];
int outOffset = 3;
- boolean eof = false;
+ boolean eof;
public int read() throws IOException {
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Base64EncodeStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Base64EncodeStream.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Base64EncodeStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Base64EncodeStream.java Tue Jul 15 20:44:18 2014
@@ -59,9 +59,9 @@ public class Base64EncodeStream extends
};
byte [] atom = new byte[3];
- int atomLen = 0;
+ int atomLen;
byte [] encodeBuf = new byte[4];
- int lineLen = 0;
+ int lineLen;
PrintStream out;
boolean closeOutOnClose;
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/RunLengthEncodeOutputStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/RunLengthEncodeOutputStream.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/RunLengthEncodeOutputStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/RunLengthEncodeOutputStream.java Tue Jul 15 20:44:18 2014
@@ -43,7 +43,7 @@ public class RunLengthEncodeOutputStream
private static final int IN_SEQUENCE = 2;
private static final int NOT_IN_SEQUENCE = 3;
- private int runCount = 0;
+ private int runCount;
private int isSequence = NOT_IDENTIFY_SEQUENCE;
private byte[] runBuffer = new byte[MAX_SEQUENCE_COUNT + 1];
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/SubInputStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/SubInputStream.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/SubInputStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/SubInputStream.java Tue Jul 15 20:44:18 2014
@@ -40,7 +40,7 @@ public class SubInputStream extends Filt
* Indicates whether the underlying stream should be closed when the {@link #close()} method
* is called.
*/
- private boolean closeUnderlying = false;
+ private boolean closeUnderlying;
/**
* Creates a new SubInputStream.
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/XMPSchemaRegistry.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/XMPSchemaRegistry.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/XMPSchemaRegistry.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/XMPSchemaRegistry.java Tue Jul 15 20:44:18 2014
@@ -31,7 +31,7 @@ import org.apache.xmlgraphics.xmp.schema
*/
public final class XMPSchemaRegistry {
- private static XMPSchemaRegistry instance = null;
+ private static XMPSchemaRegistry instance;
private Map schemas = new java.util.HashMap();
Modified: xmlgraphics/commons/trunk/test/java/org/apache/xmlgraphics/image/writer/imageio/ImageIOTIFFImageWriterTestCase.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/test/java/org/apache/xmlgraphics/image/writer/imageio/ImageIOTIFFImageWriterTestCase.java?rev=1610846&r1=1610845&r2=1610846&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/test/java/org/apache/xmlgraphics/image/writer/imageio/ImageIOTIFFImageWriterTestCase.java (original)
+++ xmlgraphics/commons/trunk/test/java/org/apache/xmlgraphics/image/writer/imageio/ImageIOTIFFImageWriterTestCase.java Tue Jul 15 20:44:18 2014
@@ -127,8 +127,8 @@ public class ImageIOTIFFImageWriterTestC
}
private class TestImageWriter implements ImageWriterHelper {
- private ImageWriter writer = null;
- private ByteArrayOutputStream baout = null;
+ private ImageWriter writer;
+ private ByteArrayOutputStream baout;
public void createImageWriter(ImageWriter imageWriter) throws IOException {
baout = new ByteArrayOutputStream();
@@ -150,8 +150,8 @@ public class ImageIOTIFFImageWriterTestC
}
private class TestMultiImageWriter implements ImageWriterHelper {
- private MultiImageWriter writer = null;
- private ByteArrayOutputStream baout = null;
+ private MultiImageWriter writer;
+ private ByteArrayOutputStream baout;
public void createImageWriter(ImageWriter imageWriter)
throws IOException {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org