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 0DB4618567 for ; Sun, 17 Jan 2016 17:39:55 +0000 (UTC) Received: (qmail 51590 invoked by uid 500); 17 Jan 2016 17:39:54 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 51493 invoked by uid 500); 17 Jan 2016 17:39:54 -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 51482 invoked by uid 99); 17 Jan 2016 17:39:54 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Jan 2016 17:39:54 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4F221E03CD; Sun, 17 Jan 2016 17:39:54 +0000 (UTC) From: PascalSchumacher To: issues@commons.apache.org Reply-To: issues@commons.apache.org References: In-Reply-To: Subject: [GitHub] commons-lang pull request: LANG-1184: StringUtils#normalizeSpace n... Content-Type: text/plain Message-Id: <20160117173954.4F221E03CD@git1-us-west.apache.org> Date: Sun, 17 Jan 2016 17:39:54 +0000 (UTC) Github user PascalSchumacher commented on the pull request: https://github.com/apache/commons-lang/pull/113#issuecomment-172357021 @hen Thanks again for the in-depth review. Part of the is `isEmpty()` is necessary, because `normalizeSpace` has to return `null` for `null` parameters according to javadoc `@return the modified string with whitespace normalized, {@code null} if null String input` I have updated the pull request and replaced the is `isEmpty()` check by `str == null`. I have also updated javadoc to reflect that non-breaking space is normalized. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---