From: Frank Tang Date: Fri, 8 May 2020 23:55:00 +0000 (-0700) Subject: ICU-21090 Fix private class X-Git-Tag: cldr/2020-09-22~199 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=943b09016055fc869364ea8df7c93f272ac4679e;p=icu ICU-21090 Fix private class --- diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/ListFormatter.java b/icu4j/main/classes/core/src/com/ibm/icu/text/ListFormatter.java index aca1a94f903..f6d8d1661fe 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/ListFormatter.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/ListFormatter.java @@ -545,7 +545,7 @@ final public class ListFormatter { } // A static handler just returns the pattern without considering the input text. - private class StaticHandler implements PatternHandler { + private static final class StaticHandler implements PatternHandler { StaticHandler(String two, String end) { twoPattern = two; endPattern = end; @@ -562,7 +562,7 @@ final public class ListFormatter { } // A contextual handler returns one of the two patterns depending on whether the text matched the regexp. - private class ContextualHandler implements PatternHandler { + private static final class ContextualHandler implements PatternHandler { ContextualHandler(Pattern regexp, String thenTwo, String elseTwo, String thenEnd, String elseEnd) { this.regexp = regexp; thenTwoPattern = thenTwo;