cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: [1/4] cayenne git commit: CAY-2057
Date Fri, 14 Apr 2017 11:53:53 GMT

> On Apr 14, 2017, at 1:08 AM, ntimofeev@apache.org wrote:
> 
> 	/**
> -	 * Orders a given list of objects, using a List of Orderings applied
> -	 * according the default iteration order of the Orderings list. I.e. each
> -	 * Ordering with lower index is more significant than any other Ordering
> -	 * with higher index. List being ordered is modified in place.
> -	 * 
> +	 * Return the sorted list of objects.
> 	 * @since 4.0
> 	 */
> 	public static <E> List<E> orderedList(Collection<E> objects, List<?
extends Ordering> orderings) {

Hmm.. this Javadoc change doesn't look right. The old Javadoc was correct except for the last
sentence (this method is not modifying the list in place). The new Javadoc is not helpful
at all.

Andrus
Mime
View raw message