Added Junit 5 as dependency
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
@@ -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<>());
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user