From d7f6010319968c9bf4b03956e6df84f7de53e41d Mon Sep 17 00:00:00 2001 From: TopchetoEU <36534413+TopchetoEU@users.noreply.github.com> Date: Tue, 26 Dec 2023 14:22:35 +0200 Subject: [PATCH] fix: make code java 11 compatible --- src/me/topchetoeu/jscript/filesystem/Paths.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/topchetoeu/jscript/filesystem/Paths.java b/src/me/topchetoeu/jscript/filesystem/Paths.java index e6f6c38..ff24418 100644 --- a/src/me/topchetoeu/jscript/filesystem/Paths.java +++ b/src/me/topchetoeu/jscript/filesystem/Paths.java @@ -19,7 +19,7 @@ public class Paths { for (var el : res) sb.append("/").append(el); - if (sb.isEmpty()) return "/"; + if (sb.length() == 0) return "/"; else return sb.toString(); }