Skip to content

Commit a67b569

Browse files
committed
Add ApiStatus annotations to ProfileKey and ProfileFileKey for versioning
1 parent a939d6d commit a67b569

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/main/java/org/mvplugins/multiverse/inventories/profile/key/ProfileFileKey.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import com.google.common.base.Objects;
44
import org.bukkit.OfflinePlayer;
5+
import org.jetbrains.annotations.ApiStatus;
56
import org.jetbrains.annotations.NotNull;
67
import org.jetbrains.annotations.Nullable;
78
import org.mvplugins.multiverse.inventories.profile.data.PlayerProfile;
@@ -19,6 +20,7 @@ public static ProfileFileKey fromPlayerProfile(PlayerProfile profile) {
1920
);
2021
}
2122

23+
@ApiStatus.AvailableSince("5.3")
2224
public static ProfileFileKey copyOf(ProfileFileKey key) {
2325
return of(
2426
key.getContainerType(),
@@ -73,6 +75,7 @@ public ProfileKey forProfileType(@Nullable ProfileType profileType) {
7375
return ProfileKey.of(containerType, dataName, profileType, playerUUID, playerName);
7476
}
7577

78+
@ApiStatus.AvailableSince("5.3")
7679
public ProfileFileKey forContainer(@NotNull ContainerKey containerKey) {
7780
return new ProfileFileKey(containerKey.getContainerType(), containerKey.getDataName(), playerUUID, playerName);
7881
}

src/main/java/org/mvplugins/multiverse/inventories/profile/key/ProfileKey.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import com.google.common.base.Objects;
44
import org.bukkit.OfflinePlayer;
5+
import org.jetbrains.annotations.ApiStatus;
56
import org.jetbrains.annotations.NotNull;
67
import org.mvplugins.multiverse.inventories.profile.data.PlayerProfile;
78

@@ -65,6 +66,7 @@ private ProfileKey(
6566
this.profileType = profileType;
6667
}
6768

69+
@ApiStatus.AvailableSince("5.3")
6870
@Override
6971
public ProfileKey forContainer(@NotNull ContainerKey containerKey) {
7072
return new ProfileKey(containerKey.getContainerType(), containerKey.getDataName(),

0 commit comments

Comments
 (0)