Skip to content

Commit

Permalink
fix jruby warnings (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahorek authored Mar 20, 2024
1 parent bb52935 commit d885e9b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ext/nio4r/org/nio4r/ByteBuffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/
public class ByteBuffer extends RubyObject {
private static final long serialVersionUID = -6903439483039149324L;
private java.nio.ByteBuffer byteBuffer;
private transient java.nio.ByteBuffer byteBuffer;

public static RaiseException newOverflowError(ThreadContext context, String message) {
RubyClass klass = context.runtime.getModule("NIO").getClass("ByteBuffer").getClass("OverflowError");
Expand Down
4 changes: 2 additions & 2 deletions ext/nio4r/org/nio4r/Monitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

public class Monitor extends RubyObject {
private static final long serialVersionUID = -3733782997115074794L;
private SelectionKey key;
private transient SelectionKey key;
private RubyIO io;
private IRubyObject interests, selector, value, closed;
private transient IRubyObject interests, selector, value, closed;

public Monitor(final Ruby ruby, RubyClass rubyClass) {
super(ruby, rubyClass);
Expand Down
4 changes: 2 additions & 2 deletions ext/nio4r/org/nio4r/Selector.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

public class Selector extends RubyObject {
private static final long serialVersionUID = -14562818539414873L;
private java.nio.channels.Selector selector;
private transient java.nio.channels.Selector selector;
private HashMap<SelectableChannel,SelectionKey> cancelledKeys;
private volatile boolean wakeupFired;

Expand Down Expand Up @@ -234,7 +234,7 @@ private int doSelect(Ruby runtime, ThreadContext context, IRubyObject timeout) {

cancelKeys();
try {
context.getThread().beforeBlockingCall();
context.getThread().beforeBlockingCall(context);
if(timeout.isNil()) {
result = this.selector.select();
} else {
Expand Down

0 comments on commit d885e9b

Please sign in to comment.