fix use of wrong array toString() method in test, enable check (#11978)

This commit is contained in:
Robert Muir 2022-11-25 11:47:04 -05:00 committed by GitHub
parent 4885b5f856
commit 545c93a394
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -80,8 +80,8 @@ allprojects { prj ->
'-Xep:AndroidInjectionBeforeSuper:ERROR',
'-Xep:ArrayEquals:ERROR',
'-Xep:ArrayFillIncompatibleType:ERROR',
// '-Xep:ArrayHashCode:OFF',
// '-Xep:ArrayToString:OFF',
'-Xep:ArrayHashCode:ERROR',
'-Xep:ArrayToString:ERROR',
'-Xep:ArraysAsListPrimitiveArray:ERROR',
'-Xep:AsyncCallableReturnsNull:ERROR',
'-Xep:AsyncFunctionReturnsNull:ERROR',

View File

@ -102,7 +102,7 @@ public class TestStemmerOverrideFilter extends BaseTokenStreamTestCase {
// TODO: can we simply use inputValue.toLowerCase(Locale.ROOT)???
char[] buffer = inputValue.toCharArray();
CharacterUtils.toLowerCase(buffer, 0, buffer.length);
seenInputValue = buffer.toString();
seenInputValue = new String(buffer);
} else {
seenInputValue = inputValue;
}