Remove empty try/catch

MYC-Refactor
Hammy 3 years ago
parent caec66e5fa
commit 79763cd19a

@ -73,11 +73,7 @@ class WindowsOrUnixClipboardListener extends ClipboardListener implements Runnab
} }
void regainOwnership(Clipboard clipboard, Transferable newClipboardContents) { void regainOwnership(Clipboard clipboard, Transferable newClipboardContents) {
try { clipboard.setContents(newClipboardContents, this);
clipboard.setContents(newClipboardContents, this);
} catch (Throwable ignored) {
}
} }
@Override @Override
@ -111,6 +107,7 @@ class WindowsOrUnixClipboardListener extends ClipboardListener implements Runnab
} catch (InterruptedException ie) { } catch (InterruptedException ie) {
ie.printStackTrace(); ie.printStackTrace();
} }
clipboard.setContents(new StringSelection(stringContent), this); clipboard.setContents(new StringSelection(stringContent), this);
} }
@ -121,6 +118,7 @@ class WindowsOrUnixClipboardListener extends ClipboardListener implements Runnab
} catch (InterruptedException ie) { } catch (InterruptedException ie) {
ie.printStackTrace(); ie.printStackTrace();
} }
clipboard.setContents(new TransferableImage(imageContent), this); clipboard.setContents(new TransferableImage(imageContent), this);
} }
@ -131,6 +129,7 @@ class WindowsOrUnixClipboardListener extends ClipboardListener implements Runnab
} catch (InterruptedException ie) { } catch (InterruptedException ie) {
ie.printStackTrace(); ie.printStackTrace();
} }
clipboard.setContents(new TransferableFileList(fileContent), this); clipboard.setContents(new TransferableFileList(fileContent), this);
} }

Loading…
Cancel
Save