Skip to content

Commit

Permalink
Backport 5264881a1528444dfefbabec6f42596810f0ce07
Browse files Browse the repository at this point in the history
  • Loading branch information
duke committed Jun 19, 2023
1 parent 6c81bf5 commit 67f4db2
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,7 @@ protected void setContentsNative(Transferable contents) {
translateTransferable(contents, flavor, format);
publishClipboardData(format, bytes);
} catch (IOException e) {
// Fix 4696186: don't print exception if data with
// javaJVMLocalObjectMimeType failed to serialize.
// May remove this if-check when 5078787 is fixed.
if (!(flavor.isMimeTypeEqual(DataFlavor.javaJVMLocalObjectMimeType) &&
e instanceof java.io.NotSerializableException)) {
e.printStackTrace();
}
// Cannot be translated in this format, skip
}
}
} finally {
Expand Down

0 comments on commit 67f4db2

Please sign in to comment.