Removed unnecessary SuppressWarnings.

This commit is contained in:
NathanSweet 2020-02-13 22:26:16 +01:00
parent cbfff6e9ba
commit 73f90ebc66
2 changed files with 0 additions and 3 deletions

View File

@ -92,7 +92,6 @@ public class PathConstraint implements Updatable {
update();
}
@SuppressWarnings("null")
public void update () {
Attachment attachment = target.attachment;
if (!(attachment instanceof PathAttachment)) return;

View File

@ -150,7 +150,6 @@ public class SkeletonRenderer {
* This method may change the batch's {@link Batch#setBlendFunctionSeparate(int, int, int, int) blending function}. The
* previous blend function is not restored, since that could result in unnecessary flushes, depending on what is rendered
* next. */
@SuppressWarnings("null")
public void draw (PolygonSpriteBatch batch, Skeleton skeleton) {
if (batch == null) throw new IllegalArgumentException("batch cannot be null.");
if (skeleton == null) throw new IllegalArgumentException("skeleton cannot be null.");
@ -273,7 +272,6 @@ public class SkeletonRenderer {
* This method may change the batch's {@link Batch#setBlendFunctionSeparate(int, int, int, int) blending function}. The
* previous blend function is not restored, since that could result in unnecessary flushes, depending on what is rendered
* next. */
@SuppressWarnings("null")
public void draw (TwoColorPolygonBatch batch, Skeleton skeleton) {
if (batch == null) throw new IllegalArgumentException("batch cannot be null.");
if (skeleton == null) throw new IllegalArgumentException("skeleton cannot be null.");