commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dam...@apache.org
Subject svn commit: r1780761 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/xpm/XpmImageParser.java
Date Sun, 29 Jan 2017 01:06:45 GMT
Author: damjan
Date: Sun Jan 29 01:06:45 2017
New Revision: 1780761

URL: http://svn.apache.org/viewvc?rev=1780761&view=rev
Log:
Indentation fixes.


Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/xpm/XpmImageParser.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/xpm/XpmImageParser.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/xpm/XpmImageParser.java?rev=1780761&r1=1780760&r2=1780761&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/xpm/XpmImageParser.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/xpm/XpmImageParser.java
Sun Jan 29 01:06:45 2017
@@ -512,9 +512,9 @@ public class XpmImageParser extends Imag
         if (xpmHeader.palette.size() <= (1 << 8)) {
             final int[] palette = new int[xpmHeader.palette.size()];
             for (final Entry<Object, PaletteEntry> entry : xpmHeader.palette.entrySet())
{
-            final PaletteEntry paletteEntry = entry.getValue();
-            palette[paletteEntry.index] = paletteEntry.getBestARGB();
-         }
+                final PaletteEntry paletteEntry = entry.getValue();
+                palette[paletteEntry.index] = paletteEntry.getBestARGB();
+            }
             colorModel = new IndexColorModel(8, xpmHeader.palette.size(),
                     palette, 0, true, -1, DataBuffer.TYPE_BYTE);
             raster = Raster.createInterleavedRaster(
@@ -524,9 +524,9 @@ public class XpmImageParser extends Imag
         } else if (xpmHeader.palette.size() <= (1 << 16)) {
             final int[] palette = new int[xpmHeader.palette.size()];
             for (final Entry<Object, PaletteEntry> entry : xpmHeader.palette.entrySet())
{
-            final PaletteEntry paletteEntry = entry.getValue();
-            palette[paletteEntry.index] = paletteEntry.getBestARGB();
-         }
+                final PaletteEntry paletteEntry = entry.getValue();
+                palette[paletteEntry.index] = paletteEntry.getBestARGB();
+            }
             colorModel = new IndexColorModel(16, xpmHeader.palette.size(),
                     palette, 0, true, -1, DataBuffer.TYPE_USHORT);
             raster = Raster.createInterleavedRaster(



Mime
View raw message