From e851b5e0240956d4cd7fc40530c4603754414ccf Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Tue, 14 May 2019 10:58:34 -0400 Subject: [PATCH] Show empty statement by putting the semicolon on its own line - FilePath.normalize Co-Authored-By: Daniel Beck <1831569+daniel-beck@users.noreply.github.com> --- core/src/main/java/hudson/FilePath.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;