You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2026/10/15 13:37:08 UTC
svn commit: r1939137 - pdfbox/branches/3.0/pdfbox-layout-awt/src/test/java/org/apache/pdfbox/glyphlayout/awt
Author: tilman
Date: Thu Oct 15 13:37:07 2026
New Revision: 1939137
Log:
PDFBOX-6281: Sonar fix
Modified:
pdfbox/branches/3.0/pdfbox-layout-awt/src/test/java/org/apache/pdfbox/glyphlayout/awt/GlyphLayoutSMPTest.java
Modified: pdfbox/branches/3.0/pdfbox-layout-awt/src/test/java/org/apache/pdfbox/glyphlayout/awt/GlyphLayoutSMPTest.java
==============================================================================
--- pdfbox/branches/3.0/pdfbox-layout-awt/src/test/java/org/apache/pdfbox/glyphlayout/awt/GlyphLayoutSMPTest.java Thu Oct 15 13:00:29 2026 (r1939136)
+++ pdfbox/branches/3.0/pdfbox-layout-awt/src/test/java/org/apache/pdfbox/glyphlayout/awt/GlyphLayoutSMPTest.java Thu Oct 15 13:37:07 2026 (r1939137)
@@ -199,7 +199,7 @@ class GlyphLayoutSMPTest extends TestBas
String[] lines
= Arrays.stream((TEXT_INTRO + "\n" + "Font used: NotoSansMath-Regular" + "\n" + MATHEMATICAL)
- .split("\n")).filter(line -> line.length() > 0).toArray(i -> new String[i]);
+ .split("\n")).filter(line -> !line.isEmpty()).toArray(i -> new String[i]);
String text = String.join("\n", lines);
if (useActualText)