diff --git a/lib/src/main/java/com/github/shautvast/contiguous/ContiguousList.java b/lib/src/main/java/com/github/shautvast/contiguous/ContiguousList.java index c0d67c1..3d30811 100644 --- a/lib/src/main/java/com/github/shautvast/contiguous/ContiguousList.java +++ b/lib/src/main/java/com/github/shautvast/contiguous/ContiguousList.java @@ -4,7 +4,6 @@ import com.github.shautvast.reflective.MetaClass; import com.github.shautvast.reflective.MetaMethod; import com.github.shautvast.reflective.Reflective; -import java.lang.invoke.MethodHandles; import java.lang.reflect.InvocationTargetException; import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; @@ -130,14 +129,6 @@ public class ContiguousList extends NotImplementedList implements List }); } - private static MethodHandles.Lookup getLookup(Class type) { - try { - return MethodHandles.privateLookupIn(type, MethodHandles.lookup()); - } catch (IllegalAccessException e) { - throw new RuntimeException(e); - } - } - @Override @SuppressWarnings("Contract") public boolean add(E element) { @@ -306,8 +297,7 @@ public class ContiguousList extends NotImplementedList implements List private static String quote(String out) { StringBuilder s = new StringBuilder(out.length() + 2); - out = s.append("\"").append(out).append("\"").toString(); - return out; + return s.append("\"").append(out).append("\"").toString(); } /*