8076214: [Findbugs]sun.awt.datatransfer.SunClipboard.checkChange(long[]) may expose internal representation
authorserb
Tue, 14 Apr 2015 09:34:59 +0300
changeset 30457 8934b8474110
parent 30456 2a753e3fc714
child 30458 e8bb8c0f25ba
8076214: [Findbugs]sun.awt.datatransfer.SunClipboard.checkChange(long[]) may expose internal representation Reviewed-by: azvegint, alexsch
jdk/src/java.desktop/share/classes/sun/awt/datatransfer/SunClipboard.java
--- 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;