Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 18060 invoked from network); 11 Feb 2008 13:15:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Feb 2008 13:15:56 -0000 Received: (qmail 75883 invoked by uid 500); 11 Feb 2008 13:15:47 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 75863 invoked by uid 500); 11 Feb 2008 13:15:47 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 75854 invoked by uid 99); 11 Feb 2008 13:15:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2008 05:15:47 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alexey.a.petrenko@gmail.com designates 209.85.162.181 as permitted sender) Received: from [209.85.162.181] (HELO el-out-1112.google.com) (209.85.162.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2008 13:15:17 +0000 Received: by el-out-1112.google.com with SMTP id y26so1717309ele.18 for ; Mon, 11 Feb 2008 05:15:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Xt5/rFaLR83AjcJVCrCISwsmCnSO9fC/NvTIcp3gbfE=; b=bdi8cBXQqfQFlhTaeq57Of4hc8561TuMbQHqYlQc/AUvGxVb5x0Cgt86SQpfjaXtjVL3ivus9SG1FhkMjnuJjg4WLFH3CJgPMv49tzs8aF9Ubb5qti4283tQ1uRC5JrOsSXwZv47MawK0SI+4t2XPzVTTWjAtjXz9pJAyMtIfnA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R0CNeIs1m+N2n5FETiM8DD1WwK8IY/qQiMVCYZSwi6PhknNV2+nNcEN4O8WuHXk+nhlQe46B3uzLAK7Fy4tdlTDsjdpfo5WuZRiONp+DrNNi+bEnC3CUv0rIv7iS5lshcjN3JT7ILGUlJiBBBEhrknr7l1OsCbDJZzWdiIoVjVA= Received: by 10.150.58.5 with SMTP id g5mr6555198yba.20.1202735724497; Mon, 11 Feb 2008 05:15:24 -0800 (PST) Received: by 10.150.49.11 with HTTP; Mon, 11 Feb 2008 05:15:24 -0800 (PST) Message-ID: Date: Mon, 11 Feb 2008 16:15:24 +0300 From: "Alexey Petrenko" To: dev@harmony.apache.org Subject: Re: svn commit: r620477 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/TimeZone.java In-Reply-To: <47B047CC.9030408@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080211125241.B92DD1A9832@eris.apache.org> <47B047CC.9030408@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org 2008/2/11, Tim Ellison : > Is this the right place to fix the problem? Why not teach DRLVM to send > the timezone ID without the trailing newline? +1 > ayza@apache.org wrote: > > + if (zone.contains("\n")) { > > + zone = zone.substring(0, zone.indexOf("\n")); > > + } As far as I understood the string ends with "\n". If so I believe it's better use the following construction here: if (zone.endsWith("\n")) zone = zone.sunstring(0, zone.length() -1); SY, Alexey