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 1caff3f Use isEmpty().
1caff3f is described below
commit 1caff3f7e2c47812d0dcf478932c58b22e8b9254
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jan 17 09:29:01 2021 -0500
Use isEmpty().
---
src/main/java/org/apache/commons/imaging/formats/rgbe/RgbeInfo.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/src/main/java/org/apache/commons/imaging/formats/rgbe/RgbeInfo.java
b/src/main/java/org/apache/commons/imaging/formats/rgbe/RgbeInfo.java
index 1a3e17f..205c427 100644
--- a/src/main/java/org/apache/commons/imaging/formats/rgbe/RgbeInfo.java
+++ b/src/main/java/org/apache/commons/imaging/formats/rgbe/RgbeInfo.java
@@ -98,7 +98,7 @@ class RgbeInfo implements Closeable {
final InfoHeaderReader reader = new InfoHeaderReader(in);
- if (reader.readNextLine().length() != 0) {
+ if (!reader.readNextLine().isEmpty()) {
throw new ImageReadException("Not a valid HDR: Incorrect Header");
}
@@ -106,7 +106,7 @@ class RgbeInfo implements Closeable {
String info = reader.readNextLine();
- while (info.length() != 0) {
+ while (!info.isEmpty()) {
final int equals = info.indexOf('=');
if (equals > 0) {