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:48 UTC

[commons-imaging] 24/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 ed4576448bd407af230e74f80491075751598a0f
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Jul 4 15:13:54 2023 -0400

    Use Java camel-case naming conventions
---
 .../java/org/apache/commons/imaging/formats/pnm/PamFileInfo.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/commons/imaging/formats/pnm/PamFileInfo.java b/src/main/java/org/apache/commons/imaging/formats/pnm/PamFileInfo.java
index 5de54496..39408253 100644
--- a/src/main/java/org/apache/commons/imaging/formats/pnm/PamFileInfo.java
+++ b/src/main/java/org/apache/commons/imaging/formats/pnm/PamFileInfo.java
@@ -33,7 +33,7 @@ class PamFileInfo extends FileInfo {
         }
 
         @Override
-        public int getRGB(final InputStream is) throws IOException {
+        public int getRgb(final InputStream is) throws IOException {
             int red = readSample(is, bytesPerSample);
             int green = readSample(is, bytesPerSample);
             int blue = readSample(is, bytesPerSample);
@@ -67,7 +67,7 @@ class PamFileInfo extends FileInfo {
         }
 
         @Override
-        public int getRGB(final InputStream is) throws IOException {
+        public int getRgb(final InputStream is) throws IOException {
             int sample = readSample(is, bytesPerSample);
             sample = scaleSample(sample, scale, maxval);
 
@@ -85,7 +85,7 @@ class PamFileInfo extends FileInfo {
     }
     private abstract static class TupleReader {
         public abstract ImageInfo.ColorType getColorType();
-        public abstract int getRGB(InputStream is) throws IOException;
+        public abstract int getRgb(InputStream is) throws IOException;
     }
     private final int depth;
     private final int maxval;
@@ -167,7 +167,7 @@ class PamFileInfo extends FileInfo {
 
     @Override
     public int getRgb(final InputStream is) throws IOException {
-        return tupleReader.getRGB(is);
+        return tupleReader.getRgb(is);
     }
 
     @Override