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 93F159703 for ; Fri, 13 Jan 2012 10:59:53 +0000 (UTC) Received: (qmail 25099 invoked by uid 500); 13 Jan 2012 10:59:52 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 24665 invoked by uid 500); 13 Jan 2012 10:59:50 -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 24623 invoked by uid 99); 13 Jan 2012 10:59:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jan 2012 10:59:48 +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: local policy) Received: from [193.74.71.26] (HELO hel.is.scarlet.be) (193.74.71.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jan 2012 10:59:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scarlet.be; s=scarlet; t=1326452360; bh=pDJ3C8Vf4/XYhf3YqRI0rQpCmPLvuGZKvhyj5kJZtK4=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=tBwjYQ5Zthgw+ONCJfkotx2EAchXJY99/757tFoFB04/nkk2snooPj61Bl5TqkCJK ewCXIp/N7pbr6Un02oUfrlgB09As1+kpz48VarPH2Dm+CZQlcZ8ECtYFc+Na5mRqNx C6uaZING8+4dMdnwkTsQfejBoLZnb0JCHfkllGTI= Received: from mail.harfang.homelinux.org (ip-213-49-255-40.dsl.scarlet.be [213.49.255.40]) by hel.is.scarlet.be (8.14.5/8.14.5) with ESMTP id q0DAxJsV004676 for ; Fri, 13 Jan 2012 11:59:20 +0100 X-Scarlet: d=1326452360 c=213.49.255.40 Received: from localhost (mail.harfang.homelinux.org [192.168.20.11]) by mail.harfang.homelinux.org (Postfix) with ESMTP id 649786175F for ; Fri, 13 Jan 2012 11:59:19 +0100 (CET) Received: from mail.harfang.homelinux.org ([192.168.20.11]) by localhost (mail.harfang.homelinux.org [192.168.20.11]) (amavisd-new, port 10024) with ESMTP id zqbK-FPMJ2yY for ; Fri, 13 Jan 2012 11:59:13 +0100 (CET) Received: from dusk.harfang.homelinux.org (mail.harfang.homelinux.org [192.168.20.11]) by mail.harfang.homelinux.org (Postfix) with ESMTP id A1D4861A53 for ; Fri, 13 Jan 2012 11:59:13 +0100 (CET) Received: from eran by dusk.harfang.homelinux.org with local (Exim 4.77) (envelope-from ) id 1Rleqn-0007fo-Cl for dev@commons.apache.org; Fri, 13 Jan 2012 11:59:13 +0100 Date: Fri, 13 Jan 2012 11:59:13 +0100 From: Gilles Sadowski To: dev@commons.apache.org Subject: Re: svn commit: r1230906 - in /commons/proper/math/trunk/src/main/java/org/apache/commons/math/random: RandomData.java RandomDataImpl.java Message-ID: <20120113105913.GM6537@dusk.harfang.homelinux.org> Mail-Followup-To: dev@commons.apache.org References: <20120113070410.D5DD9238897D@eris.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120113070410.D5DD9238897D@eris.apache.org> X-Operating-System: Tiny Tux X-PGP-Key-Fingerprint: 53B9 972E C2E6 B93C BEAD 7092 09E6 AF46 51D0 5641 User-Agent: Mutt/1.5.21 (2010-09-15) X-DCC-scarlet.be-Metrics: hel 20002; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: clamav-milter 0.97.1-exp at hel X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Jan 13, 2012 at 07:04:10AM -0000, celestin@apache.org wrote: > Author: celestin > Date: Fri Jan 13 07:04:10 2012 > New Revision: 1230906 > > URL: http://svn.apache.org/viewvc?rev=1230906&view=rev > Log: > Javadoc > Made sure that exceptions are documented in both javadoc and method signatures. This is not good style: Unchecked exceptions in method signatures do not offer any guarantee to the caller; not that only those exceptions will be thrown and not even that these exceptions can actually be thrown. Thus, it brings a level of redundancy (between Javadoc and signatures) that must be kept in sync manually; this is a burden and has no benefit.[1] Unchecked exceptions must be documented in Javadoc, but should not appear in method signatures (at least, not systematically). Best regards, Gilles [1] Luc likes to have the exception in the signatures because, as a CM developer, he can (temporarily) change the definition of an exception (to make it "checked") and then the compiler will tell whether some (user) code is prepared to handle that exception. But who else is going to do that? > [...] --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org