Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix jruby warnings #313

Merged
merged 1 commit into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading