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/02/11 19:49:06 UTC
svn commit: r1567293 - in /xmlgraphics/commons/branches/Temp_Checkstyle:
src/java/org/apache/xmlgraphics/image/
src/java/org/apache/xmlgraphics/image/codec/png/
src/java/org/apache/xmlgraphics/image/rendered/
src/java/org/apache/xmlgraphics/ps/ src/jav...
Author: vhennebert
Date: Tue Feb 11 18:49:06 2014
New Revision: 1567293
URL: http://svn.apache.org/r1567293
Log:
Fix remaining Checkstyle issues
Modified:
xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/GraphicsUtil.java
xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/codec/png/PNGImageDecoder.java
xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/codec/png/PNGRed.java
xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/rendered/BufferedImageCachableRed.java
xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/ps/ImageEncodingHelper.java
xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/util/io/Base64EncodeStream.java
xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderFactoryPNGTestCase.java
xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderPNGTestCase.java
xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderRawPNGTestCase.java
xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/PNGFileTestCase.java
xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/writer/ResolutionTestCase.java
xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/writer/imageio/ImageIOTIFFImageWriterTestCase.java
xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2DTestCase.java
xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/util/DoubleFormatUtilTestCase.java
Modified: xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/GraphicsUtil.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/GraphicsUtil.java?rev=1567293&r1=1567292&r2=1567293&view=diff
==============================================================================
--- xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/GraphicsUtil.java (original)
+++ xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/GraphicsUtil.java Tue Feb 11 18:49:06 2014
@@ -758,9 +758,12 @@ public final class GraphicsUtil {
} else {
in--;
alpha = fpNorm * a;
- pixel[in] = (pixel[in] * alpha + pt5) >>> 24; in--;
- pixel[in] = (pixel[in] * alpha + pt5) >>> 24; in--;
- pixel[in] = (pixel[in] * alpha + pt5) >>> 24; in--;
+ pixel[in] = (pixel[in] * alpha + pt5) >>> 24;
+ in--;
+ pixel[in] = (pixel[in] * alpha + pt5) >>> 24;
+ in--;
+ pixel[in] = (pixel[in] * alpha + pt5) >>> 24;
+ in--;
}
}
break;
@@ -802,9 +805,12 @@ public final class GraphicsUtil {
} else {
in--;
ialpha = fpNorm / a;
- pixel[in] = (pixel[in] * ialpha + pt5) >>> 16; in--;
- pixel[in] = (pixel[in] * ialpha + pt5) >>> 16; in--;
- pixel[in] = (pixel[in] * ialpha + pt5) >>> 16; in--;
+ pixel[in] = (pixel[in] * ialpha + pt5) >>> 16;
+ in--;
+ pixel[in] = (pixel[in] * ialpha + pt5) >>> 16;
+ in--;
+ pixel[in] = (pixel[in] * ialpha + pt5) >>> 16;
+ in--;
}
}
break;
@@ -841,7 +847,8 @@ public final class GraphicsUtil {
in = (bands + 1) * w - 1;
out = (bands * w) - 1;
while (in >= 0) {
- a = pixel[in]; in--;
+ a = pixel[in];
+ in--;
if (a > 0) {
if (a < 255) {
ialpha = fpNorm / a;
Modified: xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/codec/png/PNGImageDecoder.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/codec/png/PNGImageDecoder.java?rev=1567293&r1=1567292&r2=1567293&view=diff
==============================================================================
--- xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/codec/png/PNGImageDecoder.java (original)
+++ xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/codec/png/PNGImageDecoder.java Tue Feb 11 18:49:06 2014
@@ -901,8 +901,7 @@ class PNGImage extends SimpleRenderedIma
bkgdBlue = bluePalette[bkgdIndex] & 0xff;
if (encodeParam != null) {
- ((PNGEncodeParam.Palette)encodeParam).
- setBackgroundPaletteIndex(bkgdIndex);
+ ((PNGEncodeParam.Palette)encodeParam).setBackgroundPaletteIndex(bkgdIndex);
}
break;
case PNG_COLOR_GRAY: case PNG_COLOR_GRAY_ALPHA:
@@ -910,8 +909,7 @@ class PNGImage extends SimpleRenderedIma
bkgdRed = bkgdGreen = bkgdBlue = bkgdGray;
if (encodeParam != null) {
- ((PNGEncodeParam.Gray)encodeParam).
- setBackgroundGray(bkgdGray);
+ ((PNGEncodeParam.Gray)encodeParam).setBackgroundGray(bkgdGray);
}
break;
case PNG_COLOR_RGB: case PNG_COLOR_RGB_ALPHA:
@@ -924,8 +922,7 @@ class PNGImage extends SimpleRenderedIma
bkgdRGB[1] = bkgdGreen;
bkgdRGB[2] = bkgdBlue;
if (encodeParam != null) {
- ((PNGEncodeParam.RGB)encodeParam).
- setBackgroundRGB(bkgdRGB);
+ ((PNGEncodeParam.RGB)encodeParam).setBackgroundRGB(bkgdRGB);
}
break;
}
@@ -1205,8 +1202,7 @@ class PNGImage extends SimpleRenderedIma
}
if (encodeParam != null) {
- ((PNGEncodeParam.Gray)encodeParam).
- setTransparentGray(grayTransparentAlpha);
+ ((PNGEncodeParam.Gray)encodeParam).setTransparentGray(grayTransparentAlpha);
}
}
} else if (colorType == PNG_COLOR_RGB) {
@@ -1223,8 +1219,7 @@ class PNGImage extends SimpleRenderedIma
rgbTrans[0] = redTransparentAlpha;
rgbTrans[1] = greenTransparentAlpha;
rgbTrans[2] = blueTransparentAlpha;
- ((PNGEncodeParam.RGB)encodeParam).
- setTransparentRGB(rgbTrans);
+ ((PNGEncodeParam.RGB)encodeParam).setTransparentRGB(rgbTrans);
}
}
} else if (colorType == PNG_COLOR_GRAY_ALPHA
Modified: xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/codec/png/PNGRed.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/codec/png/PNGRed.java?rev=1567293&r1=1567292&r2=1567293&view=diff
==============================================================================
--- xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/codec/png/PNGRed.java (original)
+++ xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/codec/png/PNGRed.java Tue Feb 11 18:49:06 2014
@@ -1024,8 +1024,7 @@ public class PNGRed extends AbstractRed
bkgdBlue = bluePalette[bkgdIndex] & 0xff;
if (encodeParam != null) {
- ((PNGEncodeParam.Palette)encodeParam).
- setBackgroundPaletteIndex(bkgdIndex);
+ ((PNGEncodeParam.Palette)encodeParam).setBackgroundPaletteIndex(bkgdIndex);
}
break;
case PNG_COLOR_GRAY: case PNG_COLOR_GRAY_ALPHA:
@@ -1033,8 +1032,7 @@ public class PNGRed extends AbstractRed
bkgdRed = bkgdGreen = bkgdBlue = bkgdGray;
if (encodeParam != null) {
- ((PNGEncodeParam.Gray)encodeParam).
- setBackgroundGray(bkgdGray);
+ ((PNGEncodeParam.Gray)encodeParam).setBackgroundGray(bkgdGray);
}
break;
case PNG_COLOR_RGB: case PNG_COLOR_RGB_ALPHA:
@@ -1047,8 +1045,7 @@ public class PNGRed extends AbstractRed
bkgdRGB[1] = bkgdGreen;
bkgdRGB[2] = bkgdBlue;
if (encodeParam != null) {
- ((PNGEncodeParam.RGB)encodeParam).
- setBackgroundRGB(bkgdRGB);
+ ((PNGEncodeParam.RGB)encodeParam).setBackgroundRGB(bkgdRGB);
}
break;
}
@@ -1328,8 +1325,7 @@ public class PNGRed extends AbstractRed
}
if (encodeParam != null) {
- ((PNGEncodeParam.Gray)encodeParam).
- setTransparentGray(grayTransparentAlpha);
+ ((PNGEncodeParam.Gray)encodeParam).setTransparentGray(grayTransparentAlpha);
}
}
} else if (colorType == PNG_COLOR_RGB) {
@@ -1346,8 +1342,7 @@ public class PNGRed extends AbstractRed
rgbTrans[0] = redTransparentAlpha;
rgbTrans[1] = greenTransparentAlpha;
rgbTrans[2] = blueTransparentAlpha;
- ((PNGEncodeParam.RGB)encodeParam).
- setTransparentRGB(rgbTrans);
+ ((PNGEncodeParam.RGB)encodeParam).setTransparentRGB(rgbTrans);
}
}
} else if (colorType == PNG_COLOR_GRAY_ALPHA
Modified: xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/rendered/BufferedImageCachableRed.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/rendered/BufferedImageCachableRed.java?rev=1567293&r1=1567292&r2=1567293&view=diff
==============================================================================
--- xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/rendered/BufferedImageCachableRed.java (original)
+++ xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/image/rendered/BufferedImageCachableRed.java Tue Feb 11 18:49:06 2014
@@ -104,7 +104,7 @@ public class BufferedImageCachableRed ex
return null;
}
r = r.intersection(getBounds());
- r.translate(-getMinX(), - getMinY());
+ r.translate(-getMinX(), -getMinY());
Raster ret = bi.getData(r);
return ret.createTranslatedChild(ret.getMinX() + getMinX(),
Modified: xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/ps/ImageEncodingHelper.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/ps/ImageEncodingHelper.java?rev=1567293&r1=1567292&r2=1567293&view=diff
==============================================================================
--- xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/ps/ImageEncodingHelper.java (original)
+++ xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/ps/ImageEncodingHelper.java Tue Feb 11 18:49:06 2014
@@ -135,8 +135,8 @@ public class ImageEncodingHelper {
* @param out the OutputStream to write the pixels to
* @throws IOException if an I/O error occurs
*/
- public static void encodeRenderedImageAsRGB(RenderedImage image, OutputStream out, boolean outputbw, boolean bwinvert)
- throws IOException {
+ public static void encodeRenderedImageAsRGB(RenderedImage image, OutputStream out,
+ boolean outputbw, boolean bwinvert) throws IOException {
Raster raster = getRaster(image);
Object data;
int nbands = raster.getNumBands();
Modified: xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/util/io/Base64EncodeStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/util/io/Base64EncodeStream.java?rev=1567293&r1=1567292&r2=1567293&view=diff
==============================================================================
--- xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/util/io/Base64EncodeStream.java (original)
+++ xmlgraphics/commons/branches/Temp_Checkstyle/src/java/org/apache/xmlgraphics/util/io/Base64EncodeStream.java Tue Feb 11 18:49:06 2014
@@ -180,14 +180,20 @@ public class Base64EncodeStream extends
if (atomLen != 0) {
switch(atomLen) {
case 1:
- atom[1] = data[offset++]; len--; atomLen++;
+ atom[1] = data[offset++];
+ len--;
+ atomLen++;
if (len == 0) {
return;
}
- atom[2] = data[offset++]; len--; atomLen++;
+ atom[2] = data[offset++];
+ len--;
+ atomLen++;
break;
case 2:
- atom[2] = data[offset++]; len--; atomLen++;
+ atom[2] = data[offset++];
+ len--;
+ atomLen++;
break;
default:
}
Modified: xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderFactoryPNGTestCase.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderFactoryPNGTestCase.java?rev=1567293&r1=1567292&r2=1567293&view=diff
==============================================================================
--- xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderFactoryPNGTestCase.java (original)
+++ xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderFactoryPNGTestCase.java Tue Feb 11 18:49:06 2014
@@ -21,14 +21,14 @@ package org.apache.xmlgraphics.image.loa
import org.junit.Test;
-import org.apache.xmlgraphics.image.loader.ImageFlavor;
-import org.apache.xmlgraphics.image.loader.spi.ImageLoader;
-import org.apache.xmlgraphics.util.MimeConstants;
-
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
+import org.apache.xmlgraphics.image.loader.ImageFlavor;
+import org.apache.xmlgraphics.image.loader.spi.ImageLoader;
+import org.apache.xmlgraphics.util.MimeConstants;
+
public class ImageLoaderFactoryPNGTestCase {
private ImageLoaderFactoryPNG ilfpng = new ImageLoaderFactoryPNG();
Modified: xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderPNGTestCase.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderPNGTestCase.java?rev=1567293&r1=1567292&r2=1567293&view=diff
==============================================================================
--- xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderPNGTestCase.java (original)
+++ xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderPNGTestCase.java Tue Feb 11 18:49:06 2014
@@ -23,6 +23,9 @@ import java.io.IOException;
import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
import org.apache.xmlgraphics.image.loader.Image;
import org.apache.xmlgraphics.image.loader.ImageContext;
import org.apache.xmlgraphics.image.loader.ImageException;
@@ -33,9 +36,6 @@ import org.apache.xmlgraphics.image.load
import org.apache.xmlgraphics.image.loader.MockImageSessionContext;
import org.apache.xmlgraphics.util.MimeConstants;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-
public class ImageLoaderPNGTestCase {
private ImageLoaderPNG ilpng = new ImageLoaderPNG();
Modified: xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderRawPNGTestCase.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderRawPNGTestCase.java?rev=1567293&r1=1567292&r2=1567293&view=diff
==============================================================================
--- xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderRawPNGTestCase.java (original)
+++ xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderRawPNGTestCase.java Tue Feb 11 18:49:06 2014
@@ -23,6 +23,10 @@ import java.io.IOException;
import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+
import org.apache.xmlgraphics.image.loader.Image;
import org.apache.xmlgraphics.image.loader.ImageContext;
import org.apache.xmlgraphics.image.loader.ImageException;
@@ -33,10 +37,6 @@ import org.apache.xmlgraphics.image.load
import org.apache.xmlgraphics.image.loader.MockImageSessionContext;
import org.apache.xmlgraphics.util.MimeConstants;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
-
public class ImageLoaderRawPNGTestCase {
private ImageLoaderRawPNG ilrpng = new ImageLoaderRawPNG();
Modified: xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/PNGFileTestCase.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/PNGFileTestCase.java?rev=1567293&r1=1567292&r2=1567293&view=diff
==============================================================================
--- xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/PNGFileTestCase.java (original)
+++ xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/loader/impl/PNGFileTestCase.java Tue Feb 11 18:49:06 2014
@@ -26,6 +26,10 @@ import java.io.IOException;
import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+
import org.apache.xmlgraphics.image.loader.ImageContext;
import org.apache.xmlgraphics.image.loader.ImageException;
import org.apache.xmlgraphics.image.loader.ImageInfo;
@@ -34,10 +38,6 @@ import org.apache.xmlgraphics.image.load
import org.apache.xmlgraphics.image.loader.MockImageSessionContext;
import org.apache.xmlgraphics.util.MimeConstants;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
-
public class PNGFileTestCase implements PNGConstants {
@Test
Modified: xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/writer/ResolutionTestCase.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/writer/ResolutionTestCase.java?rev=1567293&r1=1567292&r2=1567293&view=diff
==============================================================================
--- xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/writer/ResolutionTestCase.java (original)
+++ xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/writer/ResolutionTestCase.java Tue Feb 11 18:49:06 2014
@@ -39,14 +39,14 @@ import org.junit.Test;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
-import org.apache.commons.io.IOUtils;
-
-import org.apache.xmlgraphics.util.UnitConv;
-
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
+import org.apache.commons.io.IOUtils;
+
+import org.apache.xmlgraphics.util.UnitConv;
+
public class ResolutionTestCase {
@Test
Modified: xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/writer/imageio/ImageIOTIFFImageWriterTestCase.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/writer/imageio/ImageIOTIFFImageWriterTestCase.java?rev=1567293&r1=1567292&r2=1567293&view=diff
==============================================================================
--- xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/writer/imageio/ImageIOTIFFImageWriterTestCase.java (original)
+++ xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/image/writer/imageio/ImageIOTIFFImageWriterTestCase.java Tue Feb 11 18:49:06 2014
@@ -120,11 +120,10 @@ public class ImageIOTIFFImageWriterTestC
}
private interface ImageWriterHelper {
- public void createImageWriter(ImageWriter imageWriter) throws IOException;
- public void writeImage(BufferedImage image, ImageWriterParams params)
- throws IOException;
- public void writeImageNoParams(BufferedImage image) throws IOException;
- public ByteArrayOutputStream getByteArrayOutput();
+ void createImageWriter(ImageWriter imageWriter) throws IOException;
+ void writeImage(BufferedImage image, ImageWriterParams params) throws IOException;
+ void writeImageNoParams(BufferedImage image) throws IOException;
+ ByteArrayOutputStream getByteArrayOutput();
}
private class TestImageWriter implements ImageWriterHelper {
Modified: xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2DTestCase.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2DTestCase.java?rev=1567293&r1=1567292&r2=1567293&view=diff
==============================================================================
--- xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2DTestCase.java (original)
+++ xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2DTestCase.java Tue Feb 11 18:49:06 2014
@@ -29,10 +29,6 @@ import java.io.IOException;
import org.junit.Before;
import org.junit.Test;
-import org.apache.xmlgraphics.java2d.GraphicContext;
-import org.apache.xmlgraphics.ps.PSGenerator;
-import org.apache.xmlgraphics.ps.PSState;
-
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@@ -41,6 +37,10 @@ import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
+import org.apache.xmlgraphics.java2d.GraphicContext;
+import org.apache.xmlgraphics.ps.PSGenerator;
+import org.apache.xmlgraphics.ps.PSState;
+
public class PSGraphics2DTestCase {
private PSGenerator gen;
Modified: xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/util/DoubleFormatUtilTestCase.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/util/DoubleFormatUtilTestCase.java?rev=1567293&r1=1567292&r2=1567293&view=diff
==============================================================================
--- xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/util/DoubleFormatUtilTestCase.java (original)
+++ xmlgraphics/commons/branches/Temp_Checkstyle/test/java/org/apache/xmlgraphics/util/DoubleFormatUtilTestCase.java Tue Feb 11 18:49:06 2014
@@ -497,7 +497,8 @@ public class DoubleFormatUtilTestCase {
formatPrecise(lowValue, decimals, precision);
}
long preciseFormatDuration = System.currentTimeMillis() - start;
- System.out.println("Format Precise duration: " + preciseFormatDuration + "ms to format " + (3 * nbTest) + " doubles");
+ System.out.println("Format Precise duration: " + preciseFormatDuration
+ + "ms to format " + (3 * nbTest) + " doubles");
r.setSeed(seed);
start = System.currentTimeMillis();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org