Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2B52D200B92 for ; Wed, 28 Sep 2016 15:06:33 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 29F71160AD4; Wed, 28 Sep 2016 13:06:33 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1F0D5160AB4 for ; Wed, 28 Sep 2016 15:06:31 +0200 (CEST) Received: (qmail 75027 invoked by uid 500); 28 Sep 2016 13:06:31 -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 75009 invoked by uid 99); 28 Sep 2016 13:06:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2016 13:06:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 7E325CA67C for ; Wed, 28 Sep 2016 13:06:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.08 X-Spam-Level: X-Spam-Status: No, score=0.08 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=scarlet.be Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id urRoRXGODbPu for ; Wed, 28 Sep 2016 13:06:26 +0000 (UTC) Received: from sif.is.scarlet.be (sif.is.scarlet.be [193.74.71.28]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id EDB6F5FB5A for ; Wed, 28 Sep 2016 13:06:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scarlet.be; s=scarlet; t=1475067985; bh=hIJBZOjp4JBDB7JIn209T+hU7H4gq0JEzSLtoRnatsA=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Subject:In-Reply-To:References:Message-ID; b=LJwhyoQVk6nRoxtWJHJWHx6y9WmTrzEcH2lYdIaCB1Q4pKKevCpo2ICPs6iBrbvta wXB4Z17oliO42c1d6XsZgqwVUtuoT5syeSUk8JfeTO/kC7awneQsQ4KMOPns0ylcZv n7L0ZjV1c6UPyJdGKEvnfqdgzLj6YB7XSpFtL32s= Received: from webmail.scarlet.be (meigs.is.scarlet.be [193.74.71.216]) by sif.is.scarlet.be (8.14.9/8.14.9) with ESMTP id u8SD6Oxi023048 for ; Wed, 28 Sep 2016 15:06:25 +0200 X-Scarlet: d=1475067985 c=193.74.71.216 Received: from pno-astro-26.ulb.ac.be ([164.15.138.26]) via astropc12.ulb.ac.be ([164.15.138.26]) by webmail.scarlet.be with HTTP (HTTP/1.1 POST); Wed, 28 Sep 2016 15:06:24 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 28 Sep 2016 15:06:24 +0200 From: Gilles To: Subject: Re: [1/4] commons-rng git commit: Fixed the javadoc errors with Java 8 In-Reply-To: References: Message-ID: <5cfd91175be15ecaecdf838151c4bc0c@scarlet.be> X-Sender: gilles@harfang.homelinux.org User-Agent: Scarlet Webmail X-DCC-scarlet.be-Metrics: sif; whitelist X-Virus-Scanned: clamav-milter 0.98.1-exp at sif X-Virus-Status: Clean archived-at: Wed, 28 Sep 2016 13:06:33 -0000 Emmanuel, On Wed, 28 Sep 2016 08:54:50 -0000, ebourg@apache.org wrote: > Repository: commons-rng > Updated Branches: > refs/heads/master fcc9da888 -> fd22dc61f > > > Fixed the javadoc errors with Java 8 I use Java 8 and did not get any errors when generating the apidocs. Unless I'm missing something, the above message does not correspond to the change in this commit. The changes themselves contradict usage of the

HTML tag:

and

enclose a paragraph, not a headline. So I think that this change should be reverted. Then please let us know what problems you encountered so we can decide _together_ on how we want Javadoc to be written for this component (and possibly others). Thanks, Gilles > Project: http://git-wip-us.apache.org/repos/asf/commons-rng/repo > Commit: > http://git-wip-us.apache.org/repos/asf/commons-rng/commit/41830f7d > Tree: > http://git-wip-us.apache.org/repos/asf/commons-rng/tree/41830f7d > Diff: > http://git-wip-us.apache.org/repos/asf/commons-rng/diff/41830f7d > > Branch: refs/heads/master > Commit: 41830f7d94bfdb53c04b5c76986f3272fe6cfe64 > Parents: fcc9da8 > Author: Emmanuel Bourg > Authored: Wed Sep 28 10:05:47 2016 +0200 > Committer: Emmanuel Bourg > Committed: Wed Sep 28 10:05:47 2016 +0200 > > > ---------------------------------------------------------------------- > .../org/apache/commons/rng/RandomSource.java | 28 > ++++++++------------ > .../rng/internal/source32/MersenneTwister.java | 2 +- > .../internal/source64/MersenneTwister64.java | 2 +- > .../commons/rng/internal/source64/TwoCmres.java | 5 ++-- > .../rng/internal/util/NumberFactory.java | 17 ++++++------ > 5 files changed, 24 insertions(+), 30 deletions(-) > > ---------------------------------------------------------------------- > > > > http://git-wip-us.apache.org/repos/asf/commons-rng/blob/41830f7d/src/main/java/org/apache/commons/rng/RandomSource.java > > ---------------------------------------------------------------------- > diff --git a/src/main/java/org/apache/commons/rng/RandomSource.java > b/src/main/java/org/apache/commons/rng/RandomSource.java > index 0c22419..27b67bb 100644 > --- a/src/main/java/org/apache/commons/rng/RandomSource.java > +++ b/src/main/java/org/apache/commons/rng/RandomSource.java > @@ -23,8 +23,8 @@ import > org.apache.commons.rng.internal.util.SeedFactory; > > /** > * This class provides the API for creating generators of random > numbers. > - *

> - * Usage examples: > + * > + *

Usage examples:

> *

>   *  UniformRandomProvider rng = 
> RandomSource.create(RandomSource.MT);
>   * 
> @@ -41,7 +41,8 @@ import > org.apache.commons.rng.internal.util.SeedFactory; > * where the first argument to method {@code create} is the > identifier > * of the generator's concrete implementation, and the second the is > the > * (optional) seed. > - *
> + * > + *

> * In the first form, a random seed will be {@link SeedFactory > generated > * automatically}; in the second form, a fixed seed is used; a > random seed > * is explicitly generated in the third form. > @@ -105,9 +106,11 @@ import > org.apache.commons.rng.internal.util.SeedFactory; > * or arrays of values, of {@code int} or {@code long} types) that > can > * be passed to the {@link > RandomSource#create(RandomSource,Object,Object[]) > * generators factory method}. > - *
> + *

> + *

> * Although the seed-generating methods defined in this class will > likely > * return different values each time they are called, there is no > guarantee: > + *

> * > - *

> * > *

> * The current implementations have no provision for producing > non-overlapping > @@ -365,12 +367,10 @@ public enum RandomSource { > /** > * Creates a random number generator with a random seed. > * > - *

> - * Example of usage: > + *

Example of usage:

> *

>       *  UniformRandomProvider rng = 
> RandomSource.create(RandomSource.MT);
>       * 
> - *

> * > * @param source RNG type. > * @return the RNG. > @@ -382,15 +382,12 @@ public enum RandomSource { > /** > * Creates a random number generator with the given {@code > seed}. > * > - *

> - * Example of usage: > + *

Example of usage:

> *

>       *  UniformRandomProvider rng =
> RandomSource.create(RandomSource.TWO_CMRES_SELECT, 26219, 6, 9);
>       * 
> - *

> * > - *

> - * Valid types for the {@code seed} are: > + *

Valid types for the {@code seed} are:

> *
    > *
  • {@code Integer} (or {@code int})
  • > *
  • {@code Long} (or {@code long})
  • > @@ -398,10 +395,8 @@ public enum RandomSource { > *
  • {@code long[]}
  • > *
  • {@code byte[]}
  • > *
> - *

> * > - *

> - * Notes: > + *

Notes:

> *
    > *
  • > * When the seed type passed as argument is more complex (i.e. > more > @@ -419,7 +414,6 @@ public enum RandomSource { > * {@code null}, the size of the generated array will be 128. > *
  • > *
> - *

> * > * @param source RNG type. > * @param seed Seed value. It can be {@code null} (in which > case a > > > http://git-wip-us.apache.org/repos/asf/commons-rng/blob/41830f7d/src/main/java/org/apache/commons/rng/internal/source32/MersenneTwister.java > > ---------------------------------------------------------------------- > diff --git > > a/src/main/java/org/apache/commons/rng/internal/source32/MersenneTwister.java > > b/src/main/java/org/apache/commons/rng/internal/source32/MersenneTwister.java > index e53ac4e..0626a7d 100644 > --- > > a/src/main/java/org/apache/commons/rng/internal/source32/MersenneTwister.java > +++ > > b/src/main/java/org/apache/commons/rng/internal/source32/MersenneTwister.java > @@ -49,7 +49,7 @@ import > org.apache.commons.rng.internal.util.NumberFactory; > * and Takuji Nishimura. Here is their original copyright: > *

> * > - * bgcolor="#E0E0E0"> > + *
style="background-color: #E0E0E0" summary="Mersenne Twister licence"> > * > * > > > http://git-wip-us.apache.org/repos/asf/commons-rng/blob/41830f7d/src/main/java/org/apache/commons/rng/internal/source64/MersenneTwister64.java > > ---------------------------------------------------------------------- > diff --git > > a/src/main/java/org/apache/commons/rng/internal/source64/MersenneTwister64.java > > b/src/main/java/org/apache/commons/rng/internal/source64/MersenneTwister64.java > index bee7ece..8943ba6 100644 > --- > > a/src/main/java/org/apache/commons/rng/internal/source64/MersenneTwister64.java > +++ > > b/src/main/java/org/apache/commons/rng/internal/source64/MersenneTwister64.java > @@ -35,7 +35,7 @@ import > org.apache.commons.rng.internal.util.NumberFactory; > * Here is their original copyright: > *

> * > - *
Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji > Nishimura, > * All rights reserved.
bgcolor="#E0E0E0"> > + *
style="background-color: #E0E0E0" summary="Mersenne Twister licence"> > * > * > > > http://git-wip-us.apache.org/repos/asf/commons-rng/blob/41830f7d/src/main/java/org/apache/commons/rng/internal/source64/TwoCmres.java > > ---------------------------------------------------------------------- > diff --git > > a/src/main/java/org/apache/commons/rng/internal/source64/TwoCmres.java > > b/src/main/java/org/apache/commons/rng/internal/source64/TwoCmres.java > index 8afe220..2427f60 100644 > --- > a/src/main/java/org/apache/commons/rng/internal/source64/TwoCmres.java > +++ > b/src/main/java/org/apache/commons/rng/internal/source64/TwoCmres.java > @@ -23,13 +23,12 @@ import > org.apache.commons.rng.internal.util.NumberFactory; > > /** > * Random number generator designed by Mark D. Overton. > - *

> - * It is one of the many generators described by the author in the > following article series: > + * > + *

It is one of the many generators described by the author in > the following article series:

> * > - *

> * > * @since 1.0 > */ > > > http://git-wip-us.apache.org/repos/asf/commons-rng/blob/41830f7d/src/main/java/org/apache/commons/rng/internal/util/NumberFactory.java > > ---------------------------------------------------------------------- > diff --git > > a/src/main/java/org/apache/commons/rng/internal/util/NumberFactory.java > > b/src/main/java/org/apache/commons/rng/internal/util/NumberFactory.java > index b769db6..22f1d16 100644 > --- > a/src/main/java/org/apache/commons/rng/internal/util/NumberFactory.java > +++ > b/src/main/java/org/apache/commons/rng/internal/util/NumberFactory.java > @@ -112,14 +112,14 @@ public final class NumberFactory { > > /** > * Creates an {@code int} from a {@code long}, using the high > order bits. > - *

> - * The returned value is such that if > + * > + *

The returned value is such that if

> *

>       *  vL = extractLo(v);
>       *  vH = extractHi(v);
>       * 
> - * then {@code v} is equal to {@link #makeLong(int,int) > makeLong(vH, vL)}. > - *

> + * > + *

then {@code v} is equal to {@link #makeLong(int,int) > makeLong(vH, vL)}.

> * > * @param v Number. > * @return an {@code int} value made from the most significant > bits > @@ -131,14 +131,15 @@ public final class NumberFactory { > > /** > * Creates an {@code int} from a {@code long}, using the low > order bits. > - *

> - * The returned value is such that if > + * > + *

The returned value is such that if

> + * > *

>       *  vL = extractLo(v);
>       *  vH = extractHi(v);
>       * 
> - * then {@code v} is equal to {@link #makeLong(int,int) > makeLong(vH, vL)}. > - *

> + * > + *

then {@code v} is equal to {@link #makeLong(int,int) > makeLong(vH, vL)}.

> * > * @param v Number. > * @return an {@code int} value made from the least significant > bits --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org
Copyright (C) 2004, Makoto Matsumoto and Takuji > Nishimura, > * All rights reserved.