trackeditor: Replace use of isBlank()

isBlank() was introduced by Java 11. However, Speed Dreams still
requires Java 8 (aka 1.8).


git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9532 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 07bedd81d76ea78bfe06c37ade02ef5abff4962d
Former-commit-id: e5d12ce350800abfb26c804597b8806e9519a937
This commit is contained in:
xavi92 2024-08-11 15:40:11 +00:00
parent 6f1afb68b6
commit 4822aa7866
2 changed files with 2 additions and 2 deletions

View file

@ -593,7 +593,7 @@ public class GraphicObjectProperties extends PropertyPanel
graphicObjects.lastElement().setHeight(datum.height);
}
if (datum.useMaterial != null && !datum.useMaterial.isBlank())
if (datum.useMaterial != null && !datum.useMaterial.trim().isEmpty())
{
graphicObjects.lastElement().setUseMaterial(datum.useMaterial);
}

View file

@ -300,7 +300,7 @@ public class Ac3d
{
while (readLine())
{
if (tokens.length == 0 || (tokens.length == 1 && tokens[0].isBlank()))
if (tokens.length == 0 || (tokens.length == 1 && tokens[0].trim().isEmpty()))
{
continue;
}