You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by nd...@apache.org on 2006/10/24 16:05:14 UTC
svn commit: r467336 - in
/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image:
GifDecoder.java JpegDecoder.java PngDecoder.java
Author: ndbeyer
Date: Tue Oct 24 07:05:13 2006
New Revision: 467336
URL: http://svn.apache.org/viewvc?view=rev&rev=467336
Log:
Remove 'final' modifier from fields accessed by native code.
Modified:
incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/GifDecoder.java
incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/JpegDecoder.java
incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/PngDecoder.java
Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/GifDecoder.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/GifDecoder.java?view=diff&rev=467336&r1=467335&r2=467336
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/GifDecoder.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/GifDecoder.java Tue Oct 24 07:05:13 2006
@@ -55,7 +55,7 @@
// I/O buffer
private static final int BUFFER_SIZE = 1024;
- private final byte buffer[] = new byte[BUFFER_SIZE];
+ private byte buffer[] = new byte[BUFFER_SIZE];
GifDataStream gifDataStream = new GifDataStream();
GifGraphicBlock currBlock;
@@ -68,7 +68,7 @@
private int bytesConsumed;
private boolean consumersPrepared;
- private final Hashtable<String, String> properties = new Hashtable<String, String>();
+ private Hashtable<String, String> properties = new Hashtable<String, String>();
// Could be set up by java code or native method when
// transparent pixel index changes or local color table encountered
Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/JpegDecoder.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/JpegDecoder.java?view=diff&rev=467336&r1=467335&r2=467336
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/JpegDecoder.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/JpegDecoder.java Tue Oct 24 07:05:13 2006
@@ -47,7 +47,7 @@
// Buffer for the stream
private static final int BUFFER_SIZE = 1024;
- private final byte buffer[] = new byte[BUFFER_SIZE];
+ private byte buffer[] = new byte[BUFFER_SIZE];
// 3 possible color models only
private static ColorModel cmRGB;
@@ -58,22 +58,22 @@
// Pointer to native structure which store decoding state
// between subsequent decoding/IO-suspension cycles
- private final long hNativeDecoder = 0; // NULL initially
+ private long hNativeDecoder = 0; // NULL initially
private boolean headerDone = false;
// Next 4 members are filled by the native method (decompress).
// We can simply check if imageWidth is still negative to find
// out if they are already filled.
- private final int imageWidth = -1;
- private final int imageHeight = -1;
- private final boolean progressive = false;
- private final int jpegColorSpace = 0;
+ private int imageWidth = -1;
+ private int imageHeight = -1;
+ private boolean progressive = false;
+ private int jpegColorSpace = 0;
// Stores number of bytes consumed by the native decoder
- private final int bytesConsumed = 0;
+ private int bytesConsumed = 0;
// Stores current scanline returned by the decoder
- private final int currScanline = 0;
+ private int currScanline = 0;
private ColorModel cm = null;
Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/PngDecoder.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/PngDecoder.java?view=diff&rev=467336&r1=467335&r2=467336
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/PngDecoder.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/PngDecoder.java Tue Oct 24 07:05:13 2006
@@ -56,7 +56,7 @@
private static final int PNG_COLOR_TYPE_RGBA = 6;
private static final int INPUT_BUFFER_SIZE = 4096;
- private final byte buffer[] = new byte[INPUT_BUFFER_SIZE];
+ private byte buffer[] = new byte[INPUT_BUFFER_SIZE];
// Buffers for decoded image data
byte byteOut[];