From 73f90ebc66ae593373464a03bf79e65e63d5f6cb Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Thu, 13 Feb 2020 22:26:16 +0100 Subject: [PATCH] Removed unnecessary SuppressWarnings. --- .../src/com/esotericsoftware/spine/PathConstraint.java | 1 - .../src/com/esotericsoftware/spine/SkeletonRenderer.java | 2 -- 2 files changed, 3 deletions(-) diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/PathConstraint.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/PathConstraint.java index 6bd5fad86..bdcd5191a 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/PathConstraint.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/PathConstraint.java @@ -92,7 +92,6 @@ public class PathConstraint implements Updatable { update(); } - @SuppressWarnings("null") public void update () { Attachment attachment = target.attachment; if (!(attachment instanceof PathAttachment)) return; diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonRenderer.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonRenderer.java index 879f7d62c..1e8e251f1 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonRenderer.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonRenderer.java @@ -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.");