@@ -1479,7 +1479,7 @@ public static String redactUri(String path) {
1479
1479
}
1480
1480
1481
1481
/**
1482
- * Build an HTML link to the given HTTP URL. If the URL is not a HTTP URL
1482
+ * Build an HTML link to the given HTTP URL. If the URL is not an HTTP URL
1483
1483
* then it is returned as it was received. This has the same effect as
1484
1484
* invoking <code>linkify(url, true)</code>.
1485
1485
*
@@ -1493,7 +1493,7 @@ public static String linkify(String url) {
1493
1493
}
1494
1494
1495
1495
/**
1496
- * Build an HTML link to the given http URL. If the URL is not a HTTP URL
1496
+ * Build an HTML link to the given http URL. If the URL is not an HTTP URL
1497
1497
* then it is returned as it was received.
1498
1498
*
1499
1499
* @param url the HTTP URL
@@ -1631,8 +1631,7 @@ public static String linkifyPattern(String text, Pattern pattern, String url) {
1631
1631
}
1632
1632
1633
1633
/**
1634
- * Try to complete the given URL part into full URL with server name, port,
1635
- * scheme, ...
1634
+ * Try to complete the given URL part into full URL with server name, port, scheme, ...
1636
1635
* <dl>
1637
1636
* <dt>for request http://localhost:8080/source/xref/xxx and part
1638
1637
* /cgi-bin/user=</dt>
@@ -1654,7 +1653,8 @@ public static String completeUrl(String url, HttpServletRequest req) {
1654
1653
try {
1655
1654
if (!isHttpUri (url )) {
1656
1655
if (url .startsWith ("/" )) {
1657
- return new URI (req .getScheme (), null , req .getServerName (), req .getServerPort (), url , null , null ).toString ();
1656
+ return new URI (req .getScheme (), null , req .getServerName (), req .getServerPort (), url ,
1657
+ null , null ).toString ();
1658
1658
}
1659
1659
var prepUrl = req .getRequestURL ();
1660
1660
if (!url .isEmpty ()) {
0 commit comments