commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis Hendriks <>
Subject [math] javadoc unbalanced <code>
Date Fri, 09 Mar 2012 10:34:16 GMT
Hi all,

See and scroll to the 
section 'D'. Observe how in method discardMostRecentElements(int) in class 
org.apache.commons.math3.util.ResizableDoubleArray, the style changes to 
larger font. This can be fixed using this patch:

Index: src/main/java/org/apache/commons/math3/util/
--- src/main/java/org/apache/commons/math3/util/ 
      (revision 1298781)
+++ src/main/java/org/apache/commons/math3/util/ 
      (working copy)
@@ -457,7 +457,7 @@

-     * Discards the <code>i<code> last elements of the array.  For example,
+     * Discards the <code>i</code> last elements of the array.  For example,
       * if the array contains the elements 1,2,3,4, invoking
       * <code>discardMostRecentElements(2)</code> will cause the last two 
       * to be discarded, leaving 1,2 in the array.  Throws 

and is obviously due to <code>i</code> not being balanced. Similar issues 
exist elsewhere in the javadoc, for instance at the isSame(Chromosome) 
method in the org.apache.commons.math3.genetics.BinaryChromosome class.

Best regards,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message