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 2025/02/22 22:26:49 UTC
(commons-imaging) 05/09: Use StringUtils
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 9dd87385b4e225b80dadc9bfb02d4b87acf134c5
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sat Feb 22 16:45:23 2025 -0500
Use StringUtils
---
.../commons/imaging/examples/tiff/ReadAndRenderFloatingPoint.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/commons/imaging/examples/tiff/ReadAndRenderFloatingPoint.java b/src/test/java/org/apache/commons/imaging/examples/tiff/ReadAndRenderFloatingPoint.java
index 799073e8..19e55357 100644
--- a/src/test/java/org/apache/commons/imaging/examples/tiff/ReadAndRenderFloatingPoint.java
+++ b/src/test/java/org/apache/commons/imaging/examples/tiff/ReadAndRenderFloatingPoint.java
@@ -31,6 +31,7 @@ import org.apache.commons.imaging.formats.tiff.TiffImagingParameters;
import org.apache.commons.imaging.formats.tiff.TiffReader;
import org.apache.commons.imaging.formats.tiff.constants.TiffTagConstants;
import org.apache.commons.imaging.formats.tiff.photometricinterpreters.floatingpoint.PhotometricInterpreterFloat;
+import org.apache.commons.lang3.StringUtils;
/**
* A simple example application that reads the content of a TIFF file containing floating-point data and renders it using a gray-scale palette. TIFF files are
@@ -63,7 +64,7 @@ public class ReadAndRenderFloatingPoint {
if (args.length == 2) {
outputPath = args[1];
}
- final boolean optionalImageWritingEnabled = outputPath != null && !outputPath.isEmpty();
+ final boolean optionalImageWritingEnabled = StringUtils.isNotEmpty(outputPath);
final ByteSource byteSource = ByteSource.file(target);