commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1764294 - /commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/examples/ApacheImagingSpeedAndMemoryTest.java
Date Tue, 11 Oct 2016 16:35:38 GMT
Author: sebb
Date: Tue Oct 11 16:35:38 2016
New Revision: 1764294

URL: http://svn.apache.org/viewvc?rev=1764294&view=rev
Log:
Findbugs: use %n in preference to \n in format strings

Modified:
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/examples/ApacheImagingSpeedAndMemoryTest.java

Modified: commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/examples/ApacheImagingSpeedAndMemoryTest.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/examples/ApacheImagingSpeedAndMemoryTest.java?rev=1764294&r1=1764293&r2=1764294&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/examples/ApacheImagingSpeedAndMemoryTest.java
(original)
+++ commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/examples/ApacheImagingSpeedAndMemoryTest.java
Tue Oct 11 16:35:38 2016
@@ -244,14 +244,14 @@ public class ApacheImagingSpeedAndMemory
 
                 if (i == 0) {
                     // print header info
-                    fmt.format("\n");
-                    fmt.format("Processing file: %s\n", target.getName());
-                    fmt.format(" image size: %d by %d\n\n", bImage.getWidth(),
+                    fmt.format("%n");
+                    fmt.format("Processing file: %s%n", target.getName());
+                    fmt.format(" image size: %d by %d%n%n", bImage.getWidth(),
                             bImage.getHeight());
-                    fmt.format(" time to load image    --         memory\n");
-                    fmt.format(" time ms      avg ms   --    used mb   total mb\n");
+                    fmt.format(" time to load image    --         memory%n");
+                    fmt.format(" time ms      avg ms   --    used mb   total mb%n");
                 }
-                fmt.format("%9.3f %9.3f    --  %9.3f %9.3f \n", testTime,
+                fmt.format("%9.3f %9.3f    --  %9.3f %9.3f %n", testTime,
                         avgTime, usedMemory / (1024.0 * 1024.0), totalMemory
                                 / (1024.0 * 1024.0));
                 bImage = null;



Mime
View raw message