diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/charfilter/TestHTMLStripCharFilter.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/charfilter/TestHTMLStripCharFilter.java index 2b5340dd3d6..8e786aa59cc 100644 --- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/charfilter/TestHTMLStripCharFilter.java +++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/charfilter/TestHTMLStripCharFilter.java @@ -478,14 +478,14 @@ public class TestHTMLStripCharFilter extends BaseTokenStreamTestCase { // ">" = TestUtil.randomHtmlishString(random(), maxNumElems) - .replaceAll(">", " ") + .replace('>', ' ') .replaceFirst("^--", "__"); String closedAngleBangNonCDATA = ""; // Don't create a comment (disallow "