Skip to content

Commit

Permalink
Fix for java8
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <tsfarr@amazon.com>
  • Loading branch information
Xtansia committed Jun 19, 2024
1 parent 4660955 commit 6be3255
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
public class AnalyzerDeserializerTest extends ModelTestCase {
@Test
public void deserializesTypelessCustomAnalyzer() {
var json = "{\n"
String json = "{\n"
+ " \"filter\": [\"kuromoji_baseform\", \"ja_stop\"],\n"
+ " \"char_filter\": [\"icu_normalizer\"],\n"
+ " \"tokenizer\": \"kuromoji_tokenizer\"\n"
+ "}";

var analyzer = fromJson(json, Analyzer._DESERIALIZER);
Analyzer analyzer = fromJson(json, Analyzer._DESERIALIZER);
assertTrue(analyzer.isCustom());
assertEquals("kuromoji_tokenizer", analyzer.custom().tokenizer());
assertEquals("icu_normalizer", analyzer.custom().charFilter().get(0));
Expand Down

0 comments on commit 6be3255

Please sign in to comment.