Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E7CF917281 for ; Sat, 3 Jan 2015 21:32:33 +0000 (UTC) Received: (qmail 95971 invoked by uid 500); 3 Jan 2015 21:32:34 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 95883 invoked by uid 500); 3 Jan 2015 21:32:34 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 95872 invoked by uid 99); 3 Jan 2015 21:32:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Jan 2015 21:32:34 +0000 Date: Sat, 3 Jan 2015 21:32:34 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (VALIDATOR-349) TLD table should be pre-sorted MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/VALIDATOR-349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14263645#comment-14263645 ] Sebb commented on VALIDATOR-349: -------------------------------- Unit test cases have been added to check that the arrays are sorted. Also the arrays themselves are currently sorted. > TLD table should be pre-sorted > ------------------------------ > > Key: VALIDATOR-349 > URL: https://issues.apache.org/jira/browse/VALIDATOR-349 > Project: Commons Validator > Issue Type: Improvement > Reporter: Sebb > > The TLD table is currently sorted at run-time when the class is loaded. > It would be better to sort the entries in the source table, and have a unit test to check that they are sorted. The unit test could output the entries in the correct format if it finds they are not sorted, ready to copy and paste into the source. -- This message was sent by Atlassian JIRA (v6.3.4#6332)