This is an automated email from the ASF dual-hosted git repository. damjan pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push: new 61a74f2854 Use the HTML <code> tag instead of <kdb> from commit 872b2513907e4389be70e2d9b563f47e0d2c5a9f, which breaks on some older Java versions. 61a74f2854 is described below commit 61a74f2854935294cdc5bceabf0de6a4347799ae Author: Damjan Jovanovic <dam...@apache.org> AuthorDate: Mon Nov 6 19:46:52 2023 +0200 Use the HTML <code> tag instead of <kdb> from commit 872b2513907e4389be70e2d9b563f47e0d2c5a9f, which breaks on some older Java versions. Reported by: mseidel Patch by: me --- .../star/lib/uno/helper/InterfaceContainer.java | 46 +++++++++++----------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/main/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java b/main/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java index 9f362fb013..b046348971 100644 --- a/main/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java +++ b/main/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java @@ -127,9 +127,9 @@ public class InterfaceContainer implements Cloneable } /** - * Trims the capacity of this <kbd>ArrayList</kbd> instance to be the + * Trims the capacity of this <code>ArrayList</code> instance to be the * list's current size. An application can use this operation to minimize - * the storage of an <kbd>ArrayList</kbd> instance. + * the storage of an <code>ArrayList</code> instance. */ synchronized public void trimToSize() { @@ -143,7 +143,7 @@ public class InterfaceContainer implements Cloneable } /** - * Increases the capacity of this <kbd>ArrayList</kbd> instance, if + * Increases the capacity of this <code>ArrayList</code> 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 <kbd>true</kbd> (as per the general contract of Collection.add). + * @return <code>true</code> (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 - * <kbd>(index < 0 || index > size())</kbd>. + * <code>(index < 0 || index > size())</code>. */ 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 <kbd>(index - * < 0 || index > size())</kbd>. + * @throws IndexOutOfBoundsException if index out of range <code>(index + * < 0 || index > size())</code>. */ synchronized public boolean addAll(Collection c) { @@ -246,8 +246,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 <kbd>(index - * < 0 || index > size())</kbd>. + * @throws IndexOutOfBoundsException if index out of range <code>(index + * < 0 || index > size())</code>. */ synchronized public boolean addAll(int index, Collection c) { @@ -302,7 +302,7 @@ public class InterfaceContainer implements Cloneable } } /** - * Returns <kbd>true</kbd> if this list contains the specified element. + * Returns <code>true</code> if this list contains the specified element. * * @param elem element whose presence in this List is to be tested. */ @@ -334,8 +334,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 <kbd>(index - * < 0 || index >= size())</kbd>. + * @throws IndexOutOfBoundsException if index is out of range <code>(index + * < 0 || index >= size())</code>. */ synchronized public Object get(int index) { @@ -349,11 +349,11 @@ public class InterfaceContainer implements Cloneable /** * Searches for the first occurrence of the given argument, testing - * for equality using the <kbd>equals</kbd> method. + * for equality using the <code>equals</code> method. * * @param elem an object. * @return the index of the first occurrence of the argument in this - * list; returns <kbd>-1</kbd> if the object is not found. + * list; returns <code>-1</code> if the object is not found. * @see Object#equals(Object) */ synchronized public int indexOf(Object elem) @@ -387,8 +387,8 @@ public class InterfaceContainer implements Cloneable /** * Tests if this list has no elements. * - * @return <kbd>true</kbd> if this list has no elements; - * <kbd>false</kbd> otherwise. + * @return <code>true</code> if this list has no elements; + * <code>false</code> otherwise. */ synchronized public boolean isEmpty() { @@ -441,10 +441,10 @@ public class InterfaceContainer implements Cloneable } /** - * Returns a shallow copy of this <kbd>ArrayList</kbd> instance. The contained + * Returns a shallow copy of this <code>ArrayList</code> instance. The contained * references are copied but the objects not. * - * @return a clone of this <kbd>List</kbd> instance. + * @return a clone of this <code>List</code> instance. */ synchronized public Object clone() { @@ -486,8 +486,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 <kbd>(index - * < 0 || index >= size())</kbd>. + * @throws IndexOutOfBoundsException if index out of range <code>(index + * < 0 || index >= size())</code>. */ synchronized public Object remove(int index) { @@ -598,7 +598,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 - * <kbd>(index < 0 || index >= size())</kbd>. + * <code>(index < 0 || index >= size())</code>. */ synchronized public Object set(int index, Object element) { @@ -653,9 +653,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 - * <kbd>null</kbd>. This is useful in determining the length of the list + * <code>null</code>. This is useful in determining the length of the list * <i>only</i> if the caller knows that the list does not contain any - * <kbd>null</kbd> elements. + * <code>null</code> 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