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);