8076214: [Findbugs]sun.awt.datatransfer.SunClipboard.checkChange(long[]) may expose internal representation
Reviewed-by: azvegint, alexsch
--- a/jdk/src/java.desktop/share/classes/sun/awt/datatransfer/SunClipboard.java Mon Apr 13 17:06:04 2015 -0700
+++ b/jdk/src/java.desktop/share/classes/sun/awt/datatransfer/SunClipboard.java Tue Apr 14 09:34:59 2015 +0300
@@ -414,7 +414,7 @@
* @param formats data formats that have just been retrieved from
* this clipboard
*/
- public final void checkChange(final long[] formats) {
+ protected final void checkChange(final long[] formats) {
if (Arrays.equals(formats, currentFormats)) {
// we've been able to successfully get available on the clipboard
// DataFlavors this and previous time and they are coincident;