From cd9fa1cdf6e9a3efe7b3b39ab54c58d7704184ff Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Tue, 18 Sep 2012 17:20:48 +0200 Subject: [PATCH] Fixing documentation. --- ProtocolLib/src/com/comphenix/protocol/ProtocolManager.java | 2 +- .../src/com/comphenix/protocol/injector/PacketConstructor.java | 2 +- .../src/com/comphenix/protocol/reflect/FuzzyReflection.java | 2 +- ProtocolLib/src/com/comphenix/protocol/reflect/IntEnum.java | 2 +- .../comphenix/protocol/reflect/instances/DefaultInstances.java | 2 -- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ProtocolLib/src/com/comphenix/protocol/ProtocolManager.java b/ProtocolLib/src/com/comphenix/protocol/ProtocolManager.java index 48bf9846..2d63700b 100644 --- a/ProtocolLib/src/com/comphenix/protocol/ProtocolManager.java +++ b/ProtocolLib/src/com/comphenix/protocol/ProtocolManager.java @@ -131,7 +131,7 @@ public interface ProtocolManager { /** * Construct a packet using the special builtin Minecraft constructors. * @param id - the packet ID. - * @param argumentTypes - arguments that will be passed to the constructor. + * @param arguments - arguments that will be passed to the constructor. * @return The packet constructor. */ public PacketConstructor createPacketConstructor(int id, Object... arguments); diff --git a/ProtocolLib/src/com/comphenix/protocol/injector/PacketConstructor.java b/ProtocolLib/src/com/comphenix/protocol/injector/PacketConstructor.java index 38325df4..fe3eeecd 100644 --- a/ProtocolLib/src/com/comphenix/protocol/injector/PacketConstructor.java +++ b/ProtocolLib/src/com/comphenix/protocol/injector/PacketConstructor.java @@ -62,7 +62,7 @@ public class PacketConstructor { /** * Return a copy of the current constructor with a different list of unwrappers. * @param unwrappers - list of unwrappers that convert Bukkit wrappers into the equivalent NMS classes. - * @return + * @return A constructor with a different set of unwrappers. */ public PacketConstructor withUnwrappers(List unwrappers) { return new PacketConstructor(constructorMethod, unwrappers); diff --git a/ProtocolLib/src/com/comphenix/protocol/reflect/FuzzyReflection.java b/ProtocolLib/src/com/comphenix/protocol/reflect/FuzzyReflection.java index 362daeaa..a8e3eb6b 100644 --- a/ProtocolLib/src/com/comphenix/protocol/reflect/FuzzyReflection.java +++ b/ProtocolLib/src/com/comphenix/protocol/reflect/FuzzyReflection.java @@ -208,7 +208,7 @@ public class FuzzyReflection { *
  • net.comphenix.xp.ExperienceMod
  • * * @param typeRegex - regular expression that will match the field type. - * @param ignoredTypes - types to ignore. + * @param ignored - types to ignore. * @return The first field with a type that matches the given regular expression. */ @SuppressWarnings("rawtypes") diff --git a/ProtocolLib/src/com/comphenix/protocol/reflect/IntEnum.java b/ProtocolLib/src/com/comphenix/protocol/reflect/IntEnum.java index 115753e1..a367dc9a 100644 --- a/ProtocolLib/src/com/comphenix/protocol/reflect/IntEnum.java +++ b/ProtocolLib/src/com/comphenix/protocol/reflect/IntEnum.java @@ -52,7 +52,7 @@ public class IntEnum { /** * Determines whether or not the given member exists. - * @param packetID - the ID of the member to find. + * @param id - the ID of the member to find. * @return TRUE if a member with the given ID exists, FALSE otherwise. */ public boolean hasMember(int id) { diff --git a/ProtocolLib/src/com/comphenix/protocol/reflect/instances/DefaultInstances.java b/ProtocolLib/src/com/comphenix/protocol/reflect/instances/DefaultInstances.java index 4492a617..6ab5c1dd 100644 --- a/ProtocolLib/src/com/comphenix/protocol/reflect/instances/DefaultInstances.java +++ b/ProtocolLib/src/com/comphenix/protocol/reflect/instances/DefaultInstances.java @@ -49,7 +49,6 @@ public class DefaultInstances { /** * Construct a default instance generator using the given instance providers. * @param registered - list of instance providers. - * @param stringDefault - default string value. */ public DefaultInstances(ImmutableList registered) { this.registered = registered; @@ -58,7 +57,6 @@ public class DefaultInstances { /** * Construct a default instance generator using the given instance providers. * @param instaceProviders - array of instance providers. - * @return An default instance generator. */ public DefaultInstances(InstanceProvider... instaceProviders) { this(ImmutableList.copyOf(instaceProviders));