Skip to content

Commit

Permalink
sonarqube fixes. issue #1419.
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Sep 29, 2023
1 parent 4041554 commit 0ba9f17
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1051,11 +1051,8 @@ public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorExcepti
}
};

Toolkit.getDefaultToolkit().getSystemClipboard().setContents(transferable, new ClipboardOwner() {
@Override
public void lostOwnership(Clipboard clipboard, Transferable contents) {
log.debug("lost ownership of system clipboard");
}
Toolkit.getDefaultToolkit().getSystemClipboard().setContents(transferable, (Clipboard clipboard, Transferable contents) -> {
log.debug("lost ownership of system clipboard");
});

// Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
Expand Down

0 comments on commit 0ba9f17

Please sign in to comment.