From 9255c46b63fc096b14e300ec155b36beb43488c9 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Thu, 17 Oct 2019 20:04:25 +0700 Subject: [PATCH] ICU4N.Text.CanonicalIterator: Removed static constructor --- src/ICU4N/Text/CanonicalIterator.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ICU4N/Text/CanonicalIterator.cs b/src/ICU4N/Text/CanonicalIterator.cs index 66f735931..116807363 100644 --- a/src/ICU4N/Text/CanonicalIterator.cs +++ b/src/ICU4N/Text/CanonicalIterator.cs @@ -484,11 +484,7 @@ private static int getClass(int cp) { // TODO: Flatten this data so it doesn't have to be reconstructed each time! //private static final UnicodeSet EMPTY = new UnicodeSet(); // constant, don't change - private static readonly ISet SET_WITH_NULL_STRING = new HashSet(); // constant, don't change - static CanonicalIterator() - { - SET_WITH_NULL_STRING.Add(""); - } + private static readonly ISet SET_WITH_NULL_STRING = new HashSet { string.Empty }; // constant, don't change // private static UnicodeSet SAFE_START = new UnicodeSet(); // private static CharMap AT_START = new CharMap();