This is an automated email from the ASF dual-hosted git repository. aherbert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-geometry.git
commit a5b042dc1c103def9e688f6e695ec7306efcc613 Author: Alex Herbert <aherb...@apache.org> AuthorDate: Fri Apr 25 15:16:17 2025 +0100 sonar fix: use String isEmpty --- .../geometry/io/euclidean/threed/txt/TextFacetDefinitionReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons-geometry-io-euclidean/src/main/java/org/apache/commons/geometry/io/euclidean/threed/txt/TextFacetDefinitionReader.java b/commons-geometry-io-euclidean/src/main/java/org/apache/commons/geometry/io/euclidean/threed/txt/TextFacetDefinitionReader.java index 7e487a5c..6bc7c363 100644 --- a/commons-geometry-io-euclidean/src/main/java/org/apache/commons/geometry/io/euclidean/threed/txt/TextFacetDefinitionReader.java +++ b/commons-geometry-io-euclidean/src/main/java/org/apache/commons/geometry/io/euclidean/threed/txt/TextFacetDefinitionReader.java @@ -274,7 +274,7 @@ public class TextFacetDefinitionReader implements FacetDefinitionReader { */ private void setCommentTokenInternal(final String commentTokenStr) { this.commentToken = commentTokenStr; - this.hasCommentToken = commentTokenStr != null && commentTokenStr.length() > 0; + this.hasCommentToken = commentTokenStr != null && !commentTokenStr.isEmpty(); this.commentStartChar = this.hasCommentToken ? commentTokenStr.charAt(0) : -1;