Skip to content

Commit

Permalink
Fix failed java build (#3019)
Browse files Browse the repository at this point in the history
Fix Java compilation issues introduced by THRIFT-4847 in d4503a1
Also fix the failing spotlessCheck

---------

Co-authored-by: Mario Emmenlauer <mario@emmenlauer.de>
Co-authored-by: Christopher Tubbs <ctubbsii@apache.org>
  • Loading branch information
3 people authored Aug 14, 2024
1 parent 91565d4 commit a44c0c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ public FrameBuffer(

/**
* Sets the selection key (this is not thread safe).
*
* @param selectionKey the new key to set.
*/
public void setSelectionKey(SelectionKey selectionKey) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -637,11 +637,11 @@ private synchronized void rebuildSelector() {
SelectionKey newKey;
try {
if (attachment == null) {
newKey = channel.register(newSelector, interestOpts);
newKey = channel.register(newSelector, interestOps);
} else {
newKey = channel.register(newSelector, interestOpts, attachment);
newKey = channel.register(newSelector, interestOps, attachment);
if (attachment instanceof FrameBuffer) {
((FrameBuffer) attachment.setSelectionKey(newKey);
((FrameBuffer) attachment).setSelectionKey(newKey);
}
}
} catch (ClosedChannelException e) {
Expand Down

0 comments on commit a44c0c6

Please sign in to comment.