Skip to content

Commit 91712be

Browse files
author
Vladimir Kotal
committed
fix wording
1 parent 0044617 commit 91712be

File tree

1 file changed

+8
-9
lines changed
  • opengrok-indexer/src/main/java/org/opengrok/indexer/web

1 file changed

+8
-9
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/web/Util.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public final class Util {
9797
"[^A-Za-z0-9_]");
9898

9999
private Util() {
100-
// singleton
100+
// private to ensure static
101101
}
102102

103103
/**
@@ -1570,7 +1570,7 @@ public static String stripPathPrefix(String prefix, String fullPath) {
15701570
}
15711571

15721572
/**
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
15741574
* invoking <code>createSlider(offset, limit, size, null)</code>.
15751575
*
15761576
* @param offset start of the current page
@@ -1583,8 +1583,7 @@ public static String createSlider(int offset, int limit, int size) {
15831583
}
15841584

15851585
/**
1586-
* Creates a html slider for pagination.
1587-
*
1586+
* Creates a HTML slider for pagination.
15881587
*
15891588
* @param offset start of the current page
15901589
* @param limit max number of items per page
@@ -1661,7 +1660,7 @@ public Void apply(Integer page) {
16611660
}
16621661

16631662
/**
1664-
* Check if the string is a http URL.
1663+
* Check if the string is a HTTP URL.
16651664
*
16661665
* @param string the string to check
16671666
* @return true if it is http URL, false otherwise
@@ -1694,9 +1693,9 @@ public static String linkify(String url) {
16941693
* Build a html link to the given http URL. If the URL is not an http URL
16951694
* then it is returned as it was received.
16961695
*
1697-
* @param url the http URL
1696+
* @param url the HTTP URL
16981697
* @param newTab if the link should open in a new tab
1699-
* @return html containing the link &lt;a&gt;...&lt;/a&gt;
1698+
* @return HTML code containing the link &lt;a&gt;...&lt;/a&gt;
17001699
*/
17011700
public static String linkify(String url, boolean newTab) {
17021701
if (isHttpUri(url)) {
@@ -1852,8 +1851,8 @@ public static String completeUrl(String url, HttpServletRequest req) {
18521851
}
18531852

18541853
/**
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
18571856
* @return query params of {@code url}
18581857
*/
18591858
public static Map<String, List<String>> getQueryParams(final URL url) {

0 commit comments

Comments
 (0)