noinspection StatementWithEmptyBody

This commit is contained in:
Josh Soref committed 2019-02-20 23:15:14 -05:00
1 parent 8bea0c9526
commit 36fa47add2
8 files changed
+10 -3

No files matched your search

+2 -1
View File
@@ -335,7 +335,8 @@ public final class FilePath implements SerializableOnlyOverRemoting {
tokens.add(path.substring(s, i));
s = i;
// Skip any extra separator chars
while (++i < end && ((c = path.charAt(i)) == '/' || c == '\\')) { }
//noinspection StatementWithEmptyBody
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;