From 8e04221ad88afb9c52119280130f237ac3fdb157 Mon Sep 17 00:00:00 2001 From: iobyte Date: Tue, 20 Sep 2022 21:14:59 +0000 Subject: [PATCH] trackeditor: replace java 11 isBlank() with trim().isEmpty() git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8533 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 1bb69079e0eb6874c17e2fc14a23ad6dde5416d1 Former-commit-id: 450dd6fd8a690b47e92cb3cb5948d33bce9cf0b8 --- src/tools/trackeditor/gui/CheckDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/trackeditor/gui/CheckDialog.java b/src/tools/trackeditor/gui/CheckDialog.java index 0560fe398..2f730d919 100644 --- a/src/tools/trackeditor/gui/CheckDialog.java +++ b/src/tools/trackeditor/gui/CheckDialog.java @@ -189,7 +189,7 @@ public class CheckDialog extends JDialog } private Boolean hasText(String text) { - return !(text == null || text.isEmpty() || text.isBlank()); + return !(text == null || text.trim().isEmpty()); } private void checkTrackObject(TrackObject trackObject, String type) {