Archiviert
13
0

Fixed a couple of small bugs.

Dieser Commit ist enthalten in:
Kristian S. Stangeland 2012-10-17 01:19:06 +02:00
Ursprung 4cd5d04cae
Commit 3a8a4d15cf
8 geänderte Dateien mit 31 neuen und 7 gelöschten Zeilen

Datei anzeigen

@ -73,6 +73,15 @@
<target>1.6</target>
</configuration>
</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>
</build>
<profiles>

Datei anzeigen

@ -74,9 +74,24 @@
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</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>
<profile>
<id>release-sign-artifacts</id>

Datei anzeigen

@ -95,8 +95,8 @@ public class AsyncMarker implements Serializable, Comparable<AsyncMarker> {
private Object processingLock = new Object();
// Used to identify the asynchronous worker
private AsyncListenerHandler listenerHandler;
private int workerID;
private transient AsyncListenerHandler listenerHandler;
private transient int workerID;
// Determine if Minecraft processes this packet asynchronously
private static Method isMinecraftAsync;

Datei anzeigen

@ -33,7 +33,7 @@ public class ListeningWhitelist {
/**
* 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 Set<Integer> whitelist;

Datei anzeigen

@ -40,7 +40,7 @@ public class PacketConstructor {
* <p>
* 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
private Constructor<?> constructorMethod;

Datei anzeigen

@ -36,7 +36,7 @@ public class FuzzyReflection {
/**
* 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
private Class<?> source;

Datei anzeigen

@ -42,7 +42,7 @@ public class CollectionGenerator implements InstanceProvider {
/**
* Shared instance of this generator.
*/
public static CollectionGenerator INSTANCE = new CollectionGenerator();
public static final CollectionGenerator INSTANCE = new CollectionGenerator();
@Override
public Object create(@Nullable Class<?> type) {

Datei anzeigen

@ -35,7 +35,7 @@ public class DefaultInstances {
/**
* Standard default instance provider.
*/
public static DefaultInstances DEFAULT = DefaultInstances.fromArray(
public static final DefaultInstances DEFAULT = DefaultInstances.fromArray(
PrimitiveGenerator.INSTANCE, CollectionGenerator.INSTANCE);
/**