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:
parent
6f1afb68b6
commit
4822aa7866
2 changed files with 2 additions and 2 deletions
|
@ -593,7 +593,7 @@ public class GraphicObjectProperties extends PropertyPanel
|
||||||
graphicObjects.lastElement().setHeight(datum.height);
|
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);
|
graphicObjects.lastElement().setUseMaterial(datum.useMaterial);
|
||||||
}
|
}
|
||||||
|
|
|
@ -300,7 +300,7 @@ public class Ac3d
|
||||||
{
|
{
|
||||||
while (readLine())
|
while (readLine())
|
||||||
{
|
{
|
||||||
if (tokens.length == 0 || (tokens.length == 1 && tokens[0].isBlank()))
|
if (tokens.length == 0 || (tokens.length == 1 && tokens[0].trim().isEmpty()))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue