Added Junit 5 as dependency

This commit is contained in:
delvh
2020-04-02 09:06:10 +02:00
parent c176dc6e75
commit 9b413f81ff
4 changed files with 12 additions and 6 deletions

View File

@ -28,7 +28,7 @@ public abstract class Contact implements Serializable {
*
* @param id the ID of this contact
* @param name the name of this contact
* @param contacts the {@link Contacts} of this {@link Contact}
* @param contacts the contacts of this {@link Contact}
* @since Envoy Common v0.1-beta
*/
public Contact(long id, String name, Set<? extends Contact> contacts) {

View File

@ -2,7 +2,6 @@ package envoy.data;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
@ -126,7 +125,7 @@ public final class User extends Contact {
if (serializeContacts) {
getContacts().stream().filter(User.class::isInstance).map(User.class::cast).forEach(user -> user.serializeContacts = false);
outputStream.writeObject(getContacts());
} else outputStream.writeObject(new ArrayList<>());
} else outputStream.writeObject(new HashSet<>());
}
/**