Added nullability annotations to some Island's fields

This commit is contained in:
Florian CUNY 2019-04-07 10:43:24 +02:00
parent 962bc50aaa
commit 749b88669c

View File

@ -52,11 +52,13 @@ public class Island implements DataObject {
private boolean deleted = false; private boolean deleted = false;
@Expose @Expose
@NonNull
private String uniqueId = UUID.randomUUID().toString(); private String uniqueId = UUID.randomUUID().toString();
//// Island //// //// Island ////
// The center of the island itself // The center of the island itself
@Expose @Expose
@Nullable
private Location center; private Location center;
// Island range // Island range
@ -77,6 +79,7 @@ public class Island implements DataObject {
// Display name // Display name
@Expose @Expose
@Nullable
private String name; private String name;
// Time parameters // Time parameters
@ -87,7 +90,8 @@ public class Island implements DataObject {
//// Team //// //// Team ////
@Expose @Expose
private @Nullable UUID owner; @Nullable
private UUID owner;
@Expose @Expose
private Map<UUID, Integer> members = new HashMap<>(); private Map<UUID, Integer> members = new HashMap<>();