From 07721a4dea1aab898a993662a24c5ab68ecc1edf Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 10 Oct 2018 14:19:53 +0200 Subject: [PATCH] HTML tt -> code in JavaDoc comments ...to avoid "error: tag not supported in the generated HTML version: tt" with JDK 11 Change-Id: I761c987257f42d01f24c88440495698cac6226d2 Reviewed-on: https://gerrit.libreoffice.org/61614 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- .../lib/uno/helper/InterfaceContainer.java | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java b/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java index cd751c5af7ef..b0419771870e 100644 --- a/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java +++ b/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java @@ -127,9 +127,9 @@ public class InterfaceContainer implements Cloneable } /** - * Trims the capacity of this ArrayList instance to be the + * Trims the capacity of this ArrayList instance to be the * list's current size. An application can use this operation to minimize - * the storage of an ArrayList instance. + * the storage of an ArrayList instance. */ synchronized public void trimToSize() { @@ -143,7 +143,7 @@ public class InterfaceContainer implements Cloneable } /** - * Increases the capacity of this ArrayList instance, if + * Increases the capacity of this ArrayList instance, if * necessary, to ensure that it can hold at least the number of elements * specified by the minimum capacity argument. * @@ -167,7 +167,7 @@ public class InterfaceContainer implements Cloneable * Appends the specified element to the end of this list. * * @param o element to be appended to this list. - * @return true (as per the general contract of Collection.add). + * @return true (as per the general contract of Collection.add). */ synchronized public boolean add(Object o) { @@ -189,7 +189,7 @@ public class InterfaceContainer implements Cloneable * @param index index at which the specified element is to be inserted. * @param element element to be inserted. * @throws IndexOutOfBoundsException if index is out of range - * (index < 0 || index > size()). + * (index < 0 || index > size()). */ synchronized public void add(int index, Object element) { @@ -218,8 +218,8 @@ public class InterfaceContainer implements Cloneable * list is nonempty.) * * @param c the elements to be inserted into this list. - * @throws IndexOutOfBoundsException if index out of range (index - * < 0 || index > size()). + * @throws IndexOutOfBoundsException if index out of range (index + * < 0 || index > size()). * @return true if an element was inserted. */ synchronized public boolean addAll(Collection c) @@ -247,8 +247,8 @@ public class InterfaceContainer implements Cloneable * @param index index at which to insert first element * from the specified collection. * @param c elements to be inserted into this list. - * @throws IndexOutOfBoundsException if index out of range (index - * < 0 || index > size()). + * @throws IndexOutOfBoundsException if index out of range (index + * < 0 || index > size()). * @return true if an element was inserted. */ synchronized public boolean addAll(int index, Collection c) @@ -304,10 +304,10 @@ public class InterfaceContainer implements Cloneable } } /** - * Returns true if this list contains the specified element. + * Returns true if this list contains the specified element. * * @param elem element whose presence in this List is to be tested. - * @return true if this list contains the specified element. + * @return true if this list contains the specified element. */ synchronized public boolean contains(Object elem) { @@ -337,8 +337,8 @@ public class InterfaceContainer implements Cloneable * * @param index index of element to return. * @return the element at the specified position in this list. - * @throws IndexOutOfBoundsException if index is out of range (index - * < 0 || index >= size()). + * @throws IndexOutOfBoundsException if index is out of range (index + * < 0 || index >= size()). */ synchronized public Object get(int index) { @@ -352,11 +352,11 @@ public class InterfaceContainer implements Cloneable /** * Searches for the first occurrence of the given argument, testing - * for equality using the equals method. + * for equality using the equals method. * * @param elem an object. * @return the index of the first occurrence of the argument in this - * list; returns -1 if the object is not found. + * list; returns -1 if the object is not found. * @see Object#equals(Object) */ synchronized public int indexOf(Object elem) @@ -392,8 +392,8 @@ public class InterfaceContainer implements Cloneable /** * Tests if this list has no elements. * - * @return true if this list has no elements; - * false otherwise. + * @return true if this list has no elements; + * false otherwise. */ synchronized public boolean isEmpty() { @@ -448,10 +448,10 @@ public class InterfaceContainer implements Cloneable } /** - * Returns a shallow copy of this ArrayList instance. The contained + * Returns a shallow copy of this ArrayList instance. The contained * references are copied but the objects not. * - * @return a clone of this List instance. + * @return a clone of this List instance. */ @Override synchronized public Object clone() @@ -492,8 +492,8 @@ public class InterfaceContainer implements Cloneable * * @param index the index of the element to removed. * @return the element that was removed from the list. - * @throws IndexOutOfBoundsException if index out of range (index - * < 0 || index >= size()). + * @throws IndexOutOfBoundsException if index out of range (index + * < 0 || index >= size()). */ synchronized public Object remove(int index) { @@ -606,7 +606,7 @@ public class InterfaceContainer implements Cloneable * @param element element to be stored at the specified position. * @return the element previously at the specified position. * @throws IndexOutOfBoundsException if index out of range - * (index < 0 || index >= size()). + * (index < 0 || index >= size()). */ synchronized public Object set(int index, Object element) { @@ -661,9 +661,9 @@ public class InterfaceContainer implements Cloneable * If the list fits in the specified array with room to spare (i.e., the * array has more elements than the list), the element in the array * immediately following the end of the collection is set to - * null. This is useful in determining the length of the list + * null. This is useful in determining the length of the list * only if the caller knows that the list does not contain any - * null elements. + * null elements. * * @param a the array into which the elements of the list are to * be stored, if it is big enough; otherwise, a new array of the