Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hDw5o-00065D-GG for pgsql-jdbc@arkaria.postgresql.org; Tue, 09 Apr 2019 19:07:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hDw5n-0005Hb-3s for pgsql-jdbc@arkaria.postgresql.org; Tue, 09 Apr 2019 19:07:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hDw5m-0005HF-RX for pgsql-jdbc@lists.postgresql.org; Tue, 09 Apr 2019 19:07:34 +0000 Received: from out-1.smtp.github.com ([192.30.252.192]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hDw5k-0003TD-48 for pgsql-jdbc@lists.postgresql.org; Tue, 09 Apr 2019 19:07:34 +0000 Date: Tue, 09 Apr 2019 12:07:30 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1554836850; bh=PLK0hiWA1WjIG/A5xVHQryAcEkkPnRCKifVEhoBUug4=; h=Date:From:To:Subject:From; b=TWITJGttx9UZ3ap8AQ1jLBHSaHvCb8AXMxC5nihN5w2/rpry3l8qHXcD48GkAKI8B 6jUz2FlGS2xpgameOk4D/3Vjts5RfUfDDHFX3zKM1JBUxQCQrCXxqH035KFMN7TfTm LQDACmYLQQJrBWeRj/mQ2DEnYGzct3IYATRZ5nBc= From: Sehrope Sarkuni To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 73ec81: Cleanup encoding (#1441) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: 73ec817311857756164b1933ce2dfa8127f8dffd https://github.com/pgjdbc/pgjdbc/commit/73ec817311857756164b1933ce2dfa8127f8dffd Author: Sehrope Sarkuni Date: 2019-04-09 (Tue, 09 Apr 2019) Changed paths: M pgjdbc/src/main/java/org/postgresql/core/Encoding.java M pgjdbc/src/main/java/org/postgresql/core/UTF8Encoding.java M pgjdbc/src/main/java/org/postgresql/util/ObjectFactory.java Log Message: ----------- Cleanup encoding (#1441) * fix: Correct typo weather to whether * misc: Change internal Encoding.testAsciiNumbers(...) to be static * perf: Enhance Encoding constructor to allow skipping of ASCII number compatibility test Adds a two parameter constructor to Encoding to allow sub classes to specify whether their known ASCII compatability so as to skip testing. The only usage of it is the UTF8Encoding which is changed to use the new constructor.