.
This commit is contained in:
parent
3433e1d4df
commit
08129e7474
16 changed files with 439 additions and 153 deletions
|
|
@ -27,7 +27,5 @@ public interface FriendsService {
|
|||
/**
|
||||
* @param from id of player sending the friend request
|
||||
* @param to id of the player the initiator wants to befriend
|
||||
* @throws FriendRequestUsageException
|
||||
*/
|
||||
Mono<@NotNull Friendship> sendFriendRequest(UUID from, UUID to);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ public class OrderedUUIDPair {
|
|||
private final UUID second;
|
||||
|
||||
public OrderedUUIDPair(UUID uuid1, UUID uuid2) {
|
||||
Preconditions.checkArgument(uuid1 != uuid2);
|
||||
Preconditions.checkArgument(uuid1 != uuid2, "UUIDPair may consist of identical UUIDs");
|
||||
if (uuid1.compareTo(uuid2) < 0) {
|
||||
this.first = uuid1;
|
||||
this.second = uuid2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue