You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ki...@apache.org on 2019/05/16 02:03:51 UTC
[commons-imaging] branch master updated: Fix checkstyle issue
This is an automated email from the ASF dual-hosted git repository.
kinow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-imaging.git
The following commit(s) were added to refs/heads/master by this push:
new 55f7368 Fix checkstyle issue
55f7368 is described below
commit 55f7368822b9781d186024524c7cd08adb3a2f59
Author: Bruno P. Kinoshita <ki...@users.noreply.github.com>
AuthorDate: Thu May 16 14:03:34 2019 +1200
Fix checkstyle issue
---
.../java/org/apache/commons/imaging/formats/xpm/XpmImageParser.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/imaging/formats/xpm/XpmImageParser.java b/src/main/java/org/apache/commons/imaging/formats/xpm/XpmImageParser.java
index d6ccda7..f04c106 100644
--- a/src/main/java/org/apache/commons/imaging/formats/xpm/XpmImageParser.java
+++ b/src/main/java/org/apache/commons/imaging/formats/xpm/XpmImageParser.java
@@ -665,7 +665,7 @@ public class XpmImageParser extends ImageParser {
while (palette == null) {
palette = paletteFactory.makeExactRgbPaletteSimple(src,
hasTransparency ? maxColors - 1 : maxColors);
-
+
// leave the loop if numbers would go beyond Integer.MAX_VALUE to avoid infinite loops
// test every operation from below if it would increase an int value beyond Integer.MAX_VALUE
long nextMaxColors = maxColors * WRITE_PALETTE.length;