8076214: [Findbugs]sun.awt.datatransfer.SunClipboard.checkChange(long[]) may expose internal representation

Reviewed-by: azvegint, alexsch
This commit is contained in:
Sergey Bylokhov 2015-04-14 09:34:59 +03:00
parent e630663bbb
commit 95090a7507

View File

@ -414,7 +414,7 @@ public abstract class SunClipboard extends Clipboard
* @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;