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
The following commit(s) were added to refs/heads/master by this push:
new 392daf6 Use blocks.
392daf6 is described below
commit 392daf68e348e3c44e7639ef55a07b4e7a8ed05f
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Nov 21 12:43:08 2020 -0500
Use blocks.
---
src/main/java/org/apache/commons/imaging/common/BasicCParser.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/imaging/common/BasicCParser.java
b/src/main/java/org/apache/commons/imaging/common/BasicCParser.java
index 059e158..5838773 100644
--- a/src/main/java/org/apache/commons/imaging/common/BasicCParser.java
+++ b/src/main/java/org/apache/commons/imaging/common/BasicCParser.java
@@ -348,7 +348,7 @@ public class BasicCParser {
+ "hex constant invalid", nfe);
}
stringBuilder.append((char) constant);
- } else
+ } else {
switch (c) {
case '0':
case '1':
@@ -400,6 +400,7 @@ public class BasicCParser {
throw new ImageReadException("Parsing XPM file failed,
"
+ "invalid escape sequence");
}
+ }
hadBackSlash = false;
} else {
if (c == '\\') {