src/solaris/classes/sun/awt/X11/MotifDnDConstants.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -161,11 +161,11 @@
}
XlibWrapper.XGrabServer(newDisplay);
try {
- XlibWrapper.XSetCloseDownMode(newDisplay, (int)XConstants.RetainPermanent);
+ XlibWrapper.XSetCloseDownMode(newDisplay, XConstants.RetainPermanent);
XSetWindowAttributes xwa = new XSetWindowAttributes();
try {
xwa.set_override_redirect(true);
@@ -433,11 +433,11 @@
static int getIndexForTargetList(long[] formats) throws XException {
assert XToolkit.isAWTLockHeldByCurrentThread();
if (formats.length > 0) {
// Make a defensive copy.
- formats = (long[])formats.clone();
+ formats = formats.clone();
Arrays.sort(formats);
}
// NOTE: getMotifWindow() should never be called if the server is