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 19:21:44 UTC

[commons-imaging] 20/33: Use Java camel-case naming conventions

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 ee0f0620b7667595da4ede42e98c856f31445052
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Jul 4 15:07:32 2023 -0400

    Use Java camel-case naming conventions
---
 .../java/org/apache/commons/imaging/formats/png/GammaCorrection.java    | 2 +-
 .../org/apache/commons/imaging/formats/png/chunks/PngChunkPlte.java     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/imaging/formats/png/GammaCorrection.java b/src/main/java/org/apache/commons/imaging/formats/png/GammaCorrection.java
index 8e6a7481..09e04dc4 100644
--- a/src/main/java/org/apache/commons/imaging/formats/png/GammaCorrection.java
+++ b/src/main/java/org/apache/commons/imaging/formats/png/GammaCorrection.java
@@ -41,7 +41,7 @@ public class GammaCorrection {
         }
     }
 
-    public int correctARGB(final int pixel) {
+    public int correctArgb(final int pixel) {
         final int alpha = (0xff000000) & pixel;
         int red = (pixel >> 16) & 0xff;
         int green = (pixel >> 8) & 0xff;
diff --git a/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkPlte.java b/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkPlte.java
index 2176d243..418e8373 100644
--- a/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkPlte.java
+++ b/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkPlte.java
@@ -56,7 +56,7 @@ public class PngChunkPlte extends PngChunk {
     }
 
     public void correct(final GammaCorrection gammaCorrection) {
-        Arrays.setAll(rgb, i -> gammaCorrection.correctARGB(rgb[i]));
+        Arrays.setAll(rgb, i -> gammaCorrection.correctArgb(rgb[i]));
     }
 
     public int[] getRgb() {