United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6773363 : Fix bad copyrights in src/share/classes/java/awt/dnd and test/javax/script/Test3.java

Details
Type:
Bug
Submit Date:
2008-11-19
Status:
Resolved
Updated Date:
2011-01-21
Project Name:
JDK
Resolved Date:
2008-11-19
Component:
client-libs
OS:
generic
Sub-Component:
java.awt
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
OpenJDK6
Fixed Versions:
OpenJDK6 (b14)

Related Reports
Backport:
Relates:
Relates:

Sub Tasks

Description
The fix of the antibug 5102378 added import statements into the copyright block of two dnd files; these stray (and ineffective!) imports should be removed.

jdk/src/share/classes/java/awt/dnd/DragSource.java
jdk/src/share/classes/java/awt/dnd/DragSourceContext.java

The file

jdk/test/javax/script/Test3.java 

has an extra blank line.

                                    

Comments
EVALUATION

Yes, should be fixed.
                                     
2008-11-19
SUGGESTED FIX

--- old/src/share/classes/java/awt/dnd/DragSource.java	Tue Nov 18 22:18:49 2008
+++ new/src/share/classes/java/awt/dnd/DragSource.java	Tue Nov 18 22:18:49 2008
@@ -7,10 +7,6 @@
  * published by the Free Software Foundation.  Sun designates this
  * particular file as subject to the "Classpath" exception as provided
  * by Sun in the LICENSE file that accompanied this code.
-import java.awt.AWTError;
-import java.awt.AWTException;
-import java.awt.event.InputEvent;
-import java.awt.AWTPermission;
  *
  * This code is distributed in the hope that it will be useful, but WITHOUT
  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
@@ -22,7 +18,6 @@
  * 2 along with this work; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  *
-import java.io.Serializable;
  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  * CA 95054 USA or visit www.sun.com if you need additional information or
  * have any questions.
--- old/src/share/classes/java/awt/dnd/DragSourceContext.java	Tue Nov 18 22:18:52 2008
+++ new/src/share/classes/java/awt/dnd/DragSourceContext.java	Tue Nov 18 22:18:52 2008
@@ -7,7 +7,6 @@
  * published by the Free Software Foundation.  Sun designates this
  * particular file as subject to the "Classpath" exception as provided
  * by Sun in the LICENSE file that accompanied this code.
-import java.awt.event.InputEvent;
  *
  * This code is distributed in the hope that it will be useful, but WITHOUT
  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
@@ -17,11 +16,6 @@
  *
  * You should have received a copy of the GNU General Public License version
  * 2 along with this work; if not, write to the Free Software Foundation,
-import java.awt.dnd.DragGestureEvent;
-import java.awt.dnd.DragSource;
-import java.awt.dnd.DragSourceListener;
-import java.awt.dnd.InvalidDnDOperationException;
-
  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  *
  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
--- old/test/javax/script/Test3.java	Tue Nov 18 22:18:53 2008
+++ new/test/javax/script/Test3.java	Tue Nov 18 22:18:53 2008
@@ -4,7 +4,6 @@
  *
  * 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.
  *
  * This code is distributed in the hope that it will be useful, but WITHOUT
                                     
2008-11-19



Hardware and Software, Engineered to Work Together