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:25:12 UTC
[commons-imaging] 26/28: Use Java 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 2ece6011ff18eb2d2fc44ee925af2c31e77bd30a
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Jul 4 10:05:36 2023 -0400
Use Java naming conventions
---
.../apache/commons/imaging/roundtrip/ImageAsserts.java | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/test/java/org/apache/commons/imaging/roundtrip/ImageAsserts.java b/src/test/java/org/apache/commons/imaging/roundtrip/ImageAsserts.java
index 4a956cb7..dfa7ed7f 100644
--- a/src/test/java/org/apache/commons/imaging/roundtrip/ImageAsserts.java
+++ b/src/test/java/org/apache/commons/imaging/roundtrip/ImageAsserts.java
@@ -39,23 +39,23 @@ final class ImageAsserts {
for (int x = 0; x < a.getWidth(); x++) {
for (int y = 0; y < a.getHeight(); y++) {
- final int a_argb = a.getRGB(x, y);
- final int b_argb = b.getRGB(x, y);
- if (a_argb != b_argb) {
- if (calculateARGBDistance(a_argb, b_argb) <= tolerance) {
+ final int aArgb = a.getRGB(x, y);
+ final int bArgb = b.getRGB(x, y);
+ if (aArgb != bArgb) {
+ if (calculateARGBDistance(aArgb, bArgb) <= tolerance) {
continue; // ignore.
}
}
- if (a_argb != b_argb) {
+ if (aArgb != bArgb) {
Debug.debug("width: " + a.getWidth());
Debug.debug("height: " + a.getHeight());
- Debug.debug("distance: " + calculateARGBDistance(a_argb, b_argb));
+ Debug.debug("distance: " + calculateARGBDistance(aArgb, bArgb));
Debug.debug("x: " + x);
Debug.debug("y: " + y);
- Debug.debug("a_argb: " + a_argb + " (0x" + Integer.toHexString(a_argb) + ")");
- Debug.debug("b_argb: " + b_argb + " (0x" + Integer.toHexString(b_argb) + ")");
+ Debug.debug("aArgb: " + aArgb + " (0x" + Integer.toHexString(aArgb) + ")");
+ Debug.debug("bArgb: " + bArgb + " (0x" + Integer.toHexString(bArgb) + ")");
}
- Assertions.assertEquals(a_argb, b_argb);
+ Assertions.assertEquals(aArgb, bArgb);
}
}
}