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 f601a6b7d0a141fdd9007780bc9d63f5272035ed
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Jul 4 09:56:14 2023 -0400

    Fix names for exception message
---
 .../java/org/apache/commons/imaging/palette/MedianCutQuantizer.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/imaging/palette/MedianCutQuantizer.java 
b/src/main/java/org/apache/commons/imaging/palette/MedianCutQuantizer.java
index 1b816a7a..868188ba 100644
--- a/src/main/java/org/apache/commons/imaging/palette/MedianCutQuantizer.java
+++ b/src/main/java/org/apache/commons/imaging/palette/MedianCutQuantizer.java
@@ -132,13 +132,13 @@ public class MedianCutQuantizer {
             colorGroup.paletteIndex = i;
 
             if (colorGroup.getColorCounts().isEmpty()) {
-                throw new ImagingException("Empty color_group: "
+                throw new ImagingException("Empty colorGroup: "
                         + colorGroup);
             }
         }
 
         if (paletteSize > discreteColors) {
-            throw new ImagingException("palette_size > discrete_colors");
+            throw new ImagingException("paletteSize > discreteColors");
         }
 
         return new MedianCutPalette(root, palette);

Reply via email to