@@ -97,7 +97,7 @@ public final class Util {
97
97
"[^A-Za-z0-9_]" );
98
98
99
99
private Util () {
100
- // singleton
100
+ // private to ensure static
101
101
}
102
102
103
103
/**
@@ -1570,7 +1570,7 @@ public static String stripPathPrefix(String prefix, String fullPath) {
1570
1570
}
1571
1571
1572
1572
/**
1573
- * Creates a html slider for pagination. This has the same effect as
1573
+ * Creates a HTML slider for pagination. This has the same effect as
1574
1574
* invoking <code>createSlider(offset, limit, size, null)</code>.
1575
1575
*
1576
1576
* @param offset start of the current page
@@ -1583,8 +1583,7 @@ public static String createSlider(int offset, int limit, int size) {
1583
1583
}
1584
1584
1585
1585
/**
1586
- * Creates a html slider for pagination.
1587
- *
1586
+ * Creates a HTML slider for pagination.
1588
1587
*
1589
1588
* @param offset start of the current page
1590
1589
* @param limit max number of items per page
@@ -1661,7 +1660,7 @@ public Void apply(Integer page) {
1661
1660
}
1662
1661
1663
1662
/**
1664
- * Check if the string is a http URL.
1663
+ * Check if the string is a HTTP URL.
1665
1664
*
1666
1665
* @param string the string to check
1667
1666
* @return true if it is http URL, false otherwise
@@ -1694,9 +1693,9 @@ public static String linkify(String url) {
1694
1693
* Build a html link to the given http URL. If the URL is not an http URL
1695
1694
* then it is returned as it was received.
1696
1695
*
1697
- * @param url the http URL
1696
+ * @param url the HTTP URL
1698
1697
* @param newTab if the link should open in a new tab
1699
- * @return html containing the link <a>...</a>
1698
+ * @return HTML code containing the link <a>...</a>
1700
1699
*/
1701
1700
public static String linkify (String url , boolean newTab ) {
1702
1701
if (isHttpUri (url )) {
@@ -1852,8 +1851,8 @@ public static String completeUrl(String url, HttpServletRequest req) {
1852
1851
}
1853
1852
1854
1853
/**
1855
- * Parses the specified url and returns its query params.
1856
- * @param url url to retrieve the query params from
1854
+ * Parses the specified URL and returns its query params.
1855
+ * @param url URL to retrieve the query params from
1857
1856
* @return query params of {@code url}
1858
1857
*/
1859
1858
public static Map <String , List <String >> getQueryParams (final URL url ) {
0 commit comments