Adds annotations by contract of the interface

This commit is contained in:
thatsIch
2015-05-02 15:39:59 +02:00
parent 2eec5309ac
commit 875214c166
5 changed files with 20 additions and 9 deletions
+3 -1
View File
@@ -19,6 +19,8 @@
package appeng.me.cache.helpers;
import javax.annotation.Nonnull;
import net.minecraft.crash.CrashReportCategory;
import appeng.api.networking.IGridNode;
@@ -73,7 +75,7 @@ public class TickTracker implements Comparable<TickTracker>
}
@Override
public int compareTo( TickTracker t )
public int compareTo( @Nonnull TickTracker t )
{
int nextTick = (int) ( ( this.lastTick - this.host.getCurrentTick() ) + this.current_rate );
int ts_nextTick = (int) ( ( t.lastTick - this.host.getCurrentTick() ) + t.current_rate );