mirror of https://github.com/apache/lucene.git
fix use of wrong array toString() method in test, enable check (#11978)
This commit is contained in:
parent
4885b5f856
commit
545c93a394
|
@ -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',
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue