From 195b89f24c074285ce663cee96c34a9f14dc72cf Mon Sep 17 00:00:00 2001 From: Matsv Date: Sat, 6 Jan 2018 15:29:34 +0100 Subject: [PATCH] Change Sun's NotImplementedException to UnsupportedOperationException --- .../protocol1_9_3to1_9_1_2/chunks/ChunkSection1_9_1_2.java | 3 +-- .../protocol1_9to1_8/chunks/ChunkSection1_9to1_8.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9_3to1_9_1_2/chunks/ChunkSection1_9_1_2.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9_3to1_9_1_2/chunks/ChunkSection1_9_1_2.java index 07f019737..f0df40b36 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9_3to1_9_1_2/chunks/ChunkSection1_9_1_2.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9_3to1_9_1_2/chunks/ChunkSection1_9_1_2.java @@ -3,7 +3,6 @@ package us.myles.ViaVersion.protocols.protocol1_9_3to1_9_1_2.chunks; import com.google.common.collect.Lists; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; -import sun.reflect.generics.reflectiveObjects.NotImplementedException; import us.myles.ViaVersion.api.minecraft.chunks.ChunkSection; import us.myles.ViaVersion.api.minecraft.chunks.NibbleArray; import us.myles.ViaVersion.api.type.Type; @@ -48,7 +47,7 @@ public class ChunkSection1_9_1_2 implements ChunkSection { @Override public void setFlatBlock(int x, int y, int z, int type) { - throw new NotImplementedException(); + throw new UnsupportedOperationException(); } public int getBlockId(int x, int y, int z) { diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/chunks/ChunkSection1_9to1_8.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/chunks/ChunkSection1_9to1_8.java index 796e0f221..ee54b293c 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/chunks/ChunkSection1_9to1_8.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/chunks/ChunkSection1_9to1_8.java @@ -3,7 +3,6 @@ package us.myles.ViaVersion.protocols.protocol1_9to1_8.chunks; import com.google.common.collect.Lists; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; -import sun.reflect.generics.reflectiveObjects.NotImplementedException; import us.myles.ViaVersion.api.minecraft.chunks.ChunkSection; import us.myles.ViaVersion.api.minecraft.chunks.NibbleArray; import us.myles.ViaVersion.api.type.Type; @@ -49,7 +48,7 @@ public class ChunkSection1_9to1_8 implements ChunkSection { @Override public void setFlatBlock(int x, int y, int z, int type) { - throw new NotImplementedException(); + throw new UnsupportedOperationException(); } public int getBlockId(int x, int y, int z) {