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