File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
modules/rank-eval/src/test/java/org/elasticsearch/index/rankeval
x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/expression/function/scalar/string Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff 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 <>();
Original file line number Diff line number Diff line change 66package org .elasticsearch .xpack .sql .expression .function .scalar .string ;
77
88abstract 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 );
You can’t perform that action at this time.
0 commit comments