Skip to content

Commit e31a877

Browse files
author
Christoph Büscher
committed
Fix problematic chars in javadoc
Java 11 complains about unescaped ">" characters in javadocs. Also fixed some compiler complaints about javadoc in StringFunctionUtils.
1 parent 69c2b2d commit e31a877

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval/ExpectedReciprocalRankTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void testProbabilityOfRelevance() {
6969
* 4 | 1 | 0.03125 | 0.078125 | 0.00244140625 |
7070
* }</pre>
7171
*
72-
* err => sum of last column
72+
* err = sum of last column
7373
*/
7474
public void testERRAt() {
7575
List<RatedDocument> rated = new ArrayList<>();
@@ -94,7 +94,7 @@ public void testERRAt() {
9494
* 4 | 1 | 0.03125 | 0.125 | 0.00390625 |
9595
* }</pre>
9696
*
97-
* err => sum of last column
97+
* err = sum of last column
9898
*/
9999
public void testERRMissingRatings() {
100100
List<RatedDocument> rated = new ArrayList<>();

x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/expression/function/scalar/string/StringFunctionUtils.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
package org.elasticsearch.xpack.sql.expression.function.scalar.string;
77

88
abstract class StringFunctionUtils {
9-
9+
1010
/**
11-
* Trims the trailing whitespace characters from the given String. Uses {@link java.lang.Character.isWhitespace(char)}
11+
* Trims the trailing whitespace characters from the given String. Uses @link java.lang.Character.isWhitespace(char)
1212
* to determine if a character is whitespace or not.
1313
*
1414
* @param s the original String
@@ -18,16 +18,16 @@ static String trimTrailingWhitespaces(String s) {
1818
if (!hasLength(s)) {
1919
return s;
2020
}
21-
21+
2222
StringBuilder sb = new StringBuilder(s);
2323
while (sb.length() > 0 && Character.isWhitespace(sb.charAt(sb.length() - 1))) {
2424
sb.deleteCharAt(sb.length() - 1);
2525
}
2626
return sb.toString();
2727
}
28-
28+
2929
/**
30-
* Trims the leading whitespace characters from the given String. Uses {@link java.lang.Character.isWhitespace(char)}
30+
* Trims the leading whitespace characters from the given String. Uses @link java.lang.Character.isWhitespace(char)
3131
* to determine if a character is whitespace or not.
3232
*
3333
* @param s the original String
@@ -37,7 +37,7 @@ static String trimLeadingWhitespaces(String s) {
3737
if (!hasLength(s)) {
3838
return s;
3939
}
40-
40+
4141
StringBuilder sb = new StringBuilder(s);
4242
while (sb.length() > 0 && Character.isWhitespace(sb.charAt(0))) {
4343
sb.deleteCharAt(0);

0 commit comments

Comments
 (0)