public RuleWithSetExceptions(String suffix, int min, String replacement,String[] exceptions) {super(suffix, min, replacement);for (int i = 0; i < exceptions.length; i++) {if (!exceptions[i].endsWith(suffix))throw new RuntimeException("useless exception '" + exceptions[i] + "' does not end with '" + suffix + "'");}this.exceptions = new CharArraySet(Arrays.asList(exceptions), false);}

public RuleWithSetExceptions(string suffix, int min, string replacement, string[] exceptions) : base(suffix, min, replacement){for (int i = 0; i < exceptions.Length; i++){if (!exceptions[i].EndsWith(suffix, StringComparison.Ordinal)){throw new Exception("useless exception '" + exceptions[i] + "' does not end with '" + suffix + "'");}}this.m_exceptions = new CharArraySet(#pragma warning disable 612, 618LuceneVersion.LUCENE_CURRENT,#pragma warning restore 612, 618exceptions, false);}
