Fix some javadoc warnings

Also remove a couple old/broken deprecated methods

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2019-05-20 20:29:33 +10:00
parent 7a2194f937
commit b2c53e8c68
21 changed files with 56 additions and 67 deletions

View File

@@ -132,10 +132,10 @@ public interface ItemFactory {
* Apply a material change for an item meta. Do not use under any
* circumstances.
*
* @param meta
* @param material
* @param meta meta
* @param material material
* @return updated material
* @throws IllegalArgumentException
* @throws IllegalArgumentException if bad material or data
* @deprecated for internal use only
*/
@Deprecated

View File

@@ -34,7 +34,7 @@ public interface Merchant {
*
* @param i the index
* @return the recipe
* @throws IndexOutOfBoundsException
* @throws IndexOutOfBoundsException if recipe index out of bounds
*/
@NotNull
MerchantRecipe getRecipe(int i) throws IndexOutOfBoundsException;
@@ -44,7 +44,7 @@ public interface Merchant {
*
* @param i the index
* @param recipe the recipe
* @throws IndexOutOfBoundsException
* @throws IndexOutOfBoundsException if recipe index out of bounds
*/
void setRecipe(int i, @NotNull MerchantRecipe recipe) throws IndexOutOfBoundsException;

View File

@@ -27,7 +27,7 @@ public interface CrossbowMeta extends ItemMeta {
*
* Removes all projectiles when given null.
*
* @param projectiles
* @param projectiles the projectiles to set
* @throws IllegalArgumentException if one of the projectiles is not an
* arrow or firework rocket
*/

View File

@@ -379,7 +379,7 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
/**
* Internal use only! Do not use under any circumstances!
*
* @param version
* @param version version
* @deprecated
*/
@Deprecated

View File

@@ -11,7 +11,7 @@ import org.jetbrains.annotations.NotNull;
* different complex types. This may be useful for the likes of a
* UUIDItemTagType:
* <pre>
* <code>{@code
* {@code
* public class UUIDItemTagType implements ItemTagType<byte[], UUID> {
*
* {@literal @Override}
@@ -39,7 +39,7 @@ import org.jetbrains.annotations.NotNull;
* long secondLong = bb.getLong();
* return new UUID(firstLong, secondLong);
* }
* }}</code></pre>
* }}</pre>
*
* @param <T> the primary object type that is stored in the given tag
* @param <Z> the retrieved object type when applying this item tag type