fix spotless formatting issues

This commit is contained in:
Bill Denton 2023-10-12 11:58:27 -07:00
parent 07801e9ed7
commit 495e1bef11
1 changed files with 4 additions and 6 deletions

View File

@ -40,8 +40,6 @@ import java.net.URI;
import java.net.URISyntaxException; import java.net.URISyntaxException;
import java.net.URL; import java.net.URL;
import java.net.URLDecoder; import java.net.URLDecoder;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.HashMap; import java.util.HashMap;
@ -631,7 +629,7 @@ public class UrlUtil {
String path = uri.getScheme() + "://"; String path = uri.getScheme() + "://";
int stopLen = path.length(); int stopLen = path.length();
path += uri.getRawAuthority() + uri.getRawPath(); path += uri.getRawAuthority() + uri.getRawPath();
if (uri.getRawQuery() != null) { if (uri.getRawQuery() != null) {
path += "?" + uri.getRawQuery(); path += "?" + uri.getRawQuery();
} }
@ -641,7 +639,7 @@ public class UrlUtil {
candidates.add(path); candidates.add(path);
int ix = path.length(); int ix = path.length();
while ((ix = path.substring(0, ix-1).lastIndexOf('/')) > stopLen) { while ((ix = path.substring(0, ix - 1).lastIndexOf('/')) > stopLen) {
candidates.add(path.substring(0, ix)); candidates.add(path.substring(0, ix));
} }