Archiviert
13
0
Dieser Commit ist enthalten in:
Kristian S. Stangeland 2012-10-05 04:43:41 +02:00
Ursprung 88da4e3272
Commit 12eab67db7
4 geänderte Dateien mit 4 neuen und 5 gelöschten Zeilen

Datei anzeigen

@ -72,7 +72,7 @@ public class PacketConstructor {
/** /**
* Create a packet constructor that creates packets using the given types. * Create a packet constructor that creates packets using the given types.
* @param id - packet ID. * @param id - packet ID.
* @param types - types to create. * @param values - types to create.
* @return A packet constructor with these types. * @return A packet constructor with these types.
* @throws IllegalArgumentException If no packet constructor could be created with these types. * @throws IllegalArgumentException If no packet constructor could be created with these types.
*/ */

Datei anzeigen

@ -124,7 +124,6 @@ public class PlayerInjectionHandler {
/** /**
* Initialize a player hook, allowing us to read server packets. * Initialize a player hook, allowing us to read server packets.
* @param manager - the main packet filter manager.
* @param player - player to hook. * @param player - player to hook.
*/ */
public void injectPlayer(Player player) { public void injectPlayer(Player player) {

Datei anzeigen

@ -156,8 +156,8 @@ public class FuzzyReflection {
/** /**
* Retrieves a method by looking at the parameter types and return type only. * Retrieves a method by looking at the parameter types and return type only.
* @param name - potential name of the method. Only used by the error mechanism. * @param name - potential name of the method. Only used by the error mechanism.
* @param returnType - regular expression matching the return type of the method to find. * @param returnTypeRegex - regular expression matching the return type of the method to find.
* @param args - regular expressions of the matching parameter types. * @param argsRegex - regular expressions of the matching parameter types.
* @return The first method that satisfies the parameter types. * @return The first method that satisfies the parameter types.
*/ */
public Method getMethodByParameters(String name, String returnTypeRegex, String[] argsRegex) { public Method getMethodByParameters(String name, String returnTypeRegex, String[] argsRegex) {

Datei anzeigen

@ -200,7 +200,7 @@ public class DefaultInstances {
* @param types - types to check. * @param types - types to check.
* @param providers - instance providers. * @param providers - instance providers.
* @param recursionLevel - current recursion level. * @param recursionLevel - current recursion level.
* @return * @return TRUE if any of the types will return NULL, FALSE otherwise.
*/ */
private boolean isAnyNull(Class<?>[] types, List<InstanceProvider> providers, int recursionLevel) { private boolean isAnyNull(Class<?>[] types, List<InstanceProvider> providers, int recursionLevel) {
// Just check if any of them are NULL // Just check if any of them are NULL