This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-imaging.git


The following commit(s) were added to refs/heads/master by this push:
     new fd2b5b83 Remove useless inline comments
fd2b5b83 is described below

commit fd2b5b8387d8f542e425c0c3f7d12f0706fe419d
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Wed Jan 31 09:04:40 2024 -0500

    Remove useless inline comments
---
 .../org/apache/commons/imaging/examples/tiff/ReadTagsAndImages.java   | 2 +-
 .../org/apache/commons/imaging/formats/png/PngWritePredictorTest.java | 4 ++--
 .../commons/imaging/formats/tiff/TiffFloatingPointReadTest.java       | 4 ++--
 .../floatingpoint/PaletteEntryForRangeTest.java                       | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/imaging/examples/tiff/ReadTagsAndImages.java 
b/src/test/java/org/apache/commons/imaging/examples/tiff/ReadTagsAndImages.java
index abaabb72..c9c8fb9d 100644
--- 
a/src/test/java/org/apache/commons/imaging/examples/tiff/ReadTagsAndImages.java
+++ 
b/src/test/java/org/apache/commons/imaging/examples/tiff/ReadTagsAndImages.java
@@ -374,7 +374,7 @@ public class ReadTagsAndImages {
                 contentType = "Image data";
             }
             ps.format("Directory %2d %s, description: %s%n", iDirectory, 
contentType, directory.description());
-            // Loop on the fields, printing the metadata (fields) ----------
+            // Loop on the fields, printing the metadata (fields)
             final List<TiffField> fieldList = directory.getDirectoryEntries();
             for (final TiffField tiffField : fieldList) {
                 String s = tiffField.toString();
diff --git 
a/src/test/java/org/apache/commons/imaging/formats/png/PngWritePredictorTest.java
 
b/src/test/java/org/apache/commons/imaging/formats/png/PngWritePredictorTest.java
index 2d91ddce..0d1156af 100644
--- 
a/src/test/java/org/apache/commons/imaging/formats/png/PngWritePredictorTest.java
+++ 
b/src/test/java/org/apache/commons/imaging/formats/png/PngWritePredictorTest.java
@@ -77,7 +77,7 @@ public class PngWritePredictorTest {
     void testWriteWithPredictor() throws IOException {
         final int[] argb = populateARGB();
 
-        // Test the RGB (no alpha) case ---------------------
+        // Test the RGB (no alpha) case
         BufferedImage bImage = new BufferedImage(256, 256, 
BufferedImage.TYPE_INT_RGB);
         bImage.setRGB(0, 0, 256, 256, argb, 0, 256);
 
@@ -96,7 +96,7 @@ public class PngWritePredictorTest {
         bImage.getRGB(0, 0, 256, 256, brgb, 0, 256);
         assertArrayEquals(argb, brgb, "Round trip for RGB failed");
 
-        // Test the ARGB (some semi-transparent alpha) case 
---------------------
+        // Test the ARGB (some semi-transparent alpha) case
         for (int i = 0; i < 256; i++) {
             argb[i * 256 + i] &= 0x88ffffff;
         }
diff --git 
a/src/test/java/org/apache/commons/imaging/formats/tiff/TiffFloatingPointReadTest.java
 
b/src/test/java/org/apache/commons/imaging/formats/tiff/TiffFloatingPointReadTest.java
index b3694e4d..98fc9c90 100644
--- 
a/src/test/java/org/apache/commons/imaging/formats/tiff/TiffFloatingPointReadTest.java
+++ 
b/src/test/java/org/apache/commons/imaging/formats/tiff/TiffFloatingPointReadTest.java
@@ -136,7 +136,7 @@ public class TiffFloatingPointReadTest {
         // code in the tabulation. If you have a file that does not
         // define a no-data value, just use Float.NaN for testing purposes.
         //
-        // Test the satellite-derived cloud imagery file 
-----------------------------
+        // Test the satellite-derived cloud imagery file
         // We know from inspection that this sample file contains values
         // in the range 0 to 1 and uses 9999 as a "no-data" value.
         File target = getTiffFile("Sample64BitFloatingPointPix451x337.tiff");
@@ -180,7 +180,7 @@ public class TiffFloatingPointReadTest {
         // now read the entire image
         checkSubImage(target, fullRaster, 0, 0, width, height);
 
-        // Test the USGS overview file ------------------------------
+        // Test the USGS overview file
         // We know from inspection that this sample file contains values
         // in the range -2 to 62 and uses -99999 as a "no-data" value.
         // The file is organized using tiles of size 128-by-128.
diff --git 
a/src/test/java/org/apache/commons/imaging/formats/tiff/photometricinterpreters/floatingpoint/PaletteEntryForRangeTest.java
 
b/src/test/java/org/apache/commons/imaging/formats/tiff/photometricinterpreters/floatingpoint/PaletteEntryForRangeTest.java
index 2f818941..72b493b6 100644
--- 
a/src/test/java/org/apache/commons/imaging/formats/tiff/photometricinterpreters/floatingpoint/PaletteEntryForRangeTest.java
+++ 
b/src/test/java/org/apache/commons/imaging/formats/tiff/photometricinterpreters/floatingpoint/PaletteEntryForRangeTest.java
@@ -49,14 +49,14 @@ public class PaletteEntryForRangeTest {
         final Color c0 = new Color(0xff0000ff);
         final Color c1 = new Color(0xff00ff00);
 
-        // test the two-color variations -----------------------
+        // test the two-color variations
         assertThrows(IllegalArgumentException.class, () -> new 
PaletteEntryForRange(0.0f, 0.0f, c0, c1), "Constructor failed to detect invalid 
range");
 
         assertThrows(IllegalArgumentException.class, () -> new 
PaletteEntryForRange(0.0f, 1.0f, null, c1), "Constructor failed to detect null 
color");
 
         assertThrows(IllegalArgumentException.class, () -> new 
PaletteEntryForRange(0.0f, 1.0f, c0, null), "Constructor failed to detect 
invalid color");
 
-        // test the one-color variations -----------------------
+        // test the one-color variations
         assertThrows(IllegalArgumentException.class, () -> new 
PaletteEntryForRange(0.0f, 0.0f, c0), "Constructor failed to detect invalid 
range");
 
         assertThrows(IllegalArgumentException.class, () -> new 
PaletteEntryForRange(0.0f, 1.0f, null), "Constructor failed to detect null 
color");

Reply via email to