diff --git a/core/src/main/java/hudson/FilePath.java b/core/src/main/java/hudson/FilePath.java index 361d3834d4..0af8d564b9 100644 --- a/core/src/main/java/hudson/FilePath.java +++ b/core/src/main/java/hudson/FilePath.java @@ -336,7 +336,8 @@ public final class FilePath implements SerializableOnlyOverRemoting { s = i; // Skip any extra separator chars //noinspection StatementWithEmptyBody - while (++i < end && ((c = path.charAt(i)) == '/' || c == '\\')); + while (++i < end && ((c = path.charAt(i)) == '/' || c == '\\')) + ; // Add token for separator unless we reached the end if (i < end) tokens.add(path.substring(s, s+1)); s = i;