Fix javadoc problem

This commit is contained in:
Yohan Simard 2020-03-20 14:11:18 +01:00
parent 93c05fdde7
commit a60676119d

View file

@ -68,7 +68,7 @@ public class BinaryHeapFormatter {
/** /**
* Creates a new context by appending a branch to this context. * Creates a new context by appending a branch to this context.
* *
* @param n Number of spaces to add to the margin, or {@code null} to use * @param count Number of spaces to add to the margin, or {@code null} to use
* the length of the string. * the length of the string.
* @param label Name of the branch. * @param label Name of the branch.
* *
@ -156,13 +156,12 @@ public class BinaryHeapFormatter {
* heap. * heap.
* *
* @param heap The binary heap to display. * @param heap The binary heap to display.
// * @param maxElement Maximum number of elements to display. or {@code -1} to * @param max_elements Maximum number of elements to display. or {@code -1} to
// * display all the elements. * display all the elements.
* *
* @return a string containing a sorted view the given binary heap. * @return a string containing a sorted view the given binary heap.
*/ */
public static <E extends Comparable<E>> String toStringSorted(BinaryHeap<E> heap, public static <E extends Comparable<E>> String toStringSorted(BinaryHeap<E> heap, int max_elements) {
int max_elements) {
String result = ""; String result = "";
final BinaryHeap<E> copy = new BinaryHeap<E>(heap); final BinaryHeap<E> copy = new BinaryHeap<E>(heap);