diff --git a/jdk/src/share/classes/com/sun/imageio/plugins/gif/GIFImageReader.java b/jdk/src/share/classes/com/sun/imageio/plugins/gif/GIFImageReader.java index b41450257a0..ae2bcb56a20 100644 --- a/jdk/src/share/classes/com/sun/imageio/plugins/gif/GIFImageReader.java +++ b/jdk/src/share/classes/com/sun/imageio/plugins/gif/GIFImageReader.java @@ -504,7 +504,7 @@ public class GIFImageReader extends ImageReader { } // Found position of metadata for image 0 - imageStartPosition.add(new Long(stream.getStreamPosition())); + imageStartPosition.add(Long.valueOf(stream.getStreamPosition())); } catch (IOException e) { throw new IIOException("I/O error reading header!", e); } diff --git a/jdk/src/share/classes/com/sun/imageio/plugins/gif/GIFWritableImageMetadata.java b/jdk/src/share/classes/com/sun/imageio/plugins/gif/GIFWritableImageMetadata.java index 66d647f6856..58d819f11ea 100644 --- a/jdk/src/share/classes/com/sun/imageio/plugins/gif/GIFWritableImageMetadata.java +++ b/jdk/src/share/classes/com/sun/imageio/plugins/gif/GIFWritableImageMetadata.java @@ -98,7 +98,7 @@ class GIFWritableImageMetadata extends GIFImageMetadata { try { return data.getBytes("ISO-8859-1"); } catch (UnsupportedEncodingException e) { - return (new String("")).getBytes(); + return "".getBytes(); } } diff --git a/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKColorChooserPanel.java b/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKColorChooserPanel.java index f5b671e7cd4..ba1c8da7958 100644 --- a/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKColorChooserPanel.java +++ b/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKColorChooserPanel.java @@ -328,7 +328,7 @@ class GTKColorChooserPanel extends AbstractColorChooserPanel implements setHSB(hue, saturation, brightness); if (update) { settingColor = true; - hueSpinner.setValue(new Integer((int)(hue * 360))); + hueSpinner.setValue(Integer.valueOf((int)(hue * 360))); settingColor = false; } } @@ -376,8 +376,8 @@ class GTKColorChooserPanel extends AbstractColorChooserPanel implements setHSB(hue, s, b); if (update) { settingColor = true; - saturationSpinner.setValue(new Integer((int)(s * 255))); - valueSpinner.setValue(new Integer((int)(b * 255))); + saturationSpinner.setValue(Integer.valueOf((int)(s * 255))); + valueSpinner.setValue(Integer.valueOf((int)(b * 255))); settingColor = false; } } @@ -391,9 +391,9 @@ class GTKColorChooserPanel extends AbstractColorChooserPanel implements setColor(color, false, true, true); settingColor = true; - hueSpinner.setValue(new Integer((int)(hue * 360))); - saturationSpinner.setValue(new Integer((int)(saturation * 255))); - valueSpinner.setValue(new Integer((int)(brightness * 255))); + hueSpinner.setValue(Integer.valueOf((int)(hue * 360))); + saturationSpinner.setValue(Integer.valueOf((int)(saturation * 255))); + valueSpinner.setValue(Integer.valueOf((int)(brightness * 255))); settingColor = false; } @@ -409,9 +409,9 @@ class GTKColorChooserPanel extends AbstractColorChooserPanel implements setColor(color, false, false, true); settingColor = true; - redSpinner.setValue(new Integer(color.getRed())); - greenSpinner.setValue(new Integer(color.getGreen())); - blueSpinner.setValue(new Integer(color.getBlue())); + redSpinner.setValue(Integer.valueOf(color.getRed())); + greenSpinner.setValue(Integer.valueOf(color.getGreen())); + blueSpinner.setValue(Integer.valueOf(color.getBlue())); settingColor = false; } @@ -454,13 +454,13 @@ class GTKColorChooserPanel extends AbstractColorChooserPanel implements colorNameTF.setText("#" + hexString.substring(1)); if (updateSpinners) { - redSpinner.setValue(new Integer(color.getRed())); - greenSpinner.setValue(new Integer(color.getGreen())); - blueSpinner.setValue(new Integer(color.getBlue())); + redSpinner.setValue(Integer.valueOf(color.getRed())); + greenSpinner.setValue(Integer.valueOf(color.getGreen())); + blueSpinner.setValue(Integer.valueOf(color.getBlue())); - hueSpinner.setValue(new Integer((int)(hue * 360))); - saturationSpinner.setValue(new Integer((int)(saturation * 255))); - valueSpinner.setValue(new Integer((int)(brightness * 255))); + hueSpinner.setValue(Integer.valueOf((int)(hue * 360))); + saturationSpinner.setValue(Integer.valueOf((int)(saturation * 255))); + valueSpinner.setValue(Integer.valueOf((int)(brightness * 255))); } settingColor = false; } diff --git a/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKFileChooserUI.java b/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKFileChooserUI.java index d338c08d6fd..a640862c50c 100644 --- a/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKFileChooserUI.java +++ b/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKFileChooserUI.java @@ -97,14 +97,11 @@ class GTKFileChooserUI extends SynthFileChooserUI { private static final Dimension hstrut3 = new Dimension(3, 1); private static final Dimension vstrut10 = new Dimension(1, 10); - private static final Insets insets = new Insets(10, 10, 10, 10); - private static Dimension prefListSize = new Dimension(75, 150); private static Dimension PREF_SIZE = new Dimension(435, 360); private static Dimension MIN_SIZE = new Dimension(200, 300); - private static Dimension PREF_ACC_SIZE = new Dimension(10, 10); private static Dimension ZERO_ACC_SIZE = new Dimension(1, 1); private static Dimension MAX_SIZE = new Dimension(Short.MAX_VALUE, Short.MAX_VALUE); @@ -125,7 +122,6 @@ class GTKFileChooserUI extends SynthFileChooserUI { private JPanel bottomButtonPanel; private GTKDirectoryModel model = null; private Action newFolderAction; - private JPanel interior; private boolean readOnly; private boolean showDirectoryIcons; private boolean showFileIcons; @@ -710,15 +706,19 @@ class GTKFileChooserUI extends SynthFileChooserUI { bottomButtonPanel.setName("GTKFileChooser.bottomButtonPanel"); align(bottomButtonPanel); + JPanel pnButtons = new JPanel(new GridLayout(1, 2, 5, 0)); + JButton cancelButton = getCancelButton(fc); align(cancelButton); cancelButton.setMargin(buttonMargin); - bottomButtonPanel.add(cancelButton); + pnButtons.add(cancelButton); - JButton approveButton = getApproveButton(fc);; + JButton approveButton = getApproveButton(fc); align(approveButton); approveButton.setMargin(buttonMargin); - bottomButtonPanel.add(approveButton); + pnButtons.add(approveButton); + + bottomButtonPanel.add(pnButtons); if (fc.getControlButtonsAreShown()) { fc.add(bottomButtonPanel, BorderLayout.SOUTH); @@ -1108,7 +1108,7 @@ class GTKFileChooserUI extends SynthFileChooserUI { // Get the canonical (full) path. This has the side // benefit of removing extraneous chars from the path, // for example /foo/bar/ becomes /foo/bar - File canonical = null; + File canonical; try { canonical = fsv.createFileObject(ShellFolder.getNormalizedFile(directory).getPath()); } catch (IOException e) { diff --git a/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java b/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java index b4f435798a1..7fd7bde45a6 100644 --- a/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java +++ b/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java @@ -336,7 +336,7 @@ public class GTKLookAndFeel extends SynthLookAndFeel { // populate the table with the values from basic. super.initComponentDefaults(table); - Integer zero = new Integer(0); + Integer zero = Integer.valueOf(0); Object zeroBorder = new sun.swing.SwingLazyValue( "javax.swing.plaf.BorderUIResource$EmptyBorderUIResource", new Object[] {zero, zero, zero, zero}); @@ -371,7 +371,7 @@ public class GTKLookAndFeel extends SynthLookAndFeel { int vProgWidth = 22 - (progXThickness * 2); int vProgHeight = 80 - (progYThickness * 2); - Integer caretBlinkRate = new Integer(500); + Integer caretBlinkRate = Integer.valueOf(500); Insets zeroInsets = new InsetsUIResource(0, 0, 0, 0); Double defaultCaretAspectRatio = new Double(0.025); @@ -540,7 +540,7 @@ public class GTKLookAndFeel extends SynthLookAndFeel { } Object[] defaults = new Object[] { - "ArrowButton.size", new Integer(13), + "ArrowButton.size", Integer.valueOf(13), "Button.defaultButtonFollowsFocus", Boolean.FALSE, @@ -893,8 +893,8 @@ public class GTKLookAndFeel extends SynthLookAndFeel { "ScrollBar.squareButtons", Boolean.FALSE, - "ScrollBar.thumbHeight", new Integer(14), - "ScrollBar.width", new Integer(16), + "ScrollBar.thumbHeight", Integer.valueOf(14), + "ScrollBar.width", Integer.valueOf(16), "ScrollBar.minimumThumbSize", new Dimension(8, 8), "ScrollBar.maximumThumbSize", new Dimension(4096, 4096), "ScrollBar.allowsAbsolutePositioning", Boolean.TRUE, @@ -954,12 +954,12 @@ public class GTKLookAndFeel extends SynthLookAndFeel { "Separator.insets", zeroInsets, - "Separator.thickness", new Integer(2), + "Separator.thickness", Integer.valueOf(2), "Slider.paintValue", Boolean.TRUE, - "Slider.thumbWidth", new Integer(30), - "Slider.thumbHeight", new Integer(14), + "Slider.thumbWidth", Integer.valueOf(30), + "Slider.thumbHeight", Integer.valueOf(14), "Slider.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "RIGHT", "positiveUnitIncrement", @@ -982,7 +982,7 @@ public class GTKLookAndFeel extends SynthLookAndFeel { "LEFT", "positiveUnitIncrement", "KP_LEFT", "positiveUnitIncrement", }), - + "Slider.onlyLeftMouseButtonDrag", Boolean.FALSE, "Spinner.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { @@ -1013,9 +1013,9 @@ public class GTKLookAndFeel extends SynthLookAndFeel { }), - "SplitPane.size", new Integer(7), - "SplitPane.oneTouchOffset", new Integer(2), - "SplitPane.oneTouchButtonSize", new Integer(5), + "SplitPane.size", Integer.valueOf(7), + "SplitPane.oneTouchOffset", Integer.valueOf(2), + "SplitPane.oneTouchButtonSize", Integer.valueOf(5), "SplitPane.supportsOneTouchButtons", Boolean.FALSE, @@ -1223,13 +1223,13 @@ public class GTKLookAndFeel extends SynthLookAndFeel { "ToolTip.font", new FontLazyValue(Region.TOOL_TIP), - "Tree.padding", new Integer(4), + "Tree.padding", Integer.valueOf(4), "Tree.background", tableBg, "Tree.drawHorizontalLines", Boolean.FALSE, "Tree.drawVerticalLines", Boolean.FALSE, - "Tree.rowHeight", new Integer(-1), + "Tree.rowHeight", Integer.valueOf(-1), "Tree.scrollsOnExpand", Boolean.FALSE, - "Tree.expanderSize", new Integer(10), + "Tree.expanderSize", Integer.valueOf(10), "Tree.repaintWholeRow", Boolean.TRUE, "Tree.closedIcon", null, "Tree.leafIcon", null, @@ -1240,8 +1240,8 @@ public class GTKLookAndFeel extends SynthLookAndFeel { "Tree.collapsedIcon", new GTKStyle.GTKLazyValue( "com.sun.java.swing.plaf.gtk.GTKIconFactory", "getTreeCollapsedIcon"), - "Tree.leftChildIndent", new Integer(2), - "Tree.rightChildIndent", new Integer(12), + "Tree.leftChildIndent", Integer.valueOf(2), + "Tree.rightChildIndent", Integer.valueOf(12), "Tree.scrollsHorizontallyAndVertically", Boolean.FALSE, "Tree.drawsFocusBorder", Boolean.TRUE, "Tree.focusInputMap", diff --git a/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java b/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java index 0d008907248..4f6e42c784c 100644 --- a/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java +++ b/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java @@ -851,7 +851,7 @@ class GTKStyle extends SynthStyle implements GTKConstants { int focusLineWidth = getClassSpecificIntValue(context, "focus-line-width", 0); if (value == null && focusLineWidth > 0) { - value = new Integer(16 + 2 * focusLineWidth); + value = Integer.valueOf(16 + 2 * focusLineWidth); } } return value; @@ -975,12 +975,12 @@ class GTKStyle extends SynthStyle implements GTKConstants { private static void initIconTypeMap() { ICON_TYPE_MAP = new HashMap(); - ICON_TYPE_MAP.put("gtk-menu", new Integer(1)); - ICON_TYPE_MAP.put("gtk-small-toolbar", new Integer(2)); - ICON_TYPE_MAP.put("gtk-large-toolbar", new Integer(3)); - ICON_TYPE_MAP.put("gtk-button", new Integer(4)); - ICON_TYPE_MAP.put("gtk-dnd", new Integer(5)); - ICON_TYPE_MAP.put("gtk-dialog", new Integer(6)); + ICON_TYPE_MAP.put("gtk-menu", Integer.valueOf(1)); + ICON_TYPE_MAP.put("gtk-small-toolbar", Integer.valueOf(2)); + ICON_TYPE_MAP.put("gtk-large-toolbar", Integer.valueOf(3)); + ICON_TYPE_MAP.put("gtk-button", Integer.valueOf(4)); + ICON_TYPE_MAP.put("gtk-dnd", Integer.valueOf(5)); + ICON_TYPE_MAP.put("gtk-dialog", Integer.valueOf(6)); } } diff --git a/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/Metacity.java b/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/Metacity.java index 274ac510c0b..e6117989134 100644 --- a/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/Metacity.java +++ b/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/Metacity.java @@ -178,7 +178,7 @@ class Metacity implements SynthConstants { name = child.getNodeName(); Object value = null; if ("distance".equals(name)) { - value = new Integer(getIntAttr(child, "value", 0)); + value = Integer.valueOf(getIntAttr(child, "value", 0)); } else if ("border".equals(name)) { value = new Insets(getIntAttr(child, "top", 0), getIntAttr(child, "left", 0), @@ -808,7 +808,7 @@ class Metacity implements SynthConstants { protected void setFrameGeometry(JComponent titlePane, Map gm) { this.frameGeometry = gm; if (getInt("top_height") == 0 && titlePane != null) { - gm.put("top_height", new Integer(titlePane.getHeight())); + gm.put("top_height", Integer.valueOf(titlePane.getHeight())); } } diff --git a/jdk/src/share/classes/com/sun/java/swing/plaf/motif/MotifGraphicsUtils.java b/jdk/src/share/classes/com/sun/java/swing/plaf/motif/MotifGraphicsUtils.java index d6783e7375d..31425407792 100644 --- a/jdk/src/share/classes/com/sun/java/swing/plaf/motif/MotifGraphicsUtils.java +++ b/jdk/src/share/classes/com/sun/java/swing/plaf/motif/MotifGraphicsUtils.java @@ -225,15 +225,15 @@ public class MotifGraphicsUtils implements SwingConstants if(b.getIcon() != null) { Icon icon; if(!model.isEnabled()) { - icon = (Icon) b.getDisabledIcon(); + icon = b.getDisabledIcon(); } else if(model.isPressed() && model.isArmed()) { - icon = (Icon) b.getPressedIcon(); + icon = b.getPressedIcon(); if(icon == null) { // Use default icon - icon = (Icon) b.getIcon(); + icon = b.getIcon(); } } else { - icon = (Icon) b.getIcon(); + icon = b.getIcon(); } if (icon!=null) { diff --git a/jdk/src/share/classes/com/sun/java/swing/plaf/motif/MotifInternalFrameTitlePane.java b/jdk/src/share/classes/com/sun/java/swing/plaf/motif/MotifInternalFrameTitlePane.java index 251555a592f..737a36d2eb5 100644 --- a/jdk/src/share/classes/com/sun/java/swing/plaf/motif/MotifInternalFrameTitlePane.java +++ b/jdk/src/share/classes/com/sun/java/swing/plaf/motif/MotifInternalFrameTitlePane.java @@ -86,18 +86,18 @@ public class MotifInternalFrameTitlePane protected void assembleSystemMenu() { systemMenu = new JPopupMenu(); - JMenuItem mi = (JMenuItem)systemMenu.add(new JMenuItem(restoreAction)); + JMenuItem mi = systemMenu.add(new JMenuItem(restoreAction)); mi.setMnemonic('R'); - mi = (JMenuItem) systemMenu.add(new JMenuItem(moveAction)); + mi = systemMenu.add(new JMenuItem(moveAction)); mi.setMnemonic('M'); - mi = (JMenuItem) systemMenu.add(new JMenuItem(sizeAction)); + mi = systemMenu.add(new JMenuItem(sizeAction)); mi.setMnemonic('S'); - mi = (JMenuItem) systemMenu.add(new JMenuItem(iconifyAction)); + mi = systemMenu.add(new JMenuItem(iconifyAction)); mi.setMnemonic('n'); - mi = (JMenuItem) systemMenu.add(new JMenuItem(maximizeAction)); + mi = systemMenu.add(new JMenuItem(maximizeAction)); mi.setMnemonic('x'); systemMenu.add(new JSeparator()); - mi = (JMenuItem) systemMenu.add(new JMenuItem(closeAction)); + mi = systemMenu.add(new JMenuItem(closeAction)); mi.setMnemonic('C'); systemButton = new SystemButton(); @@ -157,7 +157,7 @@ public class MotifInternalFrameTitlePane } public void propertyChange(PropertyChangeEvent evt) { - String prop = (String)evt.getPropertyName(); + String prop = evt.getPropertyName(); JInternalFrame f = (JInternalFrame)evt.getSource(); boolean value = false; if (JInternalFrame.IS_SELECTED_PROPERTY.equals(prop)) { diff --git a/jdk/src/share/classes/com/sun/java/swing/plaf/motif/MotifLookAndFeel.java b/jdk/src/share/classes/com/sun/java/swing/plaf/motif/MotifLookAndFeel.java index 63994ff6732..e91dbb9e718 100644 --- a/jdk/src/share/classes/com/sun/java/swing/plaf/motif/MotifLookAndFeel.java +++ b/jdk/src/share/classes/com/sun/java/swing/plaf/motif/MotifLookAndFeel.java @@ -290,7 +290,7 @@ public class MotifLookAndFeel extends BasicLookAndFeel Object unselectedTabBackground = new UIDefaults.LazyValue() { public Object createValue(UIDefaults table) { - Color c = (Color)table.getColor("control"); + Color c = table.getColor("control"); return new ColorUIResource(Math.max((int)(c.getRed()*.85),0), Math.max((int)(c.getGreen()*.85),0), Math.max((int)(c.getBlue()*.85),0)); @@ -299,7 +299,7 @@ public class MotifLookAndFeel extends BasicLookAndFeel Object unselectedTabForeground = new UIDefaults.LazyValue() { public Object createValue(UIDefaults table) { - Color c = (Color)table.getColor("controlText"); + Color c = table.getColor("controlText"); return new ColorUIResource(Math.max((int)(c.getRed()*.85),0), Math.max((int)(c.getGreen()*.85),0), Math.max((int)(c.getBlue()*.85),0)); @@ -308,7 +308,7 @@ public class MotifLookAndFeel extends BasicLookAndFeel Object unselectedTabShadow = new UIDefaults.LazyValue() { public Object createValue(UIDefaults table) { - Color c = (Color)table.getColor("control"); + Color c = table.getColor("control"); Color base = new Color(Math.max((int)(c.getRed()*.85),0), Math.max((int)(c.getGreen()*.85),0), Math.max((int)(c.getBlue()*.85),0)); @@ -318,7 +318,7 @@ public class MotifLookAndFeel extends BasicLookAndFeel Object unselectedTabHighlight = new UIDefaults.LazyValue() { public Object createValue(UIDefaults table) { - Color c = (Color)table.getColor("control"); + Color c = table.getColor("control"); Color base = new Color(Math.max((int)(c.getRed()*.85),0), Math.max((int)(c.getGreen()*.85),0), Math.max((int)(c.getBlue()*.85),0)); @@ -567,7 +567,7 @@ public class MotifLookAndFeel extends BasicLookAndFeel "ProgressBar.selectionBackground", table.get("controlText"), "ProgressBar.border", loweredBevelBorder, "ProgressBar.cellLength", new Integer(6), - "ProgressBar.cellSpacing", new Integer(0), + "ProgressBar.cellSpacing", Integer.valueOf(0), // Buttons "Button.margin", new InsetsUIResource(2, 4, 2, 4), @@ -859,7 +859,7 @@ public class MotifLookAndFeel extends BasicLookAndFeel "SplitPane.background", table.get("control"), "SplitPane.highlight", table.get("controlHighlight"), "SplitPane.shadow", table.get("controlShadow"), - "SplitPane.dividerSize", new Integer(20), + "SplitPane.dividerSize", Integer.valueOf(20), "SplitPane.activeThumb", table.get("activeCaptionBorder"), "SplitPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { @@ -1160,7 +1160,7 @@ public class MotifLookAndFeel extends BasicLookAndFeel }), "TextField.caretForeground", black, - "TextField.caretBlinkRate", new Integer(500), + "TextField.caretBlinkRate", Integer.valueOf(500), "TextField.inactiveForeground", table.get("textInactiveText"), "TextField.selectionBackground", table.get("textHighlight"), "TextField.selectionForeground", table.get("textHighlightText"), @@ -1171,7 +1171,7 @@ public class MotifLookAndFeel extends BasicLookAndFeel "TextField.focusInputMap", fieldInputMap, "PasswordField.caretForeground", black, - "PasswordField.caretBlinkRate", new Integer(500), + "PasswordField.caretBlinkRate", Integer.valueOf(500), "PasswordField.inactiveForeground", table.get("textInactiveText"), "PasswordField.selectionBackground", table.get("textHighlight"), "PasswordField.selectionForeground", table.get("textHighlightText"), @@ -1182,7 +1182,7 @@ public class MotifLookAndFeel extends BasicLookAndFeel "PasswordField.focusInputMap", passwordInputMap, "TextArea.caretForeground", black, - "TextArea.caretBlinkRate", new Integer(500), + "TextArea.caretBlinkRate", Integer.valueOf(500), "TextArea.inactiveForeground", table.get("textInactiveText"), "TextArea.selectionBackground", table.get("textHighlight"), "TextArea.selectionForeground", table.get("textHighlightText"), @@ -1193,7 +1193,7 @@ public class MotifLookAndFeel extends BasicLookAndFeel "TextArea.focusInputMap", multilineInputMap, "TextPane.caretForeground", black, - "TextPane.caretBlinkRate", new Integer(500), + "TextPane.caretBlinkRate", Integer.valueOf(500), "TextPane.inactiveForeground", table.get("textInactiveText"), "TextPane.selectionBackground", lightGray, "TextPane.selectionForeground", table.get("textHighlightText"), @@ -1204,7 +1204,7 @@ public class MotifLookAndFeel extends BasicLookAndFeel "TextPane.focusInputMap", multilineInputMap, "EditorPane.caretForeground", red, - "EditorPane.caretBlinkRate", new Integer(500), + "EditorPane.caretBlinkRate", Integer.valueOf(500), "EditorPane.inactiveForeground", table.get("textInactiveText"), "EditorPane.selectionBackground", lightGray, "EditorPane.selectionForeground", table.get("textHighlightText"), diff --git a/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java b/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java index 3977b4d1de6..9af41fc39c8 100644 --- a/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java +++ b/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java @@ -299,9 +299,9 @@ public class WindowsLookAndFeel extends BasicLookAndFeel initResourceBundle(table); // *** Shared Fonts - Integer twelve = new Integer(12); - Integer fontPlain = new Integer(Font.PLAIN); - Integer fontBold = new Integer(Font.BOLD); + Integer twelve = Integer.valueOf(12); + Integer fontPlain = Integer.valueOf(Font.PLAIN); + Integer fontBold = Integer.valueOf(Font.BOLD); Object dialogPlain12 = new SwingLazyValue( "javax.swing.plaf.FontUIResource", @@ -522,19 +522,19 @@ public class WindowsLookAndFeel extends BasicLookAndFeel toolkit); Object WindowBorderWidth = new DesktopProperty( "win.frame.sizingBorderWidth", - new Integer(1), + Integer.valueOf(1), toolkit); Object TitlePaneHeight = new DesktopProperty( "win.frame.captionHeight", - new Integer(18), + Integer.valueOf(18), toolkit); Object TitleButtonWidth = new DesktopProperty( "win.frame.captionButtonWidth", - new Integer(16), + Integer.valueOf(16), toolkit); Object TitleButtonHeight = new DesktopProperty( "win.frame.captionButtonHeight", - new Integer(16), + Integer.valueOf(16), toolkit); Object InactiveTextColor = new DesktopProperty( "win.text.grayedTextColor", @@ -567,7 +567,7 @@ public class WindowsLookAndFeel extends BasicLookAndFeel Object IconFont = ControlFont; Object scrollBarWidth = new DesktopProperty("win.scrollbar.width", - new Integer(16), toolkit); + Integer.valueOf(16), toolkit); Object menuBarHeight = new DesktopProperty("win.menu.height", null, toolkit); @@ -673,12 +673,12 @@ public class WindowsLookAndFeel extends BasicLookAndFeel "Button.disabledForeground", InactiveTextColor, "Button.disabledShadow", ControlHighlightColor, "Button.focus", black, - "Button.dashedRectGapX", new XPValue(new Integer(3), new Integer(5)), - "Button.dashedRectGapY", new XPValue(new Integer(3), new Integer(4)), - "Button.dashedRectGapWidth", new XPValue(new Integer(6), new Integer(10)), - "Button.dashedRectGapHeight", new XPValue(new Integer(6), new Integer(8)), - "Button.textShiftOffset", new XPValue(new Integer(0), - new Integer(1)), + "Button.dashedRectGapX", new XPValue(Integer.valueOf(3), Integer.valueOf(5)), + "Button.dashedRectGapY", new XPValue(Integer.valueOf(3), Integer.valueOf(4)), + "Button.dashedRectGapWidth", new XPValue(Integer.valueOf(6), Integer.valueOf(10)), + "Button.dashedRectGapHeight", new XPValue(Integer.valueOf(6), Integer.valueOf(8)), + "Button.textShiftOffset", new XPValue(Integer.valueOf(0), + Integer.valueOf(1)), // W2K keyboard navigation hidding. "Button.showMnemonics", showMnemonics, "Button.focusInputMap", @@ -780,7 +780,7 @@ public class WindowsLookAndFeel extends BasicLookAndFeel }), // DesktopIcon - "DesktopIcon.width", new Integer(160), + "DesktopIcon.width", Integer.valueOf(160), "EditorPane.font", ControlFont, "EditorPane.background", WindowBackgroundColor, @@ -814,9 +814,9 @@ public class WindowsLookAndFeel extends BasicLookAndFeel "icons/NewFolder.gif"), "FileChooser.useSystemExtensionHiding", Boolean.TRUE, - "FileChooser.lookInLabelMnemonic", new Integer(KeyEvent.VK_I), - "FileChooser.fileNameLabelMnemonic", new Integer(KeyEvent.VK_N), - "FileChooser.filesOfTypeLabelMnemonic", new Integer(KeyEvent.VK_T), + "FileChooser.lookInLabelMnemonic", Integer.valueOf(KeyEvent.VK_I), + "FileChooser.fileNameLabelMnemonic", Integer.valueOf(KeyEvent.VK_N), + "FileChooser.filesOfTypeLabelMnemonic", Integer.valueOf(KeyEvent.VK_T), "FileChooser.usesSingleFilePane", Boolean.TRUE, "FileChooser.noPlacesBar", new DesktopProperty("win.comdlg.noPlacesBar", Boolean.FALSE, toolkit), @@ -1021,10 +1021,10 @@ public class WindowsLookAndFeel extends BasicLookAndFeel "Menu.selectionBackground", SelectionBackgroundColor, "Menu.acceleratorForeground", MenuTextColor, "Menu.acceleratorSelectionForeground", SelectionTextColor, - "Menu.menuPopupOffsetX", new Integer(0), - "Menu.menuPopupOffsetY", new Integer(0), - "Menu.submenuPopupOffsetX", new Integer(-4), - "Menu.submenuPopupOffsetY", new Integer(-3), + "Menu.menuPopupOffsetX", Integer.valueOf(0), + "Menu.menuPopupOffsetY", Integer.valueOf(0), + "Menu.submenuPopupOffsetX", Integer.valueOf(-4), + "Menu.submenuPopupOffsetY", Integer.valueOf(-3), "Menu.crossMenuMnemonic", Boolean.FALSE, "Menu.preserveTopLevelSelection", Boolean.TRUE, @@ -1184,8 +1184,8 @@ public class WindowsLookAndFeel extends BasicLookAndFeel "ProgressBar.highlight", ControlHighlightColor, "ProgressBar.selectionForeground", ControlBackgroundColor, "ProgressBar.selectionBackground", SelectionBackgroundColor, - "ProgressBar.cellLength", new Integer(7), - "ProgressBar.cellSpacing", new Integer(2), + "ProgressBar.cellLength", Integer.valueOf(7), + "ProgressBar.cellSpacing", Integer.valueOf(2), "ProgressBar.indeterminateInsets", new Insets(3, 3, 3, 3), // *** RootPane. @@ -1292,7 +1292,7 @@ public class WindowsLookAndFeel extends BasicLookAndFeel "SplitPane.highlight", ControlHighlightColor, "SplitPane.shadow", ControlShadowColor, "SplitPane.darkShadow", ControlDarkShadowColor, - "SplitPane.dividerSize", new Integer(5), + "SplitPane.dividerSize", Integer.valueOf(5), "SplitPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "UP", "negativeIncrement", @@ -1496,7 +1496,7 @@ public class WindowsLookAndFeel extends BasicLookAndFeel "ToggleButton.light", ControlLightColor, "ToggleButton.highlight", ControlHighlightColor, "ToggleButton.focus", ControlTextColor, - "ToggleButton.textShiftOffset", new Integer(1), + "ToggleButton.textShiftOffset", Integer.valueOf(1), "ToggleButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", @@ -1548,8 +1548,8 @@ public class WindowsLookAndFeel extends BasicLookAndFeel "Tree.background", WindowBackgroundColor, "Tree.foreground", WindowTextColor, "Tree.hash", gray, - "Tree.leftChildIndent", new Integer(8), - "Tree.rightChildIndent", new Integer(11), + "Tree.leftChildIndent", Integer.valueOf(8), + "Tree.rightChildIndent", Integer.valueOf(11), "Tree.textForeground", WindowTextColor, "Tree.textBackground", WindowBackgroundColor, "Tree.selectionForeground", SelectionTextColor, @@ -2488,18 +2488,18 @@ public class WindowsLookAndFeel extends BasicLookAndFeel private int direction; XPDLUValue(int xpdlu, int classicdlu, int direction) { - super(new Integer(xpdlu), new Integer(classicdlu)); + super(Integer.valueOf(xpdlu), Integer.valueOf(classicdlu)); this.direction = direction; } public Object getXPValue(UIDefaults table) { int px = dluToPixels(((Integer)xpValue).intValue(), direction); - return new Integer(px); + return Integer.valueOf(px); } public Object getClassicValue(UIDefaults table) { int px = dluToPixels(((Integer)classicValue).intValue(), direction); - return new Integer(px); + return Integer.valueOf(px); } } diff --git a/jdk/src/share/classes/com/sun/tools/hat/Main.java b/jdk/src/share/classes/com/sun/tools/hat/Main.java index 4aebdbe0d70..d027904bdd4 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/Main.java +++ b/jdk/src/share/classes/com/sun/tools/hat/Main.java @@ -23,18 +23,10 @@ * have any questions. */ - /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. + * at JavaSoft/Sun. */ package com.sun.tools.hat; diff --git a/jdk/src/share/classes/com/sun/tools/hat/build.xml b/jdk/src/share/classes/com/sun/tools/hat/build.xml index 655034d3c81..401cb77ae02 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/build.xml +++ b/jdk/src/share/classes/com/sun/tools/hat/build.xml @@ -27,19 +27,9 @@ diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/AbstractJavaHeapObjectVisitor.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/AbstractJavaHeapObjectVisitor.java index d0e72c413e1..83a78cf9728 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/AbstractJavaHeapObjectVisitor.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/AbstractJavaHeapObjectVisitor.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/ArrayTypeCodes.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/ArrayTypeCodes.java index 2c3097474d3..fbcb72ffd17 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/ArrayTypeCodes.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/ArrayTypeCodes.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/HackJavaValue.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/HackJavaValue.java index 501cc128cca..fc807085218 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/HackJavaValue.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/HackJavaValue.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaBoolean.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaBoolean.java index 77eab286b15..f5de0d257c5 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaBoolean.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaBoolean.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaByte.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaByte.java index b19da339d0d..0b9ef2a1fae 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaByte.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaByte.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaChar.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaChar.java index dd7b8e35ec4..96cecbf4709 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaChar.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaChar.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaClass.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaClass.java index 6cdd45c6856..068de487982 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaClass.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaClass.java @@ -1,5 +1,5 @@ /* - * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2006 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaDouble.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaDouble.java index 97985595541..414f6cab377 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaDouble.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaDouble.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaField.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaField.java index d92d12a6940..540309aec94 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaField.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaField.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaFloat.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaFloat.java index 4f8b589968c..cb0cb74cc7d 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaFloat.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaFloat.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaHeapObject.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaHeapObject.java index 35e0f151b97..0f3b7782815 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaHeapObject.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaHeapObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2006 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaHeapObjectVisitor.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaHeapObjectVisitor.java index 0091dd88119..ef82cb2bcd7 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaHeapObjectVisitor.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaHeapObjectVisitor.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaInt.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaInt.java index 076aa602e58..0e7f969cb6a 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaInt.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaLazyReadObject.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaLazyReadObject.java index 7521723e9d6..0a9c6c25e27 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaLazyReadObject.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaLazyReadObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2006 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaLong.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaLong.java index 9c71c4312d9..3654e592ecf 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaLong.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaLong.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaObject.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaObject.java index 785945acad1..d78b794b00e 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaObject.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2006 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaObjectArray.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaObjectArray.java index 52c403102a9..e9a67d9eb92 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaObjectArray.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaObjectArray.java @@ -1,5 +1,5 @@ /* - * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2006 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaObjectRef.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaObjectRef.java index 30c4eef3e1c..d7271698c74 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaObjectRef.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaObjectRef.java @@ -1,5 +1,5 @@ /* - * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2006 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaShort.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaShort.java index 1d9bfa615fa..1d402eb3ab9 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaShort.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaShort.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaStatic.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaStatic.java index 8e6c1fe5a09..c84a43452b9 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaStatic.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaStatic.java @@ -1,5 +1,5 @@ /* - * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2006 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaThing.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaThing.java index 9ac70c4136f..bfe7499af48 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaThing.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaThing.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaValue.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaValue.java index 8e694d24b65..2395660715d 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaValue.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaValue.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaValueArray.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaValueArray.java index 6da26096635..4f11161e95d 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaValueArray.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/JavaValueArray.java @@ -1,5 +1,5 @@ /* - * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2006 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/ReachableExcludes.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/ReachableExcludes.java index d2d711896d1..5dd4d2bc6e0 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/ReachableExcludes.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/ReachableExcludes.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/ReachableExcludesImpl.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/ReachableExcludesImpl.java index 7bfbd9f8176..1f623243c7e 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/ReachableExcludesImpl.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/ReachableExcludesImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/ReachableObjects.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/ReachableObjects.java index d6fb869afba..d1749c56302 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/ReachableObjects.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/ReachableObjects.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/ReferenceChain.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/ReferenceChain.java index 9d8aeadcfcf..f682351d76d 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/ReferenceChain.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/ReferenceChain.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/Root.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/Root.java index c3197daa3db..1ec22b32ce0 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/Root.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/Root.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/Snapshot.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/Snapshot.java index f0097acc1a8..2000eee5bc5 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/Snapshot.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/Snapshot.java @@ -1,5 +1,5 @@ /* - * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2006 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/StackFrame.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/StackFrame.java index 49ed6ea2f4d..1c7e8eacbab 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/StackFrame.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/StackFrame.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/model/StackTrace.java b/jdk/src/share/classes/com/sun/tools/hat/internal/model/StackTrace.java index 94776d11e63..bf64209d054 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/model/StackTrace.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/model/StackTrace.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.model; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/oql/OQLEngine.java b/jdk/src/share/classes/com/sun/tools/hat/internal/oql/OQLEngine.java index 3d98369e859..14a8ca8cf1d 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/oql/OQLEngine.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/oql/OQLEngine.java @@ -1,5 +1,5 @@ /* - * Copyright 2005-2007 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2007 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.oql; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/oql/OQLException.java b/jdk/src/share/classes/com/sun/tools/hat/internal/oql/OQLException.java index 7ab179a680f..00c1cdc0b34 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/oql/OQLException.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/oql/OQLException.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.oql; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/oql/OQLQuery.java b/jdk/src/share/classes/com/sun/tools/hat/internal/oql/OQLQuery.java index e9fa71842e3..cd594c49133 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/oql/OQLQuery.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/oql/OQLQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.oql; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/oql/ObjectVisitor.java b/jdk/src/share/classes/com/sun/tools/hat/internal/oql/ObjectVisitor.java index 21a795debc0..22a970ee722 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/oql/ObjectVisitor.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/oql/ObjectVisitor.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.oql; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/parser/FileReadBuffer.java b/jdk/src/share/classes/com/sun/tools/hat/internal/parser/FileReadBuffer.java index 654ad1eafbe..7d5f5f58cee 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/parser/FileReadBuffer.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/parser/FileReadBuffer.java @@ -1,5 +1,5 @@ /* - * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2006 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.parser; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/parser/HprofReader.java b/jdk/src/share/classes/com/sun/tools/hat/internal/parser/HprofReader.java index eceac9fdc05..7c7a4376ff0 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/parser/HprofReader.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/parser/HprofReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2006 Sun Microsystems, Inc. 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 @@ -23,21 +23,11 @@ * have any questions. */ + /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.parser; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/parser/MappedReadBuffer.java b/jdk/src/share/classes/com/sun/tools/hat/internal/parser/MappedReadBuffer.java index 6540e55f687..a46a0bd5f5f 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/parser/MappedReadBuffer.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/parser/MappedReadBuffer.java @@ -1,5 +1,5 @@ /* - * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2006 Sun Microsystems, Inc. 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 @@ -23,21 +23,11 @@ * have any questions. */ + /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.parser; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/parser/PositionDataInputStream.java b/jdk/src/share/classes/com/sun/tools/hat/internal/parser/PositionDataInputStream.java index a2310404d0e..fe68a529ddf 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/parser/PositionDataInputStream.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/parser/PositionDataInputStream.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.parser; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/parser/PositionInputStream.java b/jdk/src/share/classes/com/sun/tools/hat/internal/parser/PositionInputStream.java index 8554d237801..0c22fa0ece3 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/parser/PositionInputStream.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/parser/PositionInputStream.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.parser; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/parser/ReadBuffer.java b/jdk/src/share/classes/com/sun/tools/hat/internal/parser/ReadBuffer.java index 249c5360fc8..2980fbe4114 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/parser/ReadBuffer.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/parser/ReadBuffer.java @@ -1,5 +1,5 @@ /* - * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2006 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.parser; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/parser/Reader.java b/jdk/src/share/classes/com/sun/tools/hat/internal/parser/Reader.java index ea39c9cde0b..33fca3a1c5c 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/parser/Reader.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/parser/Reader.java @@ -1,5 +1,5 @@ /* - * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2006 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.parser; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/server/AllClassesQuery.java b/jdk/src/share/classes/com/sun/tools/hat/internal/server/AllClassesQuery.java index 917194e3816..14209503e7c 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/server/AllClassesQuery.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/server/AllClassesQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.server; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/server/AllRootsQuery.java b/jdk/src/share/classes/com/sun/tools/hat/internal/server/AllRootsQuery.java index 25cb2b6a023..794e9c2c9a6 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/server/AllRootsQuery.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/server/AllRootsQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.server; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/server/ClassQuery.java b/jdk/src/share/classes/com/sun/tools/hat/internal/server/ClassQuery.java index 4fc235f7e2a..bb5e9ae8f3e 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/server/ClassQuery.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/server/ClassQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.server; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/server/FinalizerObjectsQuery.java b/jdk/src/share/classes/com/sun/tools/hat/internal/server/FinalizerObjectsQuery.java index 9bf9f29a75b..e4b4f1c7c3c 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/server/FinalizerObjectsQuery.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/server/FinalizerObjectsQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.server; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/server/FinalizerSummaryQuery.java b/jdk/src/share/classes/com/sun/tools/hat/internal/server/FinalizerSummaryQuery.java index cb1b11dc048..5fc4cc1e2e8 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/server/FinalizerSummaryQuery.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/server/FinalizerSummaryQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.server; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/server/HistogramQuery.java b/jdk/src/share/classes/com/sun/tools/hat/internal/server/HistogramQuery.java index a65a5740705..025850f8afb 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/server/HistogramQuery.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/server/HistogramQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.server; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/server/HttpReader.java b/jdk/src/share/classes/com/sun/tools/hat/internal/server/HttpReader.java index 5b33cea6d0d..fb92b632a1f 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/server/HttpReader.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/server/HttpReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.server; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/server/InstancesCountQuery.java b/jdk/src/share/classes/com/sun/tools/hat/internal/server/InstancesCountQuery.java index 066ee659d33..624a2c3d268 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/server/InstancesCountQuery.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/server/InstancesCountQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -24,19 +24,10 @@ */ -/* The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * +/* * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.server; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/server/InstancesQuery.java b/jdk/src/share/classes/com/sun/tools/hat/internal/server/InstancesQuery.java index f30e153a439..6be2630b1eb 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/server/InstancesQuery.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/server/InstancesQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -24,19 +24,10 @@ */ -/* The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * +/* * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.server; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/server/OQLHelp.java b/jdk/src/share/classes/com/sun/tools/hat/internal/server/OQLHelp.java index 1a5ed041e6c..f0a6cf11657 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/server/OQLHelp.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/server/OQLHelp.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.server; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/server/OQLQuery.java b/jdk/src/share/classes/com/sun/tools/hat/internal/server/OQLQuery.java index 75bed2fdf49..e6c1dfbabd4 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/server/OQLQuery.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/server/OQLQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2006 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.server; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/server/ObjectQuery.java b/jdk/src/share/classes/com/sun/tools/hat/internal/server/ObjectQuery.java index 7748b0c97f7..30ab9c7cc94 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/server/ObjectQuery.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/server/ObjectQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2006 Sun Microsystems, Inc. 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 @@ -24,19 +24,10 @@ */ -/* The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * +/* * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.server; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/server/PlatformClasses.java b/jdk/src/share/classes/com/sun/tools/hat/internal/server/PlatformClasses.java index 24db65e2fe7..9ba31757c50 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/server/PlatformClasses.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/server/PlatformClasses.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -24,19 +24,10 @@ */ -/* The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * +/* * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.server; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/server/QueryHandler.java b/jdk/src/share/classes/com/sun/tools/hat/internal/server/QueryHandler.java index 80d208318ac..49729018e7c 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/server/QueryHandler.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/server/QueryHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2006 Sun Microsystems, Inc. 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 @@ -24,20 +24,10 @@ */ - -/* The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * +/* * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.server; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/server/QueryListener.java b/jdk/src/share/classes/com/sun/tools/hat/internal/server/QueryListener.java index d54b106f9e0..57233637416 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/server/QueryListener.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/server/QueryListener.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -24,19 +24,10 @@ */ -/* The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * +/* * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.server; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/server/ReachableQuery.java b/jdk/src/share/classes/com/sun/tools/hat/internal/server/ReachableQuery.java index 9a50739274c..8ee0f629792 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/server/ReachableQuery.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/server/ReachableQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -24,20 +24,10 @@ */ - -/* The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * +/* * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.server; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/server/RefsByTypeQuery.java b/jdk/src/share/classes/com/sun/tools/hat/internal/server/RefsByTypeQuery.java index 0a2b73d2cd0..8256928f0b9 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/server/RefsByTypeQuery.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/server/RefsByTypeQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.server; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/server/RootStackQuery.java b/jdk/src/share/classes/com/sun/tools/hat/internal/server/RootStackQuery.java index 5b14ebe0fbf..45fd7d86ac1 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/server/RootStackQuery.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/server/RootStackQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -24,19 +24,10 @@ */ -/* The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * +/* * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.server; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/server/RootsQuery.java b/jdk/src/share/classes/com/sun/tools/hat/internal/server/RootsQuery.java index b9d71d4d573..a9db43f6983 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/server/RootsQuery.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/server/RootsQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -24,19 +24,10 @@ */ -/* The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * +/* * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.server; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/util/ArraySorter.java b/jdk/src/share/classes/com/sun/tools/hat/internal/util/ArraySorter.java index 84503e3057f..77b93290ffe 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/util/ArraySorter.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/util/ArraySorter.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -24,19 +24,10 @@ */ -/* The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * +/* * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.util; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/util/Comparer.java b/jdk/src/share/classes/com/sun/tools/hat/internal/util/Comparer.java index 941f90f0e6c..aa1f147ee7b 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/util/Comparer.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/util/Comparer.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -24,19 +24,10 @@ */ -/* The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * +/* * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.util; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/util/CompositeEnumeration.java b/jdk/src/share/classes/com/sun/tools/hat/internal/util/CompositeEnumeration.java index ec1804b6cbc..2042850141c 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/util/CompositeEnumeration.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/util/CompositeEnumeration.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -25,20 +25,9 @@ /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.util; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/util/Misc.java b/jdk/src/share/classes/com/sun/tools/hat/internal/util/Misc.java index 2a87657a05f..42b5bd1310d 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/util/Misc.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/util/Misc.java @@ -1,5 +1,5 @@ /* - * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2006 Sun Microsystems, Inc. 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 @@ -24,19 +24,10 @@ */ -/* The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * +/* * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.util; diff --git a/jdk/src/share/classes/com/sun/tools/hat/internal/util/VectorSorter.java b/jdk/src/share/classes/com/sun/tools/hat/internal/util/VectorSorter.java index cb963d6de43..776f9088f6a 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/internal/util/VectorSorter.java +++ b/jdk/src/share/classes/com/sun/tools/hat/internal/util/VectorSorter.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2005 Sun Microsystems, Inc. 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 @@ -24,19 +24,10 @@ */ -/* The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * +/* * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. + * at JavaSoft/Sun. */ package com.sun.tools.hat.internal.util; diff --git a/jdk/src/share/classes/com/sun/tools/hat/resources/hat.js b/jdk/src/share/classes/com/sun/tools/hat/resources/hat.js index e81eae514d3..1b8cfdc935b 100644 --- a/jdk/src/share/classes/com/sun/tools/hat/resources/hat.js +++ b/jdk/src/share/classes/com/sun/tools/hat/resources/hat.js @@ -23,22 +23,10 @@ * have any questions. */ - /* - * The contents of this file are subject to the Sun Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. A copy of the License is available at - * http://www.sun.com/, and in the file LICENSE.html in the - * doc directory. - * * The Original Code is HAT. The Initial Developer of the * Original Code is Bill Foote, with contributions from others - * at JavaSoft/Sun. Portions created by Bill Foote and others - * at Javasoft/Sun are Copyright (C) 1997-2004. All Rights Reserved. - * - * In addition to the formal license, I ask that you don't - * change the history or donations files without permission. - * + * at JavaSoft/Sun. */ var hatPkg = Packages.com.sun.tools.hat.internal; diff --git a/jdk/src/share/classes/java/awt/Button.java b/jdk/src/share/classes/java/awt/Button.java index 46d0d072424..fcb33ddecc2 100644 --- a/jdk/src/share/classes/java/awt/Button.java +++ b/jdk/src/share/classes/java/awt/Button.java @@ -597,7 +597,7 @@ public class Button extends Component implements Accessible { public String getAccessibleActionDescription(int i) { if (i == 0) { // [[[PENDING: WDW -- need to provide a localized string]]] - return new String("click"); + return "click"; } else { return null; } diff --git a/jdk/src/share/classes/java/awt/Color.java b/jdk/src/share/classes/java/awt/Color.java index c06b573d7ca..22a8455f2b5 100644 --- a/jdk/src/share/classes/java/awt/Color.java +++ b/jdk/src/share/classes/java/awt/Color.java @@ -51,6 +51,7 @@ import java.awt.color.ColorSpace; * http://www.w3.org/pub/WWW/Graphics/Color/sRGB.html * . *

