mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Removed unnecessary SuppressWarnings.
This commit is contained in:
parent
cbfff6e9ba
commit
73f90ebc66
@ -92,7 +92,6 @@ public class PathConstraint implements Updatable {
|
||||
update();
|
||||
}
|
||||
|
||||
@SuppressWarnings("null")
|
||||
public void update () {
|
||||
Attachment attachment = target.attachment;
|
||||
if (!(attachment instanceof PathAttachment)) return;
|
||||
|
||||
@ -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.");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user