You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/07/04 14:24:53 UTC

[commons-imaging] 07/28: Fix name for exception message and log

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

commit b6618f2ca15c44f0fdfd0dffd8510020e7da4f8f
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Jul 4 09:47:57 2023 -0400

    Fix name for exception message and log
---
 .../commons/imaging/formats/jpeg/segments/SosSegment.java      | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/SosSegment.java b/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/SosSegment.java
index 03f46720..43c9382d 100644
--- a/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/SosSegment.java
+++ b/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/SosSegment.java
@@ -59,12 +59,12 @@ public class SosSegment extends Segment {
         super(marker, markerLength);
 
         if (LOGGER.isLoggable(Level.FINEST)) {
-            LOGGER.finest("SosSegment marker_length: " + markerLength);
+            LOGGER.finest("SosSegment markerLength: " + markerLength);
         }
 
         // Debug.debug("SOS", marker_length);
 
-        numberOfComponents = readByte("number_of_components_in_scan", is,
+        numberOfComponents = readByte("numberOfComponents", is,
                 "Not a Valid JPEG File");
         // Debug.debug("number_of_components_in_scan",
         // numberOfComponents);
@@ -86,14 +86,14 @@ public class SosSegment extends Segment {
                     dcCodingTableSelector, acCodingTableSelector);
         }
 
-        startOfSpectralSelection = readByte("start_of_spectral_selection", is,
+        startOfSpectralSelection = readByte("startOfSpectralSelection", is,
                 "Not a Valid JPEG File");
         // Debug.debug("start_of_spectral_selection", startOfSpectralSelection);
-        endOfSpectralSelection = readByte("end_of_spectral_selection", is,
+        endOfSpectralSelection = readByte("endOfSpectralSelection", is,
                 "Not a Valid JPEG File");
         // Debug.debug("end_of_spectral_selection", endOfSpectralSelection);
         final int successiveApproximationBitPosition = readByte(
-                "successive_approximation_bit_position", is,
+                "successiveApproximationBitPosition", is,
                 "Not a Valid JPEG File");
         // Debug.debug("successive_approximation_bit_position",
         // successive_approximation_bit_position);