+ * @version 10 Feb 1997 * @author Sami Shaio * @author Arthur van Hoff * @see ColorSpace @@ -1176,23 +1177,32 @@ public class Color implements Paint, java.io.Serializable { } /** - * Creates and returns a {@link PaintContext} used to generate a solid - * color pattern. This enables a Color object to be used - * as an argument to any method requiring an object implementing the - * {@link Paint} interface. - * The same PaintContext is returned, regardless of - * whether or not r, r2d, - * xform, or hints are null. - * @param cm the specified ColorModel - * @param r the specified {@link Rectangle} - * @param r2d the specified {@link Rectangle2D} - * @param xform the specified {@link AffineTransform} - * @param hints the specified {@link RenderingHints} - * @return a PaintContext that is used to generate a - * solid color pattern. + * Creates and returns a {@link PaintContext} used to + * generate a solid color field pattern. + * See the {@link Paint#createContext specification} of the + * method in the {@link Paint} interface for information + * on null parameter handling. + * + * @param cm the preferred {@link ColorModel} which represents the most convenient + * format for the caller to receive the pixel data, or {@code null} + * if there is no preference. + * @param r the device space bounding box + * of the graphics primitive being rendered. + * @param r2d the user space bounding box + * of the graphics primitive being rendered. + * @param xform the {@link AffineTransform} from user + * space into device space. + * @param hints the set of hints that the context object can use to + * choose between rendering alternatives. + * @return the {@code PaintContext} for + * generating color patterns. * @see Paint * @see PaintContext - * @see Graphics2D#setPaint + * @see ColorModel + * @see Rectangle + * @see Rectangle2D + * @see AffineTransform + * @see RenderingHints */ public synchronized PaintContext createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, diff --git a/jdk/src/share/classes/java/awt/Component.java b/jdk/src/share/classes/java/awt/Component.java index b48b8c552fd..9c54250df6d 100644 --- a/jdk/src/share/classes/java/awt/Component.java +++ b/jdk/src/share/classes/java/awt/Component.java @@ -1,5 +1,5 @@ /* - * Copyright 1995-2007 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1995-2008 Sun Microsystems, Inc. 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 @@ -49,6 +49,7 @@ import java.io.ObjectInputStream; import java.io.IOException; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeSupport; +import java.beans.Transient; import java.awt.event.InputMethodListener; import java.awt.event.InputMethodEvent; import java.awt.im.InputContext; @@ -634,7 +635,9 @@ public abstract class Component implements ImageObserver, MenuContainer, */ private PropertyChangeSupport changeSupport; - private transient final Object changeSupportLock = new Object(); + // Note: this field is considered final, though readObject() prohibits + // initializing final fields. + private transient Object changeSupportLock = new Object(); private Object getChangeSupportLock() { return changeSupportLock; } @@ -1003,7 +1006,7 @@ public abstract class Component implements ImageObserver, MenuContainer, /** * Gets this component's locking object (the object that owns the thread - * sychronization monitor) for AWT component-tree and layout + * synchronization monitor) for AWT component-tree and layout * operations. * @return this component's locking object */ @@ -1100,6 +1103,7 @@ public abstract class Component implements ImageObserver, MenuContainer, * @see #setVisible * @since JDK1.0 */ + @Transient public boolean isVisible() { return isVisible_NoClientCode(); } @@ -1325,12 +1329,15 @@ public abstract class Component implements ImageObserver, MenuContainer, KeyboardFocusManager.clearMostRecentFocusOwner(this); synchronized (getTreeLock()) { enabled = false; - if (isFocusOwner()) { + // A disabled lw container is allowed to contain a focus owner. + if ((isFocusOwner() || (containsFocus() && !isLightweight())) && + KeyboardFocusManager.isAutoFocusTransferEnabled()) + { // Don't clear the global focus owner. If transferFocus // fails, we want the focus to stay on the disabled // Component so that keyboard traversal, et. al. still // makes sense to the user. - autoTransferFocus(false); + transferFocus(false); } ComponentPeer peer = this.peer; if (peer != null) { @@ -1491,8 +1498,8 @@ public abstract class Component implements ImageObserver, MenuContainer, synchronized (getTreeLock()) { visible = false; mixOnHiding(isLightweight()); - if (containsFocus()) { - autoTransferFocus(true); + if (containsFocus() && KeyboardFocusManager.isAutoFocusTransferEnabled()) { + transferFocus(true); } ComponentPeer peer = this.peer; if (peer != null) { @@ -1531,6 +1538,7 @@ public abstract class Component implements ImageObserver, MenuContainer, * @beaninfo * bound: true */ + @Transient public Color getForeground() { Color foreground = this.foreground; if (foreground != null) { @@ -1585,6 +1593,7 @@ public abstract class Component implements ImageObserver, MenuContainer, * @see #setBackground * @since JDK1.0 */ + @Transient public Color getBackground() { Color background = this.background; if (background != null) { @@ -1644,6 +1653,7 @@ public abstract class Component implements ImageObserver, MenuContainer, * @see #setFont * @since JDK1.0 */ + @Transient public Font getFont() { return getFont_NoClientCode(); } @@ -6576,12 +6586,8 @@ public abstract class Component implements ImageObserver, MenuContainer, } synchronized (getTreeLock()) { - if (isFocusOwner() - && KeyboardFocusManager.isAutoFocusTransferEnabled() - && !nextFocusHelper()) - { - KeyboardFocusManager.getCurrentKeyboardFocusManager(). - clearGlobalFocusOwner(); + if (isFocusOwner() && KeyboardFocusManager.isAutoFocusTransferEnabledFor(this)) { + transferFocus(true); } if (getContainer() != null && isAddNotifyComplete) { @@ -6716,8 +6722,8 @@ public abstract class Component implements ImageObserver, MenuContainer, firePropertyChange("focusable", oldFocusable, focusable); if (oldFocusable && !focusable) { - if (isFocusOwner()) { - autoTransferFocus(true); + if (isFocusOwner() && KeyboardFocusManager.isAutoFocusTransferEnabled()) { + transferFocus(true); } KeyboardFocusManager.clearMostRecentFocusOwner(this); } @@ -7371,69 +7377,6 @@ public abstract class Component implements ImageObserver, MenuContainer, } } - private void autoTransferFocus(boolean clearOnFailure) { - Component toTest = KeyboardFocusManager. - getCurrentKeyboardFocusManager().getFocusOwner(); - if (toTest != this) { - if (toTest != null) { - toTest.autoTransferFocus(clearOnFailure); - } - return; - } - - // Check if there are pending focus requests. We shouldn't do - // auto-transfer if user has already took care of this - // component becoming ineligible to hold focus. - if (!KeyboardFocusManager.isAutoFocusTransferEnabled()) { - return; - } - - // the following code will execute only if this Component is the focus - // owner - - if (!(isDisplayable() && isVisible() && isEnabled() && isFocusable())) { - doAutoTransfer(clearOnFailure); - return; - } - - toTest = getParent(); - - while (toTest != null && !(toTest instanceof Window)) { - if (!(toTest.isDisplayable() && toTest.isVisible() && - (toTest.isEnabled() || toTest.isLightweight()))) { - doAutoTransfer(clearOnFailure); - return; - } - toTest = toTest.getParent(); - } - } - private void doAutoTransfer(boolean clearOnFailure) { - if (focusLog.isLoggable(Level.FINER)) { - focusLog.log(Level.FINER, "this = " + this + ", clearOnFailure = " + clearOnFailure); - } - if (clearOnFailure) { - if (!nextFocusHelper()) { - if (focusLog.isLoggable(Level.FINER)) { - focusLog.log(Level.FINER, "clear global focus owner"); - } - KeyboardFocusManager.getCurrentKeyboardFocusManager(). - clearGlobalFocusOwner(); - } - } else { - transferFocus(); - } - } - - /** - * Transfers the focus to the next component, as though this Component were - * the focus owner. - * @see #requestFocus() - * @since JDK1.1 - */ - public void transferFocus() { - nextFocus(); - } - /** * Returns the Container which is the focus cycle root of this Component's * focus traversal cycle. Each focus traversal cycle has only a single @@ -7473,31 +7416,51 @@ public abstract class Component implements ImageObserver, MenuContainer, return (rootAncestor == container); } + Container getTraversalRoot() { + return getFocusCycleRootAncestor(); + } + + /** + * Transfers the focus to the next component, as though this Component were + * the focus owner. + * @see #requestFocus() + * @since JDK1.1 + */ + public void transferFocus() { + nextFocus(); + } + /** * @deprecated As of JDK version 1.1, * replaced by transferFocus(). */ @Deprecated public void nextFocus() { - nextFocusHelper(); + transferFocus(false); } - private boolean nextFocusHelper() { - Component toFocus = preNextFocusHelper(); + boolean transferFocus(boolean clearOnFailure) { if (focusLog.isLoggable(Level.FINER)) { - focusLog.log(Level.FINER, "toFocus = " + toFocus); + focusLog.finer("clearOnFailure = " + clearOnFailure); } - if (isFocusOwner() && toFocus == this) { - return false; + Component toFocus = getNextFocusCandidate(); + boolean res = false; + if (toFocus != null && !toFocus.isFocusOwner() && toFocus != this) { + res = toFocus.requestFocusInWindow(CausedFocusEvent.Cause.TRAVERSAL_FORWARD); } - return postNextFocusHelper(toFocus, CausedFocusEvent.Cause.TRAVERSAL_FORWARD); + if (clearOnFailure && !res) { + if (focusLog.isLoggable(Level.FINER)) { + focusLog.finer("clear global focus owner"); + } + KeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner(); + } + if (focusLog.isLoggable(Level.FINER)) { + focusLog.finer("returning result: " + res); + } + return res; } - Container getTraversalRoot() { - return getFocusCycleRootAncestor(); - } - - final Component preNextFocusHelper() { + final Component getNextFocusCandidate() { Container rootAncestor = getTraversalRoot(); Component comp = this; while (rootAncestor != null && @@ -7509,18 +7472,19 @@ public abstract class Component implements ImageObserver, MenuContainer, rootAncestor = comp.getFocusCycleRootAncestor(); } if (focusLog.isLoggable(Level.FINER)) { - focusLog.log(Level.FINER, "comp = " + comp + ", root = " + rootAncestor); + focusLog.finer("comp = " + comp + ", root = " + rootAncestor); } + Component candidate = null; if (rootAncestor != null) { FocusTraversalPolicy policy = rootAncestor.getFocusTraversalPolicy(); Component toFocus = policy.getComponentAfter(rootAncestor, comp); if (focusLog.isLoggable(Level.FINER)) { - focusLog.log(Level.FINER, "component after is " + toFocus); + focusLog.finer("component after is " + toFocus); } if (toFocus == null) { toFocus = policy.getDefaultComponent(rootAncestor); if (focusLog.isLoggable(Level.FINER)) { - focusLog.log(Level.FINER, "default component is " + toFocus); + focusLog.finer("default component is " + toFocus); } } if (toFocus == null) { @@ -7529,23 +7493,12 @@ public abstract class Component implements ImageObserver, MenuContainer, toFocus = applet; } } - return toFocus; + candidate = toFocus; } - return null; - } - - static boolean postNextFocusHelper(Component toFocus, CausedFocusEvent.Cause cause) { - if (toFocus != null) { - if (focusLog.isLoggable(Level.FINER)) { - focusLog.log(Level.FINER, "Next component " + toFocus); - } - boolean res = toFocus.requestFocusInWindow(cause); - if (focusLog.isLoggable(Level.FINER)) { - focusLog.log(Level.FINER, "Request focus returned " + res); - } - return res; + if (focusLog.isLoggable(Level.FINER)) { + focusLog.finer("Focus transfer candidate: " + candidate); } - return false; + return candidate; } /** @@ -7555,6 +7508,10 @@ public abstract class Component implements ImageObserver, MenuContainer, * @since 1.4 */ public void transferFocusBackward() { + transferFocusBackward(false); + } + + boolean transferFocusBackward(boolean clearOnFailure) { Container rootAncestor = getTraversalRoot(); Component comp = this; while (rootAncestor != null && @@ -7565,6 +7522,7 @@ public abstract class Component implements ImageObserver, MenuContainer, comp = rootAncestor; rootAncestor = comp.getFocusCycleRootAncestor(); } + boolean res = false; if (rootAncestor != null) { FocusTraversalPolicy policy = rootAncestor.getFocusTraversalPolicy(); Component toFocus = policy.getComponentBefore(rootAncestor, comp); @@ -7572,9 +7530,19 @@ public abstract class Component implements ImageObserver, MenuContainer, toFocus = policy.getDefaultComponent(rootAncestor); } if (toFocus != null) { - toFocus.requestFocusInWindow(CausedFocusEvent.Cause.TRAVERSAL_BACKWARD); + res = toFocus.requestFocusInWindow(CausedFocusEvent.Cause.TRAVERSAL_BACKWARD); } } + if (!res) { + if (focusLog.isLoggable(Level.FINER)) { + focusLog.finer("clear global focus owner"); + } + KeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner(); + } + if (focusLog.isLoggable(Level.FINER)) { + focusLog.finer("returning result: " + res); + } + return res; } /** @@ -7649,6 +7617,20 @@ public abstract class Component implements ImageObserver, MenuContainer, return hasFocus(); } + /* + * Used to disallow auto-focus-transfer on disposal of the focus owner + * in the process of disposing its parent container. + */ + private boolean autoFocusTransferOnDisposal = true; + + void setAutoFocusTransferOnDisposal(boolean value) { + autoFocusTransferOnDisposal = value; + } + + boolean isAutoFocusTransferOnDisposal() { + return autoFocusTransferOnDisposal; + } + /** * Adds the specified popup menu to the component. * @param popup the popup menu to be added to the component. @@ -8310,6 +8292,8 @@ public abstract class Component implements ImageObserver, MenuContainer, private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException { + changeSupportLock = new Object(); + s.defaultReadObject(); appContext = AppContext.getAppContext(); diff --git a/jdk/src/share/classes/java/awt/Container.java b/jdk/src/share/classes/java/awt/Container.java index 7eba36a1168..d79bde285f3 100644 --- a/jdk/src/share/classes/java/awt/Container.java +++ b/jdk/src/share/classes/java/awt/Container.java @@ -2660,9 +2660,26 @@ public class Container extends Component { synchronized (getTreeLock()) { int ncomponents = this.ncomponents; Component component[] = this.component; - for (int i = ncomponents-1 ; i >= 0 ; i--) { - if( component[i] != null ) - component[i].removeNotify(); + for (int i = ncomponents - 1; i >= 0; i--) { + if( component[i] != null ) { + // Fix for 6607170. + // We want to suppress focus change on disposal + // of the focused component. But because of focus + // is asynchronous, we should suppress focus change + // on every component in case it receives native focus + // in the process of disposal. + component[i].setAutoFocusTransferOnDisposal(false); + component[i].removeNotify(); + component[i].setAutoFocusTransferOnDisposal(true); + } + } + // If some of the children had focus before disposal then it still has. + // Auto-transfer focus to the next (or previous) component if auto-transfer + // is enabled. + if (containsFocus() && KeyboardFocusManager.isAutoFocusTransferEnabledFor(this)) { + if (!transferFocus(false)) { + transferFocusBackward(true); + } } if ( dispatcher != null ) { dispatcher.dispose(); diff --git a/jdk/src/share/classes/java/awt/DefaultKeyboardFocusManager.java b/jdk/src/share/classes/java/awt/DefaultKeyboardFocusManager.java index 1874d8bb3e3..928379ec286 100644 --- a/jdk/src/share/classes/java/awt/DefaultKeyboardFocusManager.java +++ b/jdk/src/share/classes/java/awt/DefaultKeyboardFocusManager.java @@ -155,12 +155,13 @@ public class DefaultKeyboardFocusManager extends KeyboardFocusManager { boolean clearOnFailure) { if (toFocus != vetoedComponent && toFocus.isShowing() && toFocus.isFocusable() && - toFocus.requestFocus(false, CausedFocusEvent.Cause.ROLLBACK)) { + toFocus.requestFocus(false, CausedFocusEvent.Cause.ROLLBACK)) + { return true; } else { - Component nextFocus = toFocus.preNextFocusHelper(); - if (nextFocus != vetoedComponent - && Component.postNextFocusHelper(nextFocus, CausedFocusEvent.Cause.ROLLBACK)) + Component nextFocus = toFocus.getNextFocusCandidate(); + if (nextFocus != null && nextFocus != vetoedComponent && + nextFocus.requestFocusInWindow(CausedFocusEvent.Cause.ROLLBACK)) { return true; } else if (clearOnFailure) { @@ -504,9 +505,16 @@ public class DefaultKeyboardFocusManager extends KeyboardFocusManager { { // we should not accept focus on such component, so reject it. dequeueKeyEvents(-1, newFocusOwner); - if (KeyboardFocusManager.isAutoFocusTransferEnabled()) - { - restoreFocus(fe, newFocusedWindow); + if (KeyboardFocusManager.isAutoFocusTransferEnabled()) { + // If FOCUS_GAINED is for a disposed component (however + // it shouldn't happen) its toplevel parent is null. In this + // case we have to try to restore focus in the current focused + // window (for the details: 6607170). + if (newFocusedWindow == null) { + restoreFocus(fe, currentFocusedWindow); + } else { + restoreFocus(fe, newFocusedWindow); + } } break; } @@ -1078,6 +1086,9 @@ public class DefaultKeyboardFocusManager extends KeyboardFocusManager { focusNextComponent(focusedComponent); } return; + } else if (e.getID() == KeyEvent.KEY_PRESSED) { + // Fix for 6637607: consumeNextKeyTyped should be reset. + consumeNextKeyTyped = false; } toTest = focusedComponent.getFocusTraversalKeys( diff --git a/jdk/src/share/classes/java/awt/Dimension.java b/jdk/src/share/classes/java/awt/Dimension.java index b2bad361340..c0e2c75525d 100644 --- a/jdk/src/share/classes/java/awt/Dimension.java +++ b/jdk/src/share/classes/java/awt/Dimension.java @@ -1,5 +1,5 @@ /* - * Copyright 1995-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1995-2008 Sun Microsystems, Inc. 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 @@ -26,6 +26,7 @@ package java.awt; import java.awt.geom.Dimension2D; +import java.beans.Transient; /** * The Dimension class encapsulates the width and @@ -165,6 +166,7 @@ public class Dimension extends Dimension2D implements java.io.Serializable { * @see java.awt.Component#getSize * @since 1.1 */ + @Transient public Dimension getSize() { return new Dimension(width, height); } diff --git a/jdk/src/share/classes/java/awt/GradientPaint.java b/jdk/src/share/classes/java/awt/GradientPaint.java index 840e7aec826..105fcd1f607 100644 --- a/jdk/src/share/classes/java/awt/GradientPaint.java +++ b/jdk/src/share/classes/java/awt/GradientPaint.java @@ -53,6 +53,7 @@ import java.awt.image.ColorModel; * * @see Paint * @see Graphics2D#setPaint + * @version 10 Feb 1997 */ public class GradientPaint implements Paint { @@ -223,19 +224,32 @@ public class GradientPaint implements Paint { } /** - * Creates and returns a context used to generate the color pattern. - * @param cm {@link ColorModel} that receives - * the Paint data. This is used only as a hint. - * @param deviceBounds the device space bounding box of the - * graphics primitive being rendered - * @param userBounds the user space bounding box of the - * graphics primitive being rendered + * Creates and returns a {@link PaintContext} used to + * generate a linear color gradient pattern. + * See the {@link Paint#createContext specification} of the + * method in the {@link Paint} interface for information + * on null parameter handling. + * + * @param cm the preferred {@link ColorModel} which represents the most convenient + * format for the caller to receive the pixel data, or {@code null} + * if there is no preference. + * @param deviceBounds the device space bounding box + * of the graphics primitive being rendered. + * @param userBounds the user space bounding box + * of the graphics primitive being rendered. * @param xform the {@link AffineTransform} from user - * space into device space - * @param hints the hints that the context object uses to choose - * between rendering alternatives - * @return the {@link PaintContext} that generates color patterns. + * space into device space. + * @param hints the set of hints that the context object can use to + * choose between rendering alternatives. + * @return the {@code PaintContext} for + * generating color patterns. + * @see Paint * @see PaintContext + * @see ColorModel + * @see Rectangle + * @see Rectangle2D + * @see AffineTransform + * @see RenderingHints */ public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, diff --git a/jdk/src/share/classes/java/awt/KeyboardFocusManager.java b/jdk/src/share/classes/java/awt/KeyboardFocusManager.java index ae14e8311e8..d4a9e34f57d 100644 --- a/jdk/src/share/classes/java/awt/KeyboardFocusManager.java +++ b/jdk/src/share/classes/java/awt/KeyboardFocusManager.java @@ -2578,6 +2578,10 @@ public abstract class KeyboardFocusManager } } + static boolean isAutoFocusTransferEnabledFor(Component comp) { + return isAutoFocusTransferEnabled() && comp.isAutoFocusTransferOnDisposal(); + } + /* * Used to process exceptions in dispatching focus event (in focusLost/focusGained callbacks). * @param ex previously caught exception that may be processed right here, or null diff --git a/jdk/src/share/classes/java/awt/LinearGradientPaint.java b/jdk/src/share/classes/java/awt/LinearGradientPaint.java index ea5a7339d16..2cf21cbe86d 100644 --- a/jdk/src/share/classes/java/awt/LinearGradientPaint.java +++ b/jdk/src/share/classes/java/awt/LinearGradientPaint.java @@ -296,7 +296,32 @@ public final class LinearGradientPaint extends MultipleGradientPaint { } /** - * {@inheritDoc} + * Creates and returns a {@link PaintContext} used to + * generate a linear color gradient pattern. + * See the {@link Paint#createContext specification} of the + * method in the {@link Paint} interface for information + * on null parameter handling. + * + * @param cm the preferred {@link ColorModel} which represents the most convenient + * format for the caller to receive the pixel data, or {@code null} + * if there is no preference. + * @param deviceBounds the device space bounding box + * of the graphics primitive being rendered. + * @param userBounds the user space bounding box + * of the graphics primitive being rendered. + * @param transform the {@link AffineTransform} from user + * space into device space. + * @param hints the set of hints that the context object can use to + * choose between rendering alternatives. + * @return the {@code PaintContext} for + * generating color patterns. + * @see Paint + * @see PaintContext + * @see ColorModel + * @see Rectangle + * @see Rectangle2D + * @see AffineTransform + * @see RenderingHints */ public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, diff --git a/jdk/src/share/classes/java/awt/MenuItem.java b/jdk/src/share/classes/java/awt/MenuItem.java index 899cab485ee..54756b8f488 100644 --- a/jdk/src/share/classes/java/awt/MenuItem.java +++ b/jdk/src/share/classes/java/awt/MenuItem.java @@ -847,7 +847,7 @@ public class MenuItem extends MenuComponent implements Accessible { public String getAccessibleActionDescription(int i) { if (i == 0) { // [[[PENDING: WDW -- need to provide a localized string]]] - return new String("click"); + return "click"; } else { return null; } diff --git a/jdk/src/share/classes/java/awt/Paint.java b/jdk/src/share/classes/java/awt/Paint.java index 07c4274a08f..8e572db7eab 100644 --- a/jdk/src/share/classes/java/awt/Paint.java +++ b/jdk/src/share/classes/java/awt/Paint.java @@ -46,42 +46,58 @@ import java.awt.geom.Rectangle2D; * @see GradientPaint * @see TexturePaint * @see Graphics2D#setPaint + * @version 1.36, 06/05/07 */ public interface Paint extends Transparency { /** * Creates and returns a {@link PaintContext} used to * generate the color pattern. - * Since the ColorModel argument to createContext is only a - * hint, implementations of Paint should accept a null argument - * for ColorModel. Note that if the application does not - * prefer a specific ColorModel, the null ColorModel argument - * will give the Paint implementation full leeway in using the - * most efficient ColorModel it prefers for its raster processing. - *

- * Since the API documentation was not specific about this in - * releases before 1.4, there may be implementations of - * Paint that do not accept a null - * ColorModel argument. - * If a developer is writing code which passes a null - * ColorModel argument to the - * createContext method of Paint - * objects from arbitrary sources it would be wise to code defensively - * by manufacturing a non-null ColorModel for those - * objects which throw a NullPointerException. - * @param cm the {@link ColorModel} that receives the - * Paint data. This is used only as a hint. + * The arguments to this method convey additional information + * about the rendering operation that may be + * used or ignored on various implementations of the {@code Paint} interface. + * A caller must pass non-{@code null} values for all of the arguments + * except for the {@code ColorModel} argument which may be {@code null} to + * indicate that no specific {@code ColorModel} type is preferred. + * Implementations of the {@code Paint} interface are allowed to use or ignore + * any of the arguments as makes sense for their function, and are + * not constrained to use the specified {@code ColorModel} for the returned + * {@code PaintContext}, even if it is not {@code null}. + * Implementations are allowed to throw {@code NullPointerException} for + * any {@code null} argument other than the {@code ColorModel} argument, + * but are not required to do so. + * + * @param cm the preferred {@link ColorModel} which represents the most convenient + * format for the caller to receive the pixel data, or {@code null} + * if there is no preference. * @param deviceBounds the device space bounding box - * of the graphics primitive being rendered + * of the graphics primitive being rendered. + * Implementations of the {@code Paint} interface + * are allowed to throw {@code NullPointerException} + * for a {@code null} {@code deviceBounds}. * @param userBounds the user space bounding box - * of the graphics primitive being rendered + * of the graphics primitive being rendered. + * Implementations of the {@code Paint} interface + * are allowed to throw {@code NullPointerException} + * for a {@code null} {@code userBounds}. * @param xform the {@link AffineTransform} from user - * space into device space - * @param hints the hint that the context object uses to - * choose between rendering alternatives - * @return the PaintContext for - * generating color patterns + * space into device space. + * Implementations of the {@code Paint} interface + * are allowed to throw {@code NullPointerException} + * for a {@code null} {@code xform}. + * @param hints the set of hints that the context object can use to + * choose between rendering alternatives. + * Implementations of the {@code Paint} interface + * are allowed to throw {@code NullPointerException} + * for a {@code null} {@code hints}. + * @return the {@code PaintContext} for + * generating color patterns. * @see PaintContext + * @see ColorModel + * @see Rectangle + * @see Rectangle2D + * @see AffineTransform + * @see RenderingHints */ public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, diff --git a/jdk/src/share/classes/java/awt/Point.java b/jdk/src/share/classes/java/awt/Point.java index 73c4aa3e79f..9bbe0346955 100644 --- a/jdk/src/share/classes/java/awt/Point.java +++ b/jdk/src/share/classes/java/awt/Point.java @@ -1,5 +1,5 @@ /* - * Copyright 1995-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1995-2008 Sun Microsystems, Inc. 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 @@ -26,6 +26,7 @@ package java.awt; import java.awt.geom.Point2D; +import java.beans.Transient; /** * A point representing a location in {@code (x,y)} coordinate space, @@ -119,6 +120,7 @@ public class Point extends Point2D implements java.io.Serializable { * @see java.awt.Point#setLocation(int, int) * @since 1.1 */ + @Transient public Point getLocation() { return new Point(x, y); } diff --git a/jdk/src/share/classes/java/awt/RadialGradientPaint.java b/jdk/src/share/classes/java/awt/RadialGradientPaint.java index 278906bb771..494daa57d1e 100644 --- a/jdk/src/share/classes/java/awt/RadialGradientPaint.java +++ b/jdk/src/share/classes/java/awt/RadialGradientPaint.java @@ -543,7 +543,31 @@ public final class RadialGradientPaint extends MultipleGradientPaint { } /** - * {@inheritDoc} + * Creates and returns a {@link PaintContext} used to + * generate a circular radial color gradient pattern. + * See the description of the {@link Paint#createContext createContext} method + * for information on null parameter handling. + * + * @param cm the preferred {@link ColorModel} which represents the most convenient + * format for the caller to receive the pixel data, or {@code null} + * if there is no preference. + * @param deviceBounds the device space bounding box + * of the graphics primitive being rendered. + * @param userBounds the user space bounding box + * of the graphics primitive being rendered. + * @param transform the {@link AffineTransform} from user + * space into device space. + * @param hints the set of hints that the context object can use to + * choose between rendering alternatives. + * @return the {@code PaintContext} for + * generating color patterns. + * @see Paint + * @see PaintContext + * @see ColorModel + * @see Rectangle + * @see Rectangle2D + * @see AffineTransform + * @see RenderingHints */ public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, diff --git a/jdk/src/share/classes/java/awt/Rectangle.java b/jdk/src/share/classes/java/awt/Rectangle.java index 1457b4d07bc..bf51092ef1f 100644 --- a/jdk/src/share/classes/java/awt/Rectangle.java +++ b/jdk/src/share/classes/java/awt/Rectangle.java @@ -1,5 +1,5 @@ /* - * Copyright 1995-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1995-2008 Sun Microsystems, Inc. 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 @@ -26,6 +26,7 @@ package java.awt; import java.awt.geom.Rectangle2D; +import java.beans.Transient; /** * A Rectangle specifies an area in a coordinate space that is @@ -308,6 +309,7 @@ public class Rectangle extends Rectangle2D * @see #setBounds(int, int, int, int) * @since 1.1 */ + @Transient public Rectangle getBounds() { return new Rectangle(x, y, width, height); } diff --git a/jdk/src/share/classes/java/awt/ScrollPane.java b/jdk/src/share/classes/java/awt/ScrollPane.java index f4303c0aea4..b34c978474f 100644 --- a/jdk/src/share/classes/java/awt/ScrollPane.java +++ b/jdk/src/share/classes/java/awt/ScrollPane.java @@ -1,5 +1,5 @@ /* - * Copyright 1996-2007 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1996-2008 Sun Microsystems, Inc. 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 @@ -32,6 +32,7 @@ import sun.awt.ScrollPaneWheelScroller; import sun.awt.SunToolkit; import java.beans.ConstructorProperties; +import java.beans.Transient; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.IOException; @@ -390,6 +391,7 @@ public class ScrollPane extends Container implements Accessible { * @throws NullPointerException if the scrollpane does not contain * a child */ + @Transient public Point getScrollPosition() { if (ncomponents <= 0) { throw new NullPointerException("child is null"); diff --git a/jdk/src/share/classes/java/awt/TexturePaint.java b/jdk/src/share/classes/java/awt/TexturePaint.java index 7c5dd5de01e..c4054e5783a 100644 --- a/jdk/src/share/classes/java/awt/TexturePaint.java +++ b/jdk/src/share/classes/java/awt/TexturePaint.java @@ -45,6 +45,7 @@ import java.awt.image.ColorModel; * replicated Rectangle2D. * @see Paint * @see Graphics2D#setPaint + * @version 1.48, 06/05/07 */ public class TexturePaint implements Paint { @@ -93,20 +94,32 @@ public class TexturePaint implements Paint { } /** - * Creates and returns a context used to generate the color pattern. - * @param cm the {@link ColorModel} that receives the - * Paint data. This is used only as a hint. - * @param deviceBounds the device space bounding box of the graphics - * primitive being rendered - * @param userBounds the user space bounding box of the graphics - * primitive being rendered - * @param xform the {@link AffineTransform} from user space - * into device space - * @param hints a {@link RenderingHints} object that can be used to - * specify how the pattern is ultimately rendered - * @return the {@link PaintContext} used for generating color - * patterns. + * Creates and returns a {@link PaintContext} used to + * generate a tiled image pattern. + * See the {@link Paint#createContext specification} of the + * method in the {@link Paint} interface for information + * on null parameter handling. + * + * @param cm the preferred {@link ColorModel} which represents the most convenient + * format for the caller to receive the pixel data, or {@code null} + * if there is no preference. + * @param deviceBounds the device space bounding box + * of the graphics primitive being rendered. + * @param userBounds the user space bounding box + * of the graphics primitive being rendered. + * @param xform the {@link AffineTransform} from user + * space into device space. + * @param hints the set of hints that the context object can use to + * choose between rendering alternatives. + * @return the {@code PaintContext} for + * generating color patterns. + * @see Paint * @see PaintContext + * @see ColorModel + * @see Rectangle + * @see Rectangle2D + * @see AffineTransform + * @see RenderingHints */ public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, diff --git a/jdk/src/share/classes/java/awt/datatransfer/SystemFlavorMap.java b/jdk/src/share/classes/java/awt/datatransfer/SystemFlavorMap.java index 77eb2bcec61..57936eb6045 100644 --- a/jdk/src/share/classes/java/awt/datatransfer/SystemFlavorMap.java +++ b/jdk/src/share/classes/java/awt/datatransfer/SystemFlavorMap.java @@ -298,7 +298,7 @@ public final class SystemFlavorMap implements FlavorMap, FlavorTable { while (continueLine(line)) { String nextLine = in.readLine(); if (nextLine == null) { - nextLine = new String(""); + nextLine = ""; } String loppedLine = line.substring(0, line.length() - 1); @@ -313,7 +313,7 @@ public final class SystemFlavorMap implements FlavorMap, FlavorTable { } nextLine = nextLine.substring(startIndex, nextLine.length()); - line = new String(loppedLine+nextLine); + line = loppedLine+nextLine; } // Find start of key diff --git a/jdk/src/share/classes/java/awt/dnd/DragGestureEvent.java b/jdk/src/share/classes/java/awt/dnd/DragGestureEvent.java index 9996275225c..73885d436a1 100644 --- a/jdk/src/share/classes/java/awt/dnd/DragGestureEvent.java +++ b/jdk/src/share/classes/java/awt/dnd/DragGestureEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 1998-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1998-2008 Sun Microsystems, Inc. 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 @@ -55,9 +55,19 @@ import java.io.ObjectOutputStream; * platform dependent drag initiating gesture has occurred * on the Component that it is tracking. * + * The {@code action} field of any {@code DragGestureEvent} instance should take one of the following + * values: + *

+ * Assigning the value different from listed above will cause an unspecified behavior. + * * @see java.awt.dnd.DragGestureRecognizer * @see java.awt.dnd.DragGestureListener * @see java.awt.dnd.DragSource + * @see java.awt.dnd.DnDConstants */ public class DragGestureEvent extends EventObject { @@ -65,19 +75,25 @@ public class DragGestureEvent extends EventObject { private static final long serialVersionUID = 9080172649166731306L; /** - * Constructs a DragGestureEvent given the - * DragGestureRecognizer firing this event, - * an int representing - * the user's preferred action, a Point - * indicating the origin of the drag, and a List - * of events that comprise the gesture. + * Constructs a DragGestureEvent object given by the + * DragGestureRecognizer instance firing this event, + * an {@code act} parameter representing + * the user's preferred action, an {@code ori} parameter + * indicating the origin of the drag, and a {@code List} of + * events that comprise the gesture({@code evs} parameter). *

* @param dgr The DragGestureRecognizer firing this event - * @param act The the user's preferred action + * @param act The user's preferred action. + * For information on allowable values, see + * the class description for {@link DragGestureEvent} * @param ori The origin of the drag * @param evs The List of events that comprise the gesture *

- * @throws IllegalArgumentException if input parameters are {@code null} + * @throws IllegalArgumentException if any parameter equals {@code null} + * @throws IllegalArgumentException if the act parameter does not comply with + * the values given in the class + * description for {@link DragGestureEvent} + * @see java.awt.dnd.DnDConstants */ public DragGestureEvent(DragGestureRecognizer dgr, int act, Point ori, diff --git a/jdk/src/share/classes/java/awt/dnd/DropTargetEvent.java b/jdk/src/share/classes/java/awt/dnd/DropTargetEvent.java index 64d0b44d170..42fd397c701 100644 --- a/jdk/src/share/classes/java/awt/dnd/DropTargetEvent.java +++ b/jdk/src/share/classes/java/awt/dnd/DropTargetEvent.java @@ -45,10 +45,13 @@ public class DropTargetEvent extends java.util.EventObject { private static final long serialVersionUID = 2821229066521922993L; /** - * Construct a DropTargetEvent with - * a specified DropTargetContext. + * Construct a DropTargetEvent object with + * the specified DropTargetContext. *

- * @param dtc the DropTargetContext + * @param dtc The DropTargetContext + * @throws NullPointerException if {@code dtc} equals {@code null}. + * @see #getSource() + * @see #getDropTargetContext() */ public DropTargetEvent(DropTargetContext dtc) { diff --git a/jdk/src/share/classes/java/awt/event/ActionEvent.java b/jdk/src/share/classes/java/awt/event/ActionEvent.java index 41ed7d6488c..b81ab8a8f4f 100644 --- a/jdk/src/share/classes/java/awt/event/ActionEvent.java +++ b/jdk/src/share/classes/java/awt/event/ActionEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 1996-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1996-2008 Sun Microsystems, Inc. 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 @@ -45,6 +45,10 @@ import java.awt.Event; * is therefore spared the details of processing individual mouse movements * and mouse clicks, and can instead process a "meaningful" (semantic) * event like "button pressed". + *

+ * An unspecified behavior will be caused if the {@code id} parameter + * of any particular {@code ActionEvent} instance is not + * in the range from {@code ACTION_FIRST} to {@code ACTION_LAST}. * * @see ActionListener * @see Tutorial: Java 1.1 Event Model @@ -134,18 +138,22 @@ public class ActionEvent extends AWTEvent { /** * Constructs an ActionEvent object. *

- * Note that passing in an invalid id results in - * unspecified behavior. This method throws an + * This method throws an * IllegalArgumentException if source * is null. * A null command string is legal, * but not recommended. * - * @param source the object that originated the event - * @param id an integer that identifies the event - * @param command a string that may specify a command (possibly one + * @param source The object that originated the event + * @param id An integer that identifies the event. + * For information on allowable values, see + * the class description for {@link ActionEvent} + * @param command A string that may specify a command (possibly one * of several) associated with the event * @throws IllegalArgumentException if source is null + * @see #getSource() + * @see #getID() + * @see #getActionCommand() */ public ActionEvent(Object source, int id, String command) { this(source, id, command, 0); @@ -154,19 +162,27 @@ public class ActionEvent extends AWTEvent { /** * Constructs an ActionEvent object with modifier keys. *

- * Note that passing in an invalid id results in - * unspecified behavior. This method throws an + * This method throws an * IllegalArgumentException if source * is null. * A null command string is legal, * but not recommended. * - * @param source the object that originated the event - * @param id an integer that identifies the event - * @param command a string that may specify a command (possibly one - * of several) associated with the event - * @param modifiers the modifier keys held down during this action + * @param source The object that originated the event + * @param id An integer that identifies the event. + * For information on allowable values, see + * the class description for {@link ActionEvent} + * @param command A string that may specify a command (possibly one + * of several) associated with the event + * @param modifiers The modifier keys down during event + * (shift, ctrl, alt, meta). + * Passing negative parameter is not recommended. + * Zero value means that no modifiers were passed * @throws IllegalArgumentException if source is null + * @see #getSource() + * @see #getID() + * @see #getActionCommand() + * @see #getModifiers() */ public ActionEvent(Object source, int id, String command, int modifiers) { this(source, id, command, 0, modifiers); @@ -176,20 +192,31 @@ public class ActionEvent extends AWTEvent { * Constructs an ActionEvent object with the specified * modifier keys and timestamp. *

- * Note that passing in an invalid id results in - * unspecified behavior. This method throws an + * This method throws an * IllegalArgumentException if source * is null. * A null command string is legal, * but not recommended. * - * @param source the object that originated the event - * @param id an integer that identifies the event - * @param command a string that may specify a command (possibly one - * of several) associated with the event - * @param when the time the event occurred - * @param modifiers the modifier keys held down during this action + * @param source The object that originated the event + * @param id An integer that identifies the event. + * For information on allowable values, see + * the class description for {@link ActionEvent} + * @param command A string that may specify a command (possibly one + * of several) associated with the event + * @param modifiers The modifier keys down during event + * (shift, ctrl, alt, meta). + * Passing negative parameter is not recommended. + * Zero value means that no modifiers were passed + * @param when A long that gives the time the event occurred. + * Passing negative or zero value + * is not recommended * @throws IllegalArgumentException if source is null + * @see #getSource() + * @see #getID() + * @see #getActionCommand() + * @see #getModifiers() + * @see #getWhen() * * @since 1.4 */ diff --git a/jdk/src/share/classes/java/awt/event/AdjustmentEvent.java b/jdk/src/share/classes/java/awt/event/AdjustmentEvent.java index b928899b2ec..590dae60ffb 100644 --- a/jdk/src/share/classes/java/awt/event/AdjustmentEvent.java +++ b/jdk/src/share/classes/java/awt/event/AdjustmentEvent.java @@ -29,7 +29,25 @@ import java.awt.Adjustable; import java.awt.AWTEvent; /** - * The adjustment event emitted by Adjustable objects. + * The adjustment event emitted by Adjustable objects like + * {@link java.awt.Scrollbar} and {@link java.awt.ScrollPane}. + * When the user changes the value of the scrolling component, + * it receives an instance of {@code AdjustmentEvent}. + *

+ * An unspecified behavior will be caused if the {@code id} parameter + * of any particular {@code AdjustmentEvent} instance is not + * in the range from {@code ADJUSTMENT_FIRST} to {@code ADJUSTMENT_LAST}. + *

+ * The {@code type} of any {@code AdjustmentEvent} instance takes one of the following + * values: + *

+ * Assigning the value different from listed above will cause an unspecified behavior. * @see java.awt.Adjustable * @see AdjustmentListener * @@ -130,17 +148,24 @@ public class AdjustmentEvent extends AWTEvent { * Constructs an AdjustmentEvent object with the * specified Adjustable source, event type, * adjustment type, and value. - *

Note that passing in an invalid id results in - * unspecified behavior. This method throws an + *

This method throws an * IllegalArgumentException if source * is null. * - * @param source the Adjustable object where the + * @param source The Adjustable object where the * event originated - * @param id the event type - * @param type the adjustment type - * @param value the current value of the adjustment + * @param id An integer indicating the type of event. + * For information on allowable values, see + * the class description for {@link AdjustmentEvent} + * @param type An integer indicating the adjustment type. + * For information on allowable values, see + * the class description for {@link AdjustmentEvent} + * @param value The current value of the adjustment * @throws IllegalArgumentException if source is null + * @see #getSource() + * @see #getID() + * @see #getAdjustmentType() + * @see #getValue() */ public AdjustmentEvent(Adjustable source, int id, int type, int value) { this(source, id, type, value, false); @@ -149,22 +174,29 @@ public class AdjustmentEvent extends AWTEvent { /** * Constructs an AdjustmentEvent object with the * specified Adjustable source, event type, adjustment type, and value. - *

Note that passing in an invalid id results in - * unspecified behavior. This method throws an + *

This method throws an * IllegalArgumentException if source * is null. - * - * @param source the Adjustable object where the + * @param source The Adjustable object where the * event originated - * @param id the event type - * @param type the adjustment type - * @param value the current value of the adjustment - * @param isAdjusting true if the event is one + * @param id An integer indicating the type of event. + * For information on allowable values, see + * the class description for {@link AdjustmentEvent} + * @param type An integer indicating the adjustment type. + * For information on allowable values, see + * the class description for {@link AdjustmentEvent} + * @param value The current value of the adjustment + * @param isAdjusting A boolean that equals true if the event is one * of a series of multiple adjusting events, * otherwise false * @throws IllegalArgumentException if source is null * @since 1.4 + * @see #getSource() + * @see #getID() + * @see #getAdjustmentType() + * @see #getValue() + * @see #getValueIsAdjusting() */ public AdjustmentEvent(Adjustable source, int id, int type, int value, boolean isAdjusting) { super(source, id); diff --git a/jdk/src/share/classes/java/awt/event/ComponentEvent.java b/jdk/src/share/classes/java/awt/event/ComponentEvent.java index a0264b81af0..bd51d262ef7 100644 --- a/jdk/src/share/classes/java/awt/event/ComponentEvent.java +++ b/jdk/src/share/classes/java/awt/event/ComponentEvent.java @@ -52,6 +52,10 @@ import java.awt.Rectangle; * (ComponentAdapter objects implement the * ComponentListener interface.) Each such listener object * gets this ComponentEvent when the event occurs. + *

+ * An unspecified behavior will be caused if the {@code id} parameter + * of any particular {@code ComponentEvent} instance is not + * in the range from {@code COMPONENT_FIRST} to {@code COMPONENT_LAST}. * * @see ComponentAdapter * @see ComponentListener @@ -99,14 +103,17 @@ public class ComponentEvent extends AWTEvent { /** * Constructs a ComponentEvent object. - *

Note that passing in an invalid id results in - * unspecified behavior. This method throws an + *

This method throws an * IllegalArgumentException if source * is null. * - * @param source the Component that originated the event - * @param id an integer indicating the type of event + * @param source The Component that originated the event + * @param id An integer indicating the type of event. + * For information on allowable values, see + * the class description for {@link ComponentEvent} * @throws IllegalArgumentException if source is null + * @see #getComponent() + * @see #getID() */ public ComponentEvent(Component source, int id) { super(source, id); diff --git a/jdk/src/share/classes/java/awt/event/ContainerEvent.java b/jdk/src/share/classes/java/awt/event/ContainerEvent.java index f927312ba0b..16ef5b1c92f 100644 --- a/jdk/src/share/classes/java/awt/event/ContainerEvent.java +++ b/jdk/src/share/classes/java/awt/event/ContainerEvent.java @@ -45,6 +45,10 @@ import java.awt.Component; * (ContainerAdapter objects implement the * ContainerListener interface.) Each such listener object * gets this ContainerEvent when the event occurs. + *

+ * An unspecified behavior will be caused if the {@code id} parameter + * of any particular {@code ContainerEvent} instance is not + * in the range from {@code CONTAINER_FIRST} to {@code CONTAINER_LAST}. * * @see ContainerAdapter * @see ContainerListener @@ -92,16 +96,20 @@ public class ContainerEvent extends ComponentEvent { /** * Constructs a ContainerEvent object. - *

Note that passing in an invalid id results in - * unspecified behavior. This method throws an + *

This method throws an * IllegalArgumentException if source * is null. * - * @param source the Component object (container) + * @param source The Component object (container) * that originated the event - * @param id an integer indicating the type of event + * @param id An integer indicating the type of event. + * For information on allowable values, see + * the class description for {@link ContainerEvent} * @param child the component that was added or removed * @throws IllegalArgumentException if source is null + * @see #getContainer() + * @see #getID() + * @see #getChild() */ public ContainerEvent(Component source, int id, Component child) { super(source, id); diff --git a/jdk/src/share/classes/java/awt/event/FocusEvent.java b/jdk/src/share/classes/java/awt/event/FocusEvent.java index 188ce44b720..ec018e0126e 100644 --- a/jdk/src/share/classes/java/awt/event/FocusEvent.java +++ b/jdk/src/share/classes/java/awt/event/FocusEvent.java @@ -50,6 +50,10 @@ import sun.awt.SunToolkit; * reactivated. Both permanent and temporary focus events are delivered using * the FOCUS_GAINED and FOCUS_LOST event ids; the level may be distinguished in * the event using the isTemporary() method. + *

+ * An unspecified behavior will be caused if the {@code id} parameter + * of any particular {@code FocusEvent} instance is not + * in the range from {@code FOCUS_FIRST} to {@code FOCUS_LAST}. * * @see FocusAdapter * @see FocusListener @@ -121,18 +125,23 @@ public class FocusEvent extends ComponentEvent { * application, with a Java application in a different VM, * or with no other Component, then the opposite * Component is null. - *

Note that passing in an invalid id results in - * unspecified behavior. This method throws an + *

This method throws an * IllegalArgumentException if source * is null. * - * @param source the Component that originated the event - * @param id FOCUS_GAINED or FOCUS_LOST - * @param temporary true if the focus change is temporary; + * @param source The Component that originated the event + * @param id An integer indicating the type of event. + * For information on allowable values, see + * the class description for {@link FocusEvent} + * @param temporary Equals true if the focus change is temporary; * false otherwise - * @param opposite the other Component involved in the focus change, + * @param opposite The other Component involved in the focus change, * or null - * @throws IllegalArgumentException if source is null + * @throws IllegalArgumentException if source equals {@code null} + * @see #getSource() + * @see #getID() + * @see #isTemporary() + * @see #getOppositeComponent() * @since 1.4 */ public FocusEvent(Component source, int id, boolean temporary, @@ -145,16 +154,20 @@ public class FocusEvent extends ComponentEvent { /** * Constructs a FocusEvent object and identifies * whether or not the change is temporary. - *

Note that passing in an invalid id results in - * unspecified behavior. This method throws an + *

This method throws an * IllegalArgumentException if source * is null. * - * @param source the Component that originated the event - * @param id an integer indicating the type of event - * @param temporary true if the focus change is temporary; + * @param source The Component that originated the event + * @param id An integer indicating the type of event. + * For information on allowable values, see + * the class description for {@link FocusEvent} + * @param temporary Equals true if the focus change is temporary; * false otherwise - * @throws IllegalArgumentException if source is null + * @throws IllegalArgumentException if source equals {@code null} + * @see #getSource() + * @see #getID() + * @see #isTemporary() */ public FocusEvent(Component source, int id, boolean temporary) { this(source, id, temporary, null); @@ -163,14 +176,17 @@ public class FocusEvent extends ComponentEvent { /** * Constructs a FocusEvent object and identifies it * as a permanent change in focus. - *

Note that passing in an invalid id results in - * unspecified behavior. This method throws an + *

This method throws an * IllegalArgumentException if source * is null. * - * @param source the Component that originated the event - * @param id an integer indicating the type of event - * @throws IllegalArgumentException if source is null + * @param source The Component that originated the event + * @param id An integer indicating the type of event. + * For information on allowable values, see + * the class description for {@link FocusEvent} + * @throws IllegalArgumentException if source equals {@code null} + * @see #getSource() + * @see #getID() */ public FocusEvent(Component source, int id) { this(source, id, false); diff --git a/jdk/src/share/classes/java/awt/event/HierarchyEvent.java b/jdk/src/share/classes/java/awt/event/HierarchyEvent.java index d57256a45a2..6ed6ab18edb 100644 --- a/jdk/src/share/classes/java/awt/event/HierarchyEvent.java +++ b/jdk/src/share/classes/java/awt/event/HierarchyEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 1999-2004 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1999-2008 Sun Microsystems, Inc. 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 @@ -31,7 +31,7 @@ import java.awt.Container; /** * An event which indicates a change to the Component - * hierarchy to which a Component belongs. + * hierarchy to which Component belongs. *