diff options
author | Shane Freeder <[email protected]> | 2019-04-14 23:45:42 +0100 |
---|---|---|
committer | Shane Freeder <[email protected]> | 2019-04-15 00:17:55 +0100 |
commit | f28e1455e35fb1431ee9bc8bc5da07c83294078e (patch) | |
tree | acb3d018d8a09fc7256ac496ac56393972bc25b9 /Spigot-API-Patches/0051-Fix-upstream-javadoc-warnings-and-errors.patch | |
parent | 43649ff73aff256714be5380e83b68f1e3aa7901 (diff) | |
download | Paper-f28e1455e35fb1431ee9bc8bc5da07c83294078e.tar.gz Paper-f28e1455e35fb1431ee9bc8bc5da07c83294078e.zip |
Mark PlayerMoveEvent#setTo as NotNull
Diffstat (limited to 'Spigot-API-Patches/0051-Fix-upstream-javadoc-warnings-and-errors.patch')
-rw-r--r-- | Spigot-API-Patches/0051-Fix-upstream-javadoc-warnings-and-errors.patch | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Spigot-API-Patches/0051-Fix-upstream-javadoc-warnings-and-errors.patch b/Spigot-API-Patches/0051-Fix-upstream-javadoc-warnings-and-errors.patch index b3c61fd1ec..3c00e47ed8 100644 --- a/Spigot-API-Patches/0051-Fix-upstream-javadoc-warnings-and-errors.patch +++ b/Spigot-API-Patches/0051-Fix-upstream-javadoc-warnings-and-errors.patch @@ -1,4 +1,4 @@ -From 0073358c87abe5e1b89363c51a06ff694a01f965 Mon Sep 17 00:00:00 2001 +From cc46bf75294e7b9ce639b3d6bde64193799859d9 Mon Sep 17 00:00:00 2001 From: Zach Brown <[email protected]> Date: Sat, 10 Jun 2017 16:59:40 -0500 Subject: [PATCH] Fix upstream javadoc warnings and errors @@ -286,6 +286,19 @@ index 8d4c70031..b493173e2 100644 */ public PlayerLoginEvent(@NotNull final Player player, @NotNull String hostname, @NotNull final InetAddress address, @NotNull final Result result, @NotNull final String message, @NotNull final InetAddress realAddress) { // Spigot this(player, hostname, address, realAddress); // Spigot +diff --git a/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java b/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java +index 8b9018451..374fe3644 100644 +--- a/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java ++++ b/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java +@@ -76,7 +76,7 @@ public class PlayerMoveEvent extends PlayerEvent implements Cancellable { + * + * @return Location the player moved to + */ +- @Nullable ++ @NotNull // Paper + public Location getTo() { + return to; + } diff --git a/src/main/java/org/bukkit/inventory/ItemFactory.java b/src/main/java/org/bukkit/inventory/ItemFactory.java index 07d2b4cfe..cbcbe8c8a 100644 --- a/src/main/java/org/bukkit/inventory/ItemFactory.java |