From d01ba897c03da6cc3c103789dce09b1ffe4a3bba Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Fri, 14 Jun 2019 15:38:44 +0300 Subject: [PATCH] Fix build --- classlib/src/main/java/org/teavm/classlib/java/io/TFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classlib/src/main/java/org/teavm/classlib/java/io/TFile.java b/classlib/src/main/java/org/teavm/classlib/java/io/TFile.java index 1899175d4..dc1bcec1f 100644 --- a/classlib/src/main/java/org/teavm/classlib/java/io/TFile.java +++ b/classlib/src/main/java/org/teavm/classlib/java/io/TFile.java @@ -140,7 +140,7 @@ public class TFile implements Serializable, Comparable { if (path.charAt(0) != separatorChar) { result.append(separator); } - } if (fs().isWindows() && path.charAt(0) == separatorChar) { + } else if (fs().isWindows() && path.charAt(0) == separatorChar) { result.setLength(3); } result.append(path);