From 7069966f5f692527aebeed24289e16b4c690ed25 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Mon, 13 Feb 2017 04:39:42 +1100 Subject: [PATCH] Fix bad cast --- .../java/com/boydti/fawe/object/visitor/Fast2DIterator.java | 2 +- .../java/com/boydti/fawe/object/visitor/FastChunkIterator.java | 2 +- .../main/java/com/boydti/fawe/object/visitor/FastIterator.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/boydti/fawe/object/visitor/Fast2DIterator.java b/core/src/main/java/com/boydti/fawe/object/visitor/Fast2DIterator.java index d7946e71..44f75305 100644 --- a/core/src/main/java/com/boydti/fawe/object/visitor/Fast2DIterator.java +++ b/core/src/main/java/com/boydti/fawe/object/visitor/Fast2DIterator.java @@ -26,7 +26,7 @@ public class Fast2DIterator implements Iterable { } public Fast2DIterator(@Nonnull Iterable iter, @Nullable HasFaweQueue editSession) { - this(iter, (FaweQueue) editSession != null ? editSession.getQueue() : null); + this(iter, (FaweQueue) (editSession != null ? editSession.getQueue() : null)); } public Fast2DIterator(@Nonnull Iterable iter, @Nullable FaweQueue faweQueue) { diff --git a/core/src/main/java/com/boydti/fawe/object/visitor/FastChunkIterator.java b/core/src/main/java/com/boydti/fawe/object/visitor/FastChunkIterator.java index 26406a06..a3a800a7 100644 --- a/core/src/main/java/com/boydti/fawe/object/visitor/FastChunkIterator.java +++ b/core/src/main/java/com/boydti/fawe/object/visitor/FastChunkIterator.java @@ -26,7 +26,7 @@ public class FastChunkIterator implements Iterable { } public FastChunkIterator(@Nonnull Iterable iter, @Nullable HasFaweQueue editSession) { - this(iter, (FaweQueue) editSession != null ? editSession.getQueue() : null); + this(iter, (FaweQueue) (editSession != null ? editSession.getQueue() : null)); } public FastChunkIterator(@Nonnull Iterable iter, @Nullable FaweQueue faweQueue) { diff --git a/core/src/main/java/com/boydti/fawe/object/visitor/FastIterator.java b/core/src/main/java/com/boydti/fawe/object/visitor/FastIterator.java index 6983ab4c..1402c294 100644 --- a/core/src/main/java/com/boydti/fawe/object/visitor/FastIterator.java +++ b/core/src/main/java/com/boydti/fawe/object/visitor/FastIterator.java @@ -26,7 +26,7 @@ public class FastIterator implements Iterable { } public FastIterator(@Nonnull Iterable iter, @Nullable HasFaweQueue editSession) { - this(iter, (FaweQueue) editSession != null ? editSession.getQueue() : null); + this(iter, (FaweQueue) (editSession != null ? editSession.getQueue() : null)); } public FastIterator(@Nonnull Iterable iter, @Nullable FaweQueue faweQueue) {