Skip to content

Commit

Permalink
TEST: Fix test failure on JDK 12+
Browse files Browse the repository at this point in the history
  • Loading branch information
uhm0311 committed Nov 30, 2023
1 parent b21b786 commit 087a491
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package net.spy.memcached.protocol;

import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.net.InetSocketAddress;
import java.util.LinkedList;
import java.util.List;
Expand All @@ -43,10 +42,6 @@ private Queue<Operation> getQueue(String queueFieldName, TCPMemcachedNodeImpl no
Field queueField = TCPMemcachedNodeImpl.class.getDeclaredField(queueFieldName);
queueField.setAccessible(true);

Field modifiersField = Field.class.getDeclaredField("modifiers");
modifiersField.setAccessible(true);
modifiersField.setInt(queueField, queueField.getModifiers() & ~Modifier.FINAL);

return (Queue<Operation>) queueField.get(node);
}

Expand Down

0 comments on commit 087a491

Please sign in to comment.