mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-28 05:35:28 +01:00
Fixed a couple of small bugs.
This commit is contained in:
parent
4cd5d04cae
commit
3a8a4d15cf
@ -73,6 +73,15 @@
|
|||||||
<target>1.6</target>
|
<target>1.6</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>findbugs-maven-plugin</artifactId>
|
||||||
|
<version>2.5.2</version>
|
||||||
|
<configuration>
|
||||||
|
<threshold>High</threshold>
|
||||||
|
<effort>Default</effort>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<profiles>
|
<profiles>
|
||||||
|
@ -74,9 +74,24 @@
|
|||||||
<target>1.6</target>
|
<target>1.6</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<reporting>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>findbugs-maven-plugin</artifactId>
|
||||||
|
<version>2.5.2</version>
|
||||||
|
<configuration>
|
||||||
|
<threshold>High</threshold>
|
||||||
|
<effort>Default</effort>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</reporting>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
<profile>
|
<profile>
|
||||||
<id>release-sign-artifacts</id>
|
<id>release-sign-artifacts</id>
|
||||||
|
@ -95,8 +95,8 @@ public class AsyncMarker implements Serializable, Comparable<AsyncMarker> {
|
|||||||
private Object processingLock = new Object();
|
private Object processingLock = new Object();
|
||||||
|
|
||||||
// Used to identify the asynchronous worker
|
// Used to identify the asynchronous worker
|
||||||
private AsyncListenerHandler listenerHandler;
|
private transient AsyncListenerHandler listenerHandler;
|
||||||
private int workerID;
|
private transient int workerID;
|
||||||
|
|
||||||
// Determine if Minecraft processes this packet asynchronously
|
// Determine if Minecraft processes this packet asynchronously
|
||||||
private static Method isMinecraftAsync;
|
private static Method isMinecraftAsync;
|
||||||
|
@ -33,7 +33,7 @@ public class ListeningWhitelist {
|
|||||||
/**
|
/**
|
||||||
* A whitelist with no packets - indicates that the listener shouldn't observe any packets.
|
* A whitelist with no packets - indicates that the listener shouldn't observe any packets.
|
||||||
*/
|
*/
|
||||||
public static ListeningWhitelist EMPTY_WHITELIST = new ListeningWhitelist(ListenerPriority.LOW);
|
public static final ListeningWhitelist EMPTY_WHITELIST = new ListeningWhitelist(ListenerPriority.LOW);
|
||||||
|
|
||||||
private ListenerPriority priority;
|
private ListenerPriority priority;
|
||||||
private Set<Integer> whitelist;
|
private Set<Integer> whitelist;
|
||||||
|
@ -40,7 +40,7 @@ public class PacketConstructor {
|
|||||||
* <p>
|
* <p>
|
||||||
* Remember to call withPacket().
|
* Remember to call withPacket().
|
||||||
*/
|
*/
|
||||||
public static PacketConstructor DEFAULT = new PacketConstructor(null);
|
public static final PacketConstructor DEFAULT = new PacketConstructor(null);
|
||||||
|
|
||||||
// The constructor method that's actually responsible for creating the packet
|
// The constructor method that's actually responsible for creating the packet
|
||||||
private Constructor<?> constructorMethod;
|
private Constructor<?> constructorMethod;
|
||||||
|
@ -36,7 +36,7 @@ public class FuzzyReflection {
|
|||||||
/**
|
/**
|
||||||
* Matches a Minecraft object.
|
* Matches a Minecraft object.
|
||||||
*/
|
*/
|
||||||
public static String MINECRAFT_OBJECT = "net\\.minecraft(\\.\\w+)+";
|
public static final String MINECRAFT_OBJECT = "net\\.minecraft(\\.\\w+)+";
|
||||||
|
|
||||||
// The class we're actually representing
|
// The class we're actually representing
|
||||||
private Class<?> source;
|
private Class<?> source;
|
||||||
|
@ -42,7 +42,7 @@ public class CollectionGenerator implements InstanceProvider {
|
|||||||
/**
|
/**
|
||||||
* Shared instance of this generator.
|
* Shared instance of this generator.
|
||||||
*/
|
*/
|
||||||
public static CollectionGenerator INSTANCE = new CollectionGenerator();
|
public static final CollectionGenerator INSTANCE = new CollectionGenerator();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object create(@Nullable Class<?> type) {
|
public Object create(@Nullable Class<?> type) {
|
||||||
|
@ -35,7 +35,7 @@ public class DefaultInstances {
|
|||||||
/**
|
/**
|
||||||
* Standard default instance provider.
|
* Standard default instance provider.
|
||||||
*/
|
*/
|
||||||
public static DefaultInstances DEFAULT = DefaultInstances.fromArray(
|
public static final DefaultInstances DEFAULT = DefaultInstances.fromArray(
|
||||||
PrimitiveGenerator.INSTANCE, CollectionGenerator.INSTANCE);
|
PrimitiveGenerator.INSTANCE, CollectionGenerator.INSTANCE);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user