Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C28696F9 for ; Wed, 29 Feb 2012 16:55:00 +0000 (UTC) Received: (qmail 44744 invoked by uid 500); 29 Feb 2012 16:54:59 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 44664 invoked by uid 500); 29 Feb 2012 16:54:59 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 44656 invoked by uid 99); 29 Feb 2012 16:54:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Feb 2012 16:54:59 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.214.171 as permitted sender) Received: from [209.85.214.171] (HELO mail-tul01m020-f171.google.com) (209.85.214.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Feb 2012 16:54:53 +0000 Received: by obcuy19 with SMTP id uy19so10264899obc.30 for ; Wed, 29 Feb 2012 08:54:32 -0800 (PST) Received-SPF: pass (google.com: domain of sebbaz@gmail.com designates 10.182.53.66 as permitted sender) client-ip=10.182.53.66; Authentication-Results: mr.google.com; spf=pass (google.com: domain of sebbaz@gmail.com designates 10.182.53.66 as permitted sender) smtp.mail=sebbaz@gmail.com; dkim=pass header.i=sebbaz@gmail.com Received: from mr.google.com ([10.182.53.66]) by 10.182.53.66 with SMTP id z2mr504699obo.3.1330534472215 (num_hops = 1); Wed, 29 Feb 2012 08:54:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=6rVKTkMI97fKoJrBHldcnE+uchClE9AtrESdMswEQyU=; b=hDO8LVgOkp1Kp7Sx7n+Ogpxk4+HQT/aZyxfM8oYw+jqJe7urAOK7y8cAyxb2nJARbs 2GNTgfm1jqO6LVpGUppRea+Rtqj47wIEAfhRuFgT2yhzlcLohPcWqfPCALAuBc1lifWl YRswqt2uwxY970dih/RB9C87WF6YZRmYnDoN0= MIME-Version: 1.0 Received: by 10.182.53.66 with SMTP id z2mr406878obo.3.1330534472160; Wed, 29 Feb 2012 08:54:32 -0800 (PST) Received: by 10.182.85.5 with HTTP; Wed, 29 Feb 2012 08:54:32 -0800 (PST) In-Reply-To: <4F4E4E37.6090901@systemoutprintln.de> References: <4F4E4E37.6090901@systemoutprintln.de> Date: Wed, 29 Feb 2012 16:54:32 +0000 Message-ID: Subject: Re: [lang] Please fix DateParser Javadocs From: sebb To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On 29 February 2012 16:11, Benedikt Ritter wrote: > Am 29.02.2012 15:28, schrieb Gary Gregory: > >> Can someone please fix: >> >> [WARNING] >> >> C:\svn\org\apache\commons\trunks-proper\lang\src\main\java\org\apache\commons\lang3\time\DateParser.java:75: >> warning - Tag @link: can't find getTimeZo >> neOverridesCalendar() in org.apache.commons.lang3.time.DateParser > > > The problem is, that there is no method with name > "getTimeZoneOverridesCalendar()" in DateParser, so that link can't be > resolved (I think you already knew that :). > I suppose the comment is meant to refer to getTimeZone() in > java.util.Calendar. I don't think that's correct. The Javadoc originally said: *

This zone is always used for Date formatting. * If a Calendar is passed in to be formatted, the * time zone on that may be used depending on * {@link #getTimeZoneOverridesCalendar()}.

To me, this implies that there was/is a method called something like getTimeZoneOverridesCalendar() which was/is used to determine whether or not to use the timezone from the provided calendar. Date.getTimeZone() just happens to be a similar method name; I don't see how it's relevant here. The way to find out is to check what the code actually does (did). > If so, you can fix that by changing the link to: {@link > java.util.Calendar#getTimeZone()} > > Regards, > Benedikt > > >> >> It's not obvious to me what the right fix is. >> >> Thank you, >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org