diff --git a/src/main/java/org/apache/commons/collections4/bag/CollectionSortedBag.java b/src/main/java/org/apache/commons/collections4/bag/CollectionSortedBag.java index e0bbcf7fb..b47bec741 100644 --- a/src/main/java/org/apache/commons/collections4/bag/CollectionSortedBag.java +++ b/src/main/java/org/apache/commons/collections4/bag/CollectionSortedBag.java @@ -135,13 +135,11 @@ public final class CollectionSortedBag extends AbstractSortedBagDecorator return decorated().retainAll(null); } - // Bag interface - /** - * Write the collection out using a custom routine. + * Serializes this object to an ObjectOutputStream. * - * @param out the output stream - * @throws IOException if an error occurs while writing to the stream + * @param out the target ObjectOutputStream. + * @throws IOException thrown when an I/O errors occur writing to the target stream. */ private void writeObject(final ObjectOutputStream out) throws IOException { out.defaultWriteObject();