--- old/src/java.desktop/share/classes/com/sun/awt/AWTUtilities.java 2014-09-10 15:10:59.194781000 +0400 +++ new/src/java.desktop/share/classes/com/sun/awt/AWTUtilities.java 2014-09-10 15:10:58.305143900 +0400 @@ -55,7 +55,7 @@ * windows using a translucency-capable graphics configuration. * The {@code isTranslucencyCapable()} method must * be used to verify whether any given GraphicsConfiguration supports - * the trasnlcency effects. + * the translucency effects. *
* WARNING: This class is an implementation detail and only meant * for limited use outside of the core platform. This API may change --- old/src/java.desktop/share/classes/com/sun/awt/SecurityWarning.java 2014-09-10 15:11:04.077525300 +0400 +++ new/src/java.desktop/share/classes/com/sun/awt/SecurityWarning.java 2014-09-10 15:11:03.746316800 +0400 @@ -106,7 +106,7 @@ * the window. The "absolute" in this case means that the position of the * security warning is not effected by resizing of the window. *
- * Note that the security warning managment code guarantees that: + * Note that the security warning management code guarantees that: *
* Alternately, an implementation that uses floating point math
* might produce more accurate results and end up returning to the
- * original pixel value with little, if any, roundoff error.
+ * original pixel value with little, if any, round-off error.
* Or, an implementation using integer math might decide that since
* the equations boil down to a virtual NOP on the color values
* if performed in a floating point space, it can transfer the
--- old/src/java.desktop/share/classes/java/awt/BorderLayout.java 2014-09-10 15:11:16.416549100 +0400
+++ new/src/java.desktop/share/classes/java/awt/BorderLayout.java 2014-09-10 15:11:16.200942000 +0400
@@ -74,7 +74,7 @@
* For example, if you add components using both the NORTH
* and PAGE_START
constants in a container whose
* orientation is LEFT_TO_RIGHT
, only the
- * PAGE_START
will be layed out.
+ * PAGE_START
will be laid out.
*
* NOTE: Currently (in the Java 2 platform v1.2),
* BorderLayout
does not support vertical
@@ -211,7 +211,7 @@
* For example, if you add components using both the NORTH
* and BEFORE_FIRST_LINE
constants in a container whose
* orientation is LEFT_TO_RIGHT
, only the
- * BEFORE_FIRST_LINE
will be layed out.
+ * BEFORE_FIRST_LINE
will be laid out.
* This will be the same for lastLine, firstItem, lastItem.
* @serial
*/
--- old/src/java.desktop/share/classes/java/awt/CardLayout.java 2014-09-10 15:11:19.114056700 +0400
+++ new/src/java.desktop/share/classes/java/awt/CardLayout.java 2014-09-10 15:11:18.731444300 +0400
@@ -109,7 +109,7 @@
/**
* @serialField tab Hashtable
- * deprectated, for forward compatibility only
+ * deprecated, for forward compatibility only
* @serialField hgap int
* @serialField vgap int
* @serialField vector Vector
--- old/src/java.desktop/share/classes/java/awt/Component.java 2014-09-10 15:11:22.601342000 +0400
+++ new/src/java.desktop/share/classes/java/awt/Component.java 2014-09-10 15:11:21.809727900 +0400
@@ -167,7 +167,7 @@
* }
*
*
- * Note: For more information on the paint mechanisms utilitized
+ * Note: For more information on the paint mechanisms utilized
* by AWT and Swing, including information on how to write the most
* efficient painting code, see
* Painting in AWT and Swing.
@@ -355,7 +355,7 @@
/**
* True when the object is valid. An invalid object needs to
- * be layed out. This flag is set to false when the object
+ * be laid out. This flag is set to false when the object
* size is changed.
*
* @serial
@@ -418,7 +418,7 @@
private static final int FOCUS_TRAVERSABLE_SET = 2;
/**
- * Tracks whether this Component is relying on default focus travesability.
+ * Tracks whether this Component is relying on default focus traversability.
*
* @serial
* @since 1.4
@@ -661,7 +661,7 @@
* can lead to a deadlock if client code also uses synchronization
* by a component object. For every such situation revealed we should
* consider possibility of replacing "this" with the package private
- * objectLock object introduced below. So far there're 3 issues known:
+ * objectLock object introduced below. So far there are 3 issues known:
* - CR 6708322 (the getName/setName methods);
* - CR 6608764 (the PropertyChangeListener machinery);
* - CR 7108598 (the Container.paint/KeyboardFocusManager.clearMostRecentFocusOwner methods).
@@ -783,7 +783,8 @@
}
/*
- * The shape set with the applyCompoundShape() method. It uncludes the result
+ * The shape set with the applyCompoundShape() method. It includes the
+ * result
* of the HW/LW mixing related shape computation. It may also include
* the user-specified shape of the component.
* The 'null' value means the component has normal shape (or has no shape at all)
@@ -808,7 +809,7 @@
/**
* Should only be used in subclass getBounds to check that part of bounds
- * is actualy changing
+ * is actually changing
*/
int getBoundsOp() {
assert Thread.holdsLock(getTreeLock());
@@ -1691,7 +1692,7 @@
}
/*
- * Delete references from LightweithDispatcher of a heavyweight parent
+ * Delete references from LightweightDispatcher of a heavyweight parent
*/
void clearLightweightDispatcherOnRemove(Component removedComponent) {
if (parent != null) {
@@ -2337,10 +2338,10 @@
boolean needNotify = true;
mixOnReshaping();
if (peer != null) {
- // LightwightPeer is an empty stub so can skip peer.reshape
+ // LightweightPeer is an empty stub so can skip peer.reshape
if (!(peer instanceof LightweightPeer)) {
reshapeNativePeer(x, y, width, height, getBoundsOp());
- // Check peer actualy changed coordinates
+ // Check peer actually changed coordinates
resized = (oldWidth != this.width) || (oldHeight != this.height);
moved = (oldX != this.x) || (oldY != this.y);
// fix for 5025858: do not send ComponentEvents for toplevel
@@ -5106,7 +5107,7 @@
// ancestor, there is no need trying to find descendant
// lightweights to dispatch event to.
// If we dispatch the event to toplevel ancestor,
- // this could encolse the loop: 6480024.
+ // this could enclose the loop: 6480024.
anc.dispatchEventToSelf(newMWE);
if (newMWE.isConsumed()) {
e.consume();
@@ -6203,7 +6204,7 @@
* Indicates whether this class overrides coalesceEvents.
* It is assumed that all classes that are loaded from the bootstrap
* do not.
- * The boostrap class loader is assumed to be represented by null.
+ * The bootstrap class loader is assumed to be represented by null.
* We do not check that the method really overrides
* (it might be static, private or package private).
*/
@@ -6251,7 +6252,7 @@
Class> superclass = clazz.getSuperclass();
if (superclass == null) {
// Only occurs on implementations that
- // do not use null to represent the bootsrap class loader.
+ // do not use null to represent the bootstrap class loader.
return false;
}
if (superclass.getClassLoader() != null) {
@@ -7761,7 +7762,7 @@
while ( (window != null) && !(window instanceof Window)) {
if (!window.isVisible()) {
if (focusLog.isLoggable(PlatformLogger.Level.FINEST)) {
- focusLog.finest("component is recurively invisible");
+ focusLog.finest("component is recursively invisible");
}
return false;
}
@@ -7865,7 +7866,7 @@
// in activation. We do request focus on component which
// has got temporary focus lost and then on component which is
// most recent focus owner. But most recent focus owner can be
- // changed by requestFocsuXXX() call only, so this transfer has
+ // changed by requestFocusXXX() call only, so this transfer has
// been already approved.
if (focusLog.isLoggable(PlatformLogger.Level.FINEST)) {
focusLog.finest("cause is activation");
@@ -8692,7 +8693,7 @@
Package swingPackage = Package.getPackage("javax.swing");
// For Swing serialization to correctly work Swing needs to
// be notified before Component does it's serialization. This
- // hack accomodates this.
+ // hack accommodates this.
//
// Swing classes MUST be loaded by the bootstrap class loader,
// otherwise we don't consider them.
@@ -9040,7 +9041,7 @@
}
/**
- * Checks that this component meets the prerequesites to be focus owner:
+ * Checks that this component meets the prerequisites to be focus owner:
* - it is enabled, visible, focusable
* - it's parents are all enabled and showing
* - top-level window is focusable
@@ -9649,7 +9650,7 @@
/**
* Returns the size of this object in the form of a
* Dimension
object. The height field of the
- * Dimension
object contains this objects's
+ * Dimension
object contains this object's
* height, and the width field of the Dimension
* object contains this object's width.
*
@@ -9833,7 +9834,7 @@
/**
* Check whether we can trust the current bounds of the component.
* The return value of false indicates that the container of the
- * component is invalid, and therefore needs to be layed out, which would
+ * component is invalid, and therefore needs to be laid out, which would
* probably mean changing the bounds of its children.
* Null-layout of the container or absence of the container mean
* the bounds of the component are final and can be trusted.
--- old/src/java.desktop/share/classes/java/awt/ComponentOrientation.java 2014-09-10 15:11:27.224511300 +0400
+++ new/src/java.desktop/share/classes/java/awt/ComponentOrientation.java 2014-09-10 15:11:26.878694100 +0400
@@ -154,7 +154,7 @@
public static ComponentOrientation getOrientation(Locale locale) {
// A more flexible implementation would consult a ResourceBundle
// to find the appropriate orientation. Until pluggable locales
- // are introduced however, the flexiblity isn't really needed.
+ // are introduced however, the flexibility isn't really needed.
// So we choose efficiency instead.
String lang = locale.getLanguage();
if( "iw".equals(lang) || "ar".equals(lang)
--- old/src/java.desktop/share/classes/java/awt/Container.java 2014-09-10 15:11:29.800994700 +0400
+++ new/src/java.desktop/share/classes/java/awt/Container.java 2014-09-10 15:11:29.476786500 +0400
@@ -547,8 +547,8 @@
}
/**
- * Removes component comp from this container without making unneccessary changes
- * and generating unneccessary events. This function intended to perform optimized
+ * Removes component comp from this container without making unnecessary changes
+ * and generating unnecessary events. This function intended to perform optimized
* remove, for example, if newParent and current parent are the same it just changes
* index without calling removeNotify.
* Note: Should be called while holding treeLock
@@ -1407,11 +1407,11 @@
return;
descendantsCount += num;
- adjustDecendantsOnParent(num);
+ adjustDescendantsOnParent(num);
}
// Should only be called while holding tree lock
- void adjustDecendantsOnParent(int num) {
+ void adjustDescendantsOnParent(int num) {
if (parent != null) {
parent.adjustDescendants(num);
}
@@ -2338,7 +2338,7 @@
}
/**
- * Fetchs the top-most (deepest) lightweight component that is interested
+ * Fetches the top-most (deepest) lightweight component that is interested
* in receiving mouse events.
*/
Component getMouseEventTarget(int x, int y, boolean includeSelf) {
@@ -2887,7 +2887,7 @@
modalAppContext = AppContext.getAppContext();
// keep the KeyEvents from being dispatched
- // until the focus has been transfered
+ // until the focus has been transferred
long time = Toolkit.getEventQueue().getMostRecentKeyEventTime();
Component predictedFocusOwner = (Component.isInstanceOf(this, "javax.swing.JInternalFrame")) ? ((javax.swing.JInternalFrame)(this)).getMostRecentFocusOwner() : null;
if (predictedFocusOwner != null) {
@@ -3673,7 +3673,7 @@
*
null
is written.AWTPermission
must be granted
* for this exclusion. If an exclusion property is being changed to
* TOOLKIT_EXCLUDE
and this permission is not granted, a
- * SecurityEcxeption
will be thrown, and the exclusion
+ * SecurityException
will be thrown, and the exclusion
* property will be left unchanged.
*/
TOOLKIT_EXCLUDE
@@ -554,7 +554,7 @@
*
* @param owner the owner of the dialog. The owner must be an instance of
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
- * of their descendents or null
+ * of their descendants or null
*
* @exception java.lang.IllegalArgumentException if the owner
* is not an instance of {@link java.awt.Dialog Dialog} or {@link
@@ -578,7 +578,7 @@
*
* @param owner the owner of the dialog. The owner must be an instance of
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
- * of their descendents or null
+ * of their descendants or null
* @param title the title of the dialog or null
if this dialog
* has no title
*
@@ -604,7 +604,7 @@
*
* @param owner the owner of the dialog. The owner must be an instance of
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
- * of their descendents or null
+ * of their descendants or null
* @param modalityType specifies whether dialog blocks input to other
* windows when shown. null
value and unsupported modality
* types are equivalent to MODELESS
@@ -637,7 +637,7 @@
*
* @param owner the owner of the dialog. The owner must be an instance of
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
- * of their descendents or null
+ * of their descendants or null
* @param title the title of the dialog or null
if this dialog
* has no title
* @param modalityType specifies whether dialog blocks input to other
@@ -685,7 +685,7 @@
*
* @param owner the owner of the dialog. The owner must be an instance of
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
- * of their descendents or null
+ * of their descendants or null
* @param title the title of the dialog or null
if this dialog
* has no title
* @param modalityType specifies whether dialog blocks input to other
@@ -796,7 +796,7 @@
* @param modal specifies whether dialog blocks input to other windows
* when shown; calling to setModal(true)
is equivalent to
* setModalityType(Dialog.DEFAULT_MODALITY_TYPE)
, and
- * calling to setModal(false)
is equvivalent to
+ * calling to setModal(false)
is equivalent to
* setModalityType(Dialog.ModalityType.MODELESS)
*
* @see java.awt.Dialog#DEFAULT_MODALITY_TYPE
@@ -926,7 +926,7 @@
if (toFocus != null && time != null && isFocusable() &&
isEnabled() && !isModalBlocked()) {
// keep the KeyEvents from being dispatched
- // until the focus has been transfered
+ // until the focus has been transferred
time.set(Toolkit.getEventQueue().getMostRecentKeyEventTime());
KeyboardFocusManager.getCurrentKeyboardFocusManager().
enqueueKeyEvents(time.get(), toFocus);
--- old/src/java.desktop/share/classes/java/awt/EventDispatchThread.java 2014-09-10 15:11:42.387812800 +0400
+++ new/src/java.desktop/share/classes/java/awt/EventDispatchThread.java 2014-09-10 15:11:42.048202900 +0400
@@ -43,7 +43,7 @@
* pumpEvents(Conditional) in its run() method. Event handlers can choose to
* block this event pump at any time, but should start a new pump (not
* a new EventDispatchThread) by again calling pumpEvents(Conditional). This
- * secondary event pump will exit automatically as soon as the Condtional
+ * secondary event pump will exit automatically as soon as the Conditional
* evaluate()s to false and an additional Event is pumped and dispatched.
*
* @author Tom Ball
--- old/src/java.desktop/share/classes/java/awt/EventFilter.java 2014-09-10 15:11:45.105097300 +0400
+++ new/src/java.desktop/share/classes/java/awt/EventFilter.java 2014-09-10 15:11:44.744279200 +0400
@@ -32,7 +32,7 @@
*/
static enum FilterAction {
/**
- * ACCEPT means that this filter do not filter the event and allowes other
+ * ACCEPT means that this filter do not filter the event and allows other
* active filters to proceed it. If all the active filters accept the event, it
* is dispatched by the EventDispatchThread
* @see EventDispatchThread#pumpEventsForFilter
--- old/src/java.desktop/share/classes/java/awt/EventQueue.java 2014-09-10 15:11:47.136967600 +0400
+++ new/src/java.desktop/share/classes/java/awt/EventQueue.java 2014-09-10 15:11:46.823755800 +0400
@@ -418,7 +418,7 @@
/*
* Should avoid of calling this method by any means
* as it's working time is dependant on EQ length.
- * In the wors case this method alone can slow down the entire application
+ * In the worst case this method alone can slow down the entire application
* 10 times by stalling the Event processing.
* Only here by backward compatibility reasons.
*/
--- old/src/java.desktop/share/classes/java/awt/FlowLayout.java 2014-09-10 15:11:49.962275600 +0400
+++ new/src/java.desktop/share/classes/java/awt/FlowLayout.java 2014-09-10 15:11:49.632468000 +0400
@@ -161,7 +161,7 @@
int newAlign; // This is the one we actually use
/**
- * The flow layout manager allows a seperation of
+ * The flow layout manager allows a separation of
* components with gaps. The horizontal gap will
* specify the space between components and between
* the components and the borders of the
@@ -174,7 +174,7 @@
int hgap;
/**
- * The flow layout manager allows a seperation of
+ * The flow layout manager allows a separation of
* components with gaps. The vertical gap will
* specify the space between rows and between the
* the rows and the borders of the Container
.
--- old/src/java.desktop/share/classes/java/awt/Font.java 2014-09-10 15:11:52.101949600 +0400
+++ new/src/java.desktop/share/classes/java/awt/Font.java 2014-09-10 15:11:51.785341000 +0400
@@ -335,7 +335,7 @@
public static final int CENTER_BASELINE = 1;
/**
- * The baseline used in Devanigiri and similar scripts when laying
+ * The baseline used in Devanagari and similar scripts when laying
* out text.
*/
public static final int HANGING_BASELINE = 2;
@@ -852,7 +852,7 @@
*
* To make the Font
available to Font constructors the
* returned Font
must be registered in the
- * GraphicsEnviroment
by calling
+ * GraphicsEnvironment
by calling
* {@link GraphicsEnvironment#registerFont(Font) registerFont(Font)}.
* @param fontFormat the type of the Font
, which is
* {@link #TRUETYPE_FONT TRUETYPE_FONT} if a TrueType resource is specified.
@@ -1018,7 +1018,7 @@
*
* To make the Font
available to Font constructors the
* returned Font
must be registered in the
- * GraphicsEnviroment
by calling
+ * GraphicsEnvironment
by calling
* {@link GraphicsEnvironment#registerFont(Font) registerFont(Font)}.
* @param fontFile a File
object representing the
* input data for the font.
@@ -1685,7 +1685,7 @@
/** Serialization support. A readObject
- * method is neccessary because the constructor creates
+ * method is necessary because the constructor creates
* the font's peer, and we can't serialize the peer.
* Similarly the computed font "family" may be different
* at readObject
time than at
--- old/src/java.desktop/share/classes/java/awt/Frame.java 2014-09-10 15:11:55.177474400 +0400
+++ new/src/java.desktop/share/classes/java/awt/Frame.java 2014-09-10 15:11:54.822057600 +0400
@@ -348,7 +348,7 @@
/*
* The Windows owned by the Frame.
- * Note: in 1.2 this has been superceded by Window.ownedWindowList
+ * Note: in 1.2 this has been superseded by Window.ownedWindowList
*
* @serial
* @see java.awt.Window#ownedWindowList
--- old/src/java.desktop/share/classes/java/awt/GraphicsEnvironment.java 2014-09-10 15:11:57.354348800 +0400
+++ new/src/java.desktop/share/classes/java/awt/GraphicsEnvironment.java 2014-09-10 15:11:57.024541200 +0400
@@ -97,11 +97,11 @@
// long t0 = System.currentTimeMillis();
Class> geCls;
try {
- // First we try if the bootclassloader finds the requested
+ // First we try if the bootstrap classloader finds the requested
// class. This way we can avoid to run in a privileged block.
geCls = Class.forName(nm);
} catch (ClassNotFoundException ex) {
- // If the bootclassloader fails, we try again with the
+ // If the bootstrap classloader fails, we try again with the
// application classloader.
ClassLoader cl = ClassLoader.getSystemClassLoader();
geCls = Class.forName(nm, true, cl);
--- old/src/java.desktop/share/classes/java/awt/GridBagConstraints.java 2014-09-10 15:12:00.135451600 +0400
+++ new/src/java.desktop/share/classes/java/awt/GridBagConstraints.java 2014-09-10 15:11:59.763844200 +0400
@@ -556,7 +556,7 @@
transient int ascent;
transient int descent;
transient Component.BaselineResizeBehavior baselineResizeBehavior;
- // The folllowing two fields are used if the baseline type is
+ // The following two fields are used if the baseline type is
// CENTER_OFFSET.
// centerPadding is either 0 or 1 and indicates if
// the height needs to be padded by one when calculating where the
--- old/src/java.desktop/share/classes/java/awt/GridBagLayout.java 2014-09-10 15:12:02.295725900 +0400
+++ new/src/java.desktop/share/classes/java/awt/GridBagLayout.java 2014-09-10 15:12:01.938912400 +0400
@@ -1096,7 +1096,7 @@
}
/* Adjust the grid width and height
- * fix for 5005945: unneccessary loops removed
+ * fix for 5005945: unnecessary loops removed
*/
px = curX + curWidth;
if (layoutWidth < px) {
@@ -1358,7 +1358,7 @@
/*
* Pass #3
*
- * Distribute the minimun widths and weights:
+ * Distribute the minimum widths and weights:
*/
nextSize = Integer.MAX_VALUE;
@@ -1578,7 +1578,7 @@
// Component has a baseline resize behavior of
// CENTER_OFFSET, calculate centerPadding and
// centerOffset (see the description of
- // CENTER_OFFSET in the enum for detais on this
+ // CENTER_OFFSET in the enum for details on this
// algorithm).
int nextBaseline = c.getBaseline(w, h + 1);
constraints.centerOffset = baseline - h / 2;
--- old/src/java.desktop/share/classes/java/awt/JobAttributes.java 2014-09-10 15:12:05.217427300 +0400
+++ new/src/java.desktop/share/classes/java/awt/JobAttributes.java 2014-09-10 15:12:04.876019900 +0400
@@ -298,8 +298,8 @@
* @param defaultSelection DefaultSelectionType.ALL
,
* DefaultSelectionType.RANGE
, or
* DefaultSelectionType.SELECTION
- * @param destination DesintationType.FILE
or
- * DesintationType.PRINTER
+ * @param destination DestinationType.FILE
or
+ * DestinationType.PRINTER
* @param dialog DialogType.COMMON
,
* DialogType.NATIVE
, or
* DialogType.NONE
@@ -462,7 +462,7 @@
* these attributes. This attribute is updated to the value chosen by the
* user.
*
- * @return DesintationType.FILE or DesintationType.PRINTER
+ * @return DestinationType.FILE or DestinationType.PRINTER
*/
public DestinationType getDestination() {
return destination;
@@ -471,9 +471,9 @@
/**
* Specifies whether output will be to a printer or a file for jobs using
* these attributes. Not specifying this attribute is equivalent to
- * specifying DesintationType.PRINTER.
+ * specifying DestinationType.PRINTER.
*
- * @param destination DesintationType.FILE or DesintationType.PRINTER.
+ * @param destination DestinationType.FILE or DestinationType.PRINTER.
* @throws IllegalArgumentException if destination is null.
*/
public void setDestination(DestinationType destination) {
--- old/src/java.desktop/share/classes/java/awt/KeyboardFocusManager.java 2014-09-10 15:12:07.359097000 +0400
+++ new/src/java.desktop/share/classes/java/awt/KeyboardFocusManager.java 2014-09-10 15:12:07.039889200 +0400
@@ -2244,7 +2244,7 @@
}
public String toString() {
boolean first = true;
- String str = "HeavyweightFocusRequest[heavweight=" + heavyweight +
+ String str = "HeavyweightFocusRequest[heavyweight=" + heavyweight +
",lightweightRequests=";
if (lightweightRequests == null) {
str += null;
@@ -2666,7 +2666,7 @@
* We allow to trigger restoreFocus() in the dispatching process
* only if we have the last request to dispatch. If the last request
* fails, focus will be restored to either the component of the last
- * previously succedded request, or to to the focus owner that was
+ * previously succeeded request, or to to the focus owner that was
* before this clearing process.
*/
if (!iter.hasNext()) {
@@ -2765,7 +2765,7 @@
if (source == hwFocusRequest.getFirstLightweightRequest().component)
{
source = hwFocusRequest.heavyweight;
- nativeSource = source; // source is heavuweight itself
+ nativeSource = source; // source is heavyweight itself
}
}
if (hwFocusRequest != null &&
@@ -2783,7 +2783,7 @@
if (currentFocusOwner != null) {
/*
* Since we receive FOCUS_GAINED when current focus
- * owner is not null, correcponding FOCUS_LOST is supposed
+ * owner is not null, corresponding FOCUS_LOST is supposed
* to be lost. And so, we keep new focus owner
* to determine synthetic FOCUS_LOST event which will be
* generated by KeyboardFocusManager for this FOCUS_GAINED.
--- old/src/java.desktop/share/classes/java/awt/List.java 2014-09-10 15:12:10.360014200 +0400
+++ new/src/java.desktop/share/classes/java/awt/List.java 2014-09-10 15:12:10.019606800 +0400
@@ -1652,7 +1652,7 @@
//
- // AccessibleComponent delegatation to parent List
+ // AccessibleComponent delegation to parent List
//
/**
@@ -1859,7 +1859,7 @@
* screen's coordinate space.
*
* @return An instance of Point representing the top-left corner of
- * the objects's bounds in the coordinate space of the screen; null
+ * the object's bounds in the coordinate space of the screen; null
* if this object or its parent are not on the screen
* @see #getBounds
* @see #getLocationOnScreen
@@ -1907,7 +1907,7 @@
/**
* Returns the size of this object in the form of a Dimension
* object. The height field of the Dimension object contains this
- * objects's height, and the width field of the Dimension object
+ * object's height, and the width field of the Dimension object
* contains this object's width.
*
* @return A Dimension object that indicates the size of this
--- old/src/java.desktop/share/classes/java/awt/MenuShortcut.java 2014-09-10 15:12:12.681095100 +0400
+++ new/src/java.desktop/share/classes/java/awt/MenuShortcut.java 2014-09-10 15:12:12.333678600 +0400
@@ -76,7 +76,7 @@
int key;
/**
- * Indicates whether the shft key was pressed.
+ * Indicates whether the shift key was pressed.
* If true, the shift key was pressed.
* If false, the shift key was not pressed
*
--- old/src/java.desktop/share/classes/java/awt/Polygon.java 2014-09-10 15:12:15.396207100 +0400
+++ new/src/java.desktop/share/classes/java/awt/Polygon.java 2014-09-10 15:12:15.049389900 +0400
@@ -145,8 +145,8 @@
* @since 1.0
*/
public Polygon(int xpoints[], int ypoints[], int npoints) {
- // Fix 4489009: should throw IndexOutofBoundsException instead
- // of OutofMemoryException if npoints is huge and > {x,y}points.length
+ // Fix 4489009: should throw IndexOutOfBoundsException instead
+ // of OutOfMemoryError if npoints is huge and > {x,y}points.length
if (npoints > xpoints.length || npoints > ypoints.length) {
throw new IndexOutOfBoundsException("npoints > xpoints.length || "+
"npoints > ypoints.length");
@@ -559,7 +559,7 @@
* coordinates as they are returned in the iteration, or
* null
if untransformed coordinates are desired
* @param flatness the maximum amount that the control points
- * for a given curve can vary from colinear before a subdivided
+ * for a given curve can vary from collinear before a subdivided
* curve is replaced by a straight line connecting the
* endpoints. Since polygons are already flat the
* flatness
parameter is ignored.
--- old/src/java.desktop/share/classes/java/awt/RadialGradientPaintContext.java 2014-09-10 15:12:17.538079500 +0400
+++ new/src/java.desktop/share/classes/java/awt/RadialGradientPaintContext.java 2014-09-10 15:12:17.185067900 +0400
@@ -33,7 +33,7 @@
/**
* Provides the actual implementation for the RadialGradientPaint.
- * This is where the pixel processing is done. A RadialGradienPaint
+ * This is where the pixel processing is done. A RadialGradientPaint
* only supports circular gradients, but it should be possible to scale
* the circle to look approximately elliptical, by means of a
* gradient transform passed into the RadialGradientPaint constructor.
@@ -133,7 +133,7 @@
this.isSimpleFocus = (focusX == centerX) && (focusY == centerY);
this.isNonCyclic = (cycleMethod == CycleMethod.NO_CYCLE);
- // for use in the quadractic equation
+ // for use in the quadratic equation
radiusSq = radius * radius;
float dX = focusX - centerX;
--- old/src/java.desktop/share/classes/java/awt/Rectangle.java 2014-09-10 15:12:20.262373000 +0400
+++ new/src/java.desktop/share/classes/java/awt/Rectangle.java 2014-09-10 15:12:19.920965600 +0400
@@ -49,10 +49,10 @@
* will include the location of the {@code Rectangle} on that axis in the
* result as if the {@link #add(Point)} method were being called.
*
- *
+ *
* A {@code Rectangle} whose width or height is negative has neither
* location nor dimension along those axes with negative dimensions.
- * Such a {@code Rectangle} is treated as non-existant along those axes.
+ * Such a {@code Rectangle} is treated as non-existent along those axes.
* Such a {@code Rectangle} is also empty with respect to containment
* calculations and methods which test if it contains or intersects a
* point or rectangle will always return false.
@@ -106,7 +106,7 @@
* moved to store it into its pair of 32-bit fields then the dimensions
* will be adjusted relative to the "best representation" of the location.
* If the true result had a negative dimension and was therefore
- * non-existant along one or both axes, the stored dimensions will be
+ * non-existent along one or both axes, the stored dimensions will be
* negative numbers in those axes.
* If the true result had a location that could be represented within
* the range of 32-bit integers, but zero dimension along one or both
@@ -381,7 +381,7 @@
// We cannot even reach the left side of the specified
// rectangle even with both x & width set to MAX_VALUE.
// The intersection with the "maximal integer rectangle"
- // is non-existant so we should use a width < 0.
+ // is non-existent so we should use a width < 0.
// REMIND: Should we try to determine a more "meaningful"
// adjusted value for neww than just "-1"?
newx = Integer.MAX_VALUE;
@@ -845,7 +845,7 @@
* represents the union of the two rectangles.
*
* If either {@code Rectangle} has any dimension less than zero
- * the rules for non-existant rectangles
+ * the rules for non-existent rectangles
* apply.
* If only one has a dimension less than zero, then the result
* will be a copy of the other {@code Rectangle}.
@@ -867,8 +867,8 @@
if ((tx2 | ty2) < 0) {
// This rectangle has negative dimensions...
// If r has non-negative dimensions then it is the answer.
- // If r is non-existant (has a negative dimension), then both
- // are non-existant and we can return any non-existant rectangle
+ // If r is non-existent (has a negative dimension), then both
+ // are non-existent and we can return any non-existent rectangle
// as an answer. Thus, returning r meets that criterion.
// Either way, r is our answer.
return new Rectangle(r);
@@ -905,7 +905,7 @@
* to the bounds of this {@code Rectangle}.
*
* If this {@code Rectangle} has any dimension less than zero,
- * the rules for non-existant
+ * the rules for non-existent
* rectangles apply.
* In that case, the new bounds of this {@code Rectangle} will
* have a location equal to the specified coordinates and
@@ -956,7 +956,7 @@
* {@code Rectangle}.
*
* If this {@code Rectangle} has any dimension less than zero,
- * the rules for non-existant
+ * the rules for non-existent
* rectangles apply.
* In that case, the new bounds of this {@code Rectangle} will
* have a location equal to the coordinates of the specified
@@ -1075,7 +1075,7 @@
y1 += v;
if (x1 < x0) {
- // Non-existant in X direction
+ // Non-existent in X direction
// Final width must remain negative so subtract x0 before
// it is clipped so that we avoid the risk that the clipping
// of x0 will reverse the ordering of x0 and x1.
@@ -1098,7 +1098,7 @@
}
if (y1 < y0) {
- // Non-existant in Y direction
+ // Non-existent in Y direction
y1 -= y0;
if (y1 < Integer.MIN_VALUE) y1 = Integer.MIN_VALUE;
if (y0 < Integer.MIN_VALUE) y0 = Integer.MIN_VALUE;
--- old/src/java.desktop/share/classes/java/awt/RenderingHints.java 2014-09-10 15:12:22.505242500 +0400
+++ new/src/java.desktop/share/classes/java/awt/RenderingHints.java 2014-09-10 15:12:22.164835100 +0400
@@ -670,7 +670,7 @@
* When images are rendered upright with no scaling onto a
* destination, the choice of which image pixels map to which
* device pixels is obvious and the samples at the integer
- * coordinate locations in the image are transfered to the
+ * coordinate locations in the image are transferred to the
* pixels at the corresponding integer locations on the device
* pixel grid one for one.
* When images are rendered in a scaled, rotated, or otherwise
@@ -1167,7 +1167,7 @@
/**
* Returns a
* In some operating systems, this property
@@ -794,7 +794,7 @@
* scroll bar, generally through a mouse or keyboard gesture
* that the scroll bar receives as an adjustment event.
* The block increment must be greater than zero.
- * Attepts to set the block increment to a value lower than 1
+ * Attempts to set the block increment to a value lower than 1
* will result in a value of 1 being set.
*
* @param v the amount by which to increment or decrement
--- old/src/java.desktop/share/classes/java/awt/TextComponent.java 2014-09-10 15:12:30.289695700 +0400
+++ new/src/java.desktop/share/classes/java/awt/TextComponent.java 2014-09-10 15:12:29.955693900 +0400
@@ -952,7 +952,7 @@
}
/**
- * Returns the number of characters (valid indicies)
+ * Returns the number of characters (valid indices)
*
* @return the number of characters >= 0
*/
--- old/src/java.desktop/share/classes/java/awt/Window.java 2014-09-10 15:12:32.462763800 +0400
+++ new/src/java.desktop/share/classes/java/awt/Window.java 2014-09-10 15:12:32.123757400 +0400
@@ -684,7 +684,7 @@
* appropriate dimensions from the beginning. If the list contains
* several images of the same size, the first will be used.
*
- * Ownerless windows with no icon specified use platfrom-default icon.
+ * Ownerless windows with no icon specified use platform-default icon.
* The icon of an owned window may be inherited from the owner
* unless explicitly overridden.
* Setting the icon to {@code null} or empty list restores
@@ -1239,9 +1239,9 @@
}
// Should only be called while holding tree lock
- void adjustDecendantsOnParent(int num) {
+ void adjustDescendantsOnParent(int num) {
// do nothing since parent == owner and we shouldn't
- // ajust counter on owner
+ // adjust counter on owner
}
/**
--- old/src/java.desktop/share/classes/java/awt/color/ICC_Profile.java 2014-09-10 15:12:35.558466500 +0400
+++ new/src/java.desktop/share/classes/java/awt/color/ICC_Profile.java 2014-09-10 15:12:35.220658400 +0400
@@ -700,7 +700,7 @@
/**
- * ICC Profile Constant: tag type signaturE.
+ * ICC Profile Constant: tag type signature.
*/
public static final int icTagType = 0; /* tag type signature */
@@ -1874,7 +1874,7 @@
return canonicalFileName.startsWith(canonicalDirName);
} catch (IOException e) {
/* we do not expect the IOException here, because invocation
- * of this function is always preceeded by isFile() call.
+ * of this function is always preceded by isFile() call.
*/
return false;
}
@@ -1903,7 +1903,7 @@
* resolve the bogus deserialized profile object with one obtained
* with getInstance as well.
*
- * There're two primary factory methods for construction of ICC
+ * There are two primary factory methods for construction of ICC
* profiles: getInstance(int cspace) and getInstance(byte[] data).
* This implementation of ICC_Profile uses the former to return a
* cached singleton profile object, other implementations will
--- old/src/java.desktop/share/classes/java/awt/datatransfer/MimeType.java 2014-09-10 15:12:38.060363700 +0400
+++ new/src/java.desktop/share/classes/java/awt/datatransfer/MimeType.java 2014-09-10 15:12:37.737155600 +0400
@@ -233,7 +233,7 @@
/**
* Remove any value associated with the given name.
*
- * @throw IllegalArgumentExcpetion if parameter may not be deleted
+ * @throw IllegalArgumentException if parameter may not be deleted
*/
public void removeParameter(String name) {
parameters.remove(name);
--- old/src/java.desktop/share/classes/java/awt/datatransfer/MimeTypeParameterList.java 2014-09-10 15:12:41.178477200 +0400
+++ new/src/java.desktop/share/classes/java/awt/datatransfer/MimeTypeParameterList.java 2014-09-10 15:12:40.961068200 +0400
@@ -163,7 +163,7 @@
lastIndex = currentIndex;
if(currentIndex < length) {
- // find the next unescqped quote
+ // find the next unescaped quote
foundit = false;
while((currentIndex < length) && !foundit) {
currentChar = rawdata.charAt(currentIndex);
@@ -171,7 +171,7 @@
// found an escape sequence so pass this and the next character
currentIndex += 2;
} else if(currentChar == '"') {
- // foundit!
+ // found it!
foundit = true;
} else {
++currentIndex;
--- old/src/java.desktop/share/classes/java/awt/datatransfer/SystemFlavorMap.java 2014-09-10 15:12:43.483945100 +0400
+++ new/src/java.desktop/share/classes/java/awt/datatransfer/SystemFlavorMap.java 2014-09-10 15:12:43.122333900 +0400
@@ -714,7 +714,7 @@
return returnValue;
}
- private static final String [] htmlDocumntTypes =
+ private static final String [] htmlDocumentTypes =
new String [] {"all", "selection", "fragment"};
private static LinkedHashSet
+ * be transferred.
* From this method, the
* The event is passed to every This constant specifies all of the bit mask-based
- * ranges. Use {@code EmunSet.allOf(NumericShaper.Range.class)} to
+ * ranges. Use {@code EnumSet.allOf(NumericShaper.Range.class)} to
* specify all of the enum-based ranges.
*/
public static final int ALL_RANGES = 0x0007ffff;
@@ -1068,14 +1068,14 @@
shapingRange = defaultContext;
rangeSet = EnumSet.copyOf(ranges); // throws NPE if ranges is null.
- // Give precedance to EASTERN_ARABIC if both ARABIC and
+ // Give precedence to EASTERN_ARABIC if both ARABIC and
// EASTERN_ARABIC are specified.
if (rangeSet.contains(Range.EASTERN_ARABIC)
&& rangeSet.contains(Range.ARABIC)) {
rangeSet.remove(Range.ARABIC);
}
- // As well as the above case, give precedance to TAI_THAM_THAM if both
+ // As well as the above case, give precedence to TAI_THAM_THAM if both
// TAI_THAM_HORA and TAI_THAM_THAM are specified.
if (rangeSet.contains(Range.TAI_THAM_THAM)
&& rangeSet.contains(Range.TAI_THAM_HORA)) {
--- old/src/java.desktop/share/classes/java/awt/font/StyledParagraph.java 2014-09-10 15:13:16.876926000 +0400
+++ new/src/java.desktop/share/classes/java/awt/font/StyledParagraph.java 2014-09-10 15:13:16.676918900 +0400
@@ -47,7 +47,7 @@
* on a paragraph of styled text.
*
* Currently, this class is optimized for a small number of intervals
- * (preferrably 1).
+ * (preferably 1).
*/
final class StyledParagraph {
@@ -262,7 +262,7 @@
/**
* Return the index at which there is a different Font, GraphicAttribute, or
- * Dcoration than at the given index.
+ * Decoration than at the given index.
* @param index a valid index in the paragraph
* @return the first index where there is a change in attributes from
* those at index
--- old/src/java.desktop/share/classes/java/awt/font/TextAttribute.java 2014-09-10 15:13:19.587434300 +0400
+++ new/src/java.desktop/share/classes/java/awt/font/TextAttribute.java 2014-09-10 15:13:19.228017200 +0400
@@ -644,7 +644,7 @@
* be no other attributes in the However, if both
- * Some code may rely on immutablity of layouts. Subclassers should not
+ * Some code may rely on immutability of layouts. Subclassers should not
* call this directly, but instead should call getJustifiedLayout, which
* will call this method on a clone of this layout, preserving
* the original.
--- old/src/java.desktop/share/classes/java/awt/im/spi/InputMethod.java 2014-09-10 15:13:26.054812200 +0400
+++ new/src/java.desktop/share/classes/java/awt/im/spi/InputMethod.java 2014-09-10 15:13:25.292803200 +0400
@@ -196,7 +196,7 @@
/**
* Dispatches the event to the input method. If input method support is
- * enabled for the focussed component, incoming events of certain types
+ * enabled for the focused component, incoming events of certain types
* are dispatched to the current input method for this component before
* they are dispatched to the component's methods or event listeners.
* The input method decides whether it needs to handle the event. If it
--- old/src/java.desktop/share/classes/java/awt/image/BufferedImage.java 2014-09-10 15:13:29.766938000 +0400
+++ new/src/java.desktop/share/classes/java/awt/image/BufferedImage.java 2014-09-10 15:13:29.414917900 +0400
@@ -856,7 +856,7 @@
/**
* Returns the {@link WritableRaster}.
- * @return the
* Note that some attributes may be set directly on the PrinterJob
* by equivalent method calls, (for example), copies:
- *
Collection
view of the values
- * contained in this RenderinHints
.
+ * contained in this RenderingHints
.
* The Collection
is backed by the
* RenderingHints
, so changes to
* the RenderingHints
are reflected in
--- old/src/java.desktop/share/classes/java/awt/ScrollPaneAdjustable.java 2014-09-10 15:12:25.366746500 +0400
+++ new/src/java.desktop/share/classes/java/awt/ScrollPaneAdjustable.java 2014-09-10 15:12:25.040939100 +0400
@@ -333,7 +333,7 @@
* If the value supplied is less than the current minimum or
* greater than the current maximum, then one of those values is
* substituted, as appropriate. Also, creates and dispatches
- * the AdjustementEvent with specified type and value.
+ * the AdjustmentEvent with specified type and value.
*
* @param v the new value of the scrollbar
* @param type the type of the scrolling operation occurred
--- old/src/java.desktop/share/classes/java/awt/Scrollbar.java 2014-09-10 15:12:27.469017400 +0400
+++ new/src/java.desktop/share/classes/java/awt/Scrollbar.java 2014-09-10 15:12:27.122200200 +0400
@@ -716,7 +716,7 @@
* scroll bar, generally through a mouse or keyboard gesture
* that the scroll bar receives as an adjustment event.
* The unit increment must be greater than zero.
- * Attepts to set the unit increment to a value lower than 1
+ * Attempts to set the unit increment to a value lower than 1
* will result in a value of 1 being set.
* DragSourceListener
to this
* DragSource
to receive drag source events during drag
- * operations intiated with this DragSource
.
+ * operations initiated with this DragSource
.
* If a null
listener is specified, no action is taken and no
* exception is thrown.
*
@@ -607,7 +607,7 @@
/**
* Adds the specified DragSourceMotionListener
to this
* DragSource
to receive drag motion events during drag
- * operations intiated with this DragSource
.
+ * operations initiated with this DragSource
.
* If a null
listener is specified, no action is taken and no
* exception is thrown.
*
--- old/src/java.desktop/share/classes/java/awt/dnd/DropTarget.java 2014-09-10 15:12:49.249360700 +0400
+++ new/src/java.desktop/share/classes/java/awt/dnd/DropTarget.java 2014-09-10 15:12:48.908953300 +0400
@@ -453,7 +453,7 @@
if (dtListener != null && active)
dtListener.drop(dtde);
- else { // we should'nt get here ...
+ else { // we shouldn't get here ...
dtde.rejectDrop();
}
}
--- old/src/java.desktop/share/classes/java/awt/dnd/DropTargetListener.java 2014-09-10 15:12:51.646049300 +0400
+++ new/src/java.desktop/share/classes/java/awt/dnd/DropTargetListener.java 2014-09-10 15:12:51.423239200 +0400
@@ -117,7 +117,7 @@
* gesture. The DropTargetDropEvent
* provides a means to obtain a Transferable
* object that represents the data object(s) to
- * be transfered.DropTargetListener
* shall accept or reject the drop via the
* acceptDrop(int dropAction) or rejectDrop() methods of the
--- old/src/java.desktop/share/classes/java/awt/dnd/peer/DropTargetPeer.java 2014-09-10 15:12:54.201134900 +0400
+++ new/src/java.desktop/share/classes/java/awt/dnd/peer/DropTargetPeer.java 2014-09-10 15:12:53.865921800 +0400
@@ -32,7 +32,7 @@
* The DropTargetPeer class is the interface to the platform dependent
* DnD facilities. Since the DnD system is based on the native platform's
* facilities, a DropTargetPeer will be associated with a ComponentPeer
- * of the nearsest enclosing native Container (in the case of lightweights)
+ * of the nearest enclosing native Container (in the case of lightweights)
* WindowListener
* or WindowAdapter
object which registered to receive such
--- old/src/java.desktop/share/classes/java/awt/event/WindowFocusListener.java 2014-09-10 15:13:06.948371700 +0400
+++ new/src/java.desktop/share/classes/java/awt/event/WindowFocusListener.java 2014-09-10 15:13:06.748364600 +0400
@@ -39,7 +39,7 @@
* using the Window
's addWindowFocusListener
method.
* When the Window
's
* status changes by virtue of it being opened, closed, activated, deactivated,
- * iconified, or deiconified, or by focus being transfered into or out of the
+ * iconified, or deiconified, or by focus being transferred into or out of the
* Window
, the relevant method in the listener object is invoked,
* and the WindowEvent
is passed to it.
*
--- old/src/java.desktop/share/classes/java/awt/font/GlyphVector.java 2014-09-10 15:13:09.608286700 +0400
+++ new/src/java.desktop/share/classes/java/awt/font/GlyphVector.java 2014-09-10 15:13:09.267267200 +0400
@@ -62,7 +62,7 @@
* A GlyphVector
is associated with exactly one
* Font
, and can provide data useful only in relation to
* this Font
. In addition, metrics obtained from a
- * GlyphVector
are not generally geometrically scaleable
+ * GlyphVector
are not generally geometrically scalable
* since the pixelization and spacing are dependent on grid-fitting
* algorithms within a Font
. To facilitate accurate
* measurement of a GlyphVector
and its component
--- old/src/java.desktop/share/classes/java/awt/font/ImageGraphicAttribute.java 2014-09-10 15:13:11.846561100 +0400
+++ new/src/java.desktop/share/classes/java/awt/font/ImageGraphicAttribute.java 2014-09-10 15:13:11.630953900 +0400
@@ -58,7 +58,7 @@
private float fOriginX, fOriginY;
/**
- * Constucts an ImageGraphicAttribute
from the specified
+ * Constructs an ImageGraphicAttribute
from the specified
* {@link Image}. The origin is at (0, 0).
* @param image the Image
rendered by this
* ImageGraphicAttribute
.
--- old/src/java.desktop/share/classes/java/awt/font/NumericShaper.java 2014-09-10 15:13:14.486638600 +0400
+++ new/src/java.desktop/share/classes/java/awt/font/NumericShaper.java 2014-09-10 15:13:14.141230900 +0400
@@ -89,7 +89,7 @@
* or creating a {@code Set} with the {@link NumericShaper.Range}
* constants, such as:
*
* The enum-based ranges are a super set of the bit mask-based ones.
*
@@ -475,7 +475,7 @@
/** Identifies all ranges, for full contextual shaping.
*
*
- * EnumSet.of(NumericShaper.Scirpt.ARABIC, NumericShaper.Range.TAMIL)
+ * EnumSet.of(NumericShaper.Range.ARABIC, NumericShaper.Range.TAMIL)
*
Map
except the
* FONT
attribute. With Map
-based APIs
* the common case is to specify all attributes individually, so
- * FONT
is not needed or desireable.
+ * FONT
is not needed or desirable.
*
* FONT
and other attributes are
* present in the Map
, the rendering system will
@@ -686,7 +686,7 @@
/**
* Attribute key for a user-defined glyph to display in lieu
* of the font's standard glyph for a character. Values are
- * intances of GraphicAttribute. The default value is null,
+ * instances of GraphicAttribute. The default value is null,
* indicating that the standard glyphs provided by the font
* should be used.
*
@@ -1098,7 +1098,7 @@
* tracking values will inhibit formation of optional ligatures.
* Tracking values are typically between -0.1
and
* 0.3
; values outside this range are generally not
- * desireable.
+ * desirable.
*
* @since 1.6
*/
--- old/src/java.desktop/share/classes/java/awt/font/TextLayout.java 2014-09-10 15:13:21.856512200 +0400
+++ new/src/java.desktop/share/classes/java/awt/font/TextLayout.java 2014-09-10 15:13:21.656505100 +0400
@@ -195,7 +195,7 @@
* Color selectionColor = ...;
* Shape selection = layout.getLogicalHighlightShape(selStart, selLimit);
* // selection may consist of disjoint areas
- * // graphics is assumed to be tranlated to origin of layout
+ * // graphics is assumed to be translated to origin of layout
* g.setColor(selectionColor);
* g.fill(selection);
*
@@ -292,7 +292,7 @@
private Rectangle2D boundsRect = null;
/*
- * flag to supress/allow carets inside of ligatures when hit testing or
+ * flag to suppress/allow carets inside of ligatures when hit testing or
* arrow-keying
*/
private boolean caretsInLigaturesAreAllowed = false;
@@ -767,7 +767,7 @@
}
/*
- * Utility to throw an expection if an invalid TextHitInfo is passed
+ * Utility to throw an exception if an invalid TextHitInfo is passed
* as a parameter. Avoids code duplication.
*/
private void checkTextHit(TextHitInfo hit) {
@@ -833,7 +833,7 @@
* punctuation and trailing whitespace to overhang the justification width.
* Once justified, the layout may not be rejustified.
* WriteableRaster
of this
+ * @return the WritableRaster
of this
* BufferedImage
.
*/
public WritableRaster getRaster() {
--- old/src/java.desktop/share/classes/java/awt/image/ColorModel.java 2014-09-10 15:13:32.018428800 +0400
+++ new/src/java.desktop/share/classes/java/awt/image/ColorModel.java 2014-09-10 15:13:31.813421400 +0400
@@ -631,7 +631,7 @@
* inData
is not large enough to hold a pixel value
* for this ColorModel
* @throws UnsupportedOperationException if this
- * tranferType
is not supported by this
+ * transferType
is not supported by this
* ColorModel
*/
public int getRed(Object inData) {
@@ -698,7 +698,7 @@
* inData
is not large enough to hold a pixel value
* for this ColorModel
* @throws UnsupportedOperationException if this
- * tranferType
is not supported by this
+ * transferType
is not supported by this
* ColorModel
*/
public int getGreen(Object inData) {
@@ -765,7 +765,7 @@
* inData
is not large enough to hold a pixel value
* for this ColorModel
* @throws UnsupportedOperationException if this
- * tranferType
is not supported by this
+ * transferType
is not supported by this
* ColorModel
*/
public int getBlue(Object inData) {
@@ -1722,7 +1722,7 @@
// is from the IEC 61966-2-1 International Standard,
// Colour Management - Default RGB colour space - sRGB,
// First Edition, 1999-10,
- // avaiable for order at http://www.iec.ch
+ // available for order at http://www.iec.ch
for (int i = 0; i <= 255; i++) {
input = ((float) i) / 255.0f;
if (input <= 0.0031308f) {
--- old/src/java.desktop/share/classes/java/awt/image/FilteredImageSource.java 2014-09-10 15:13:34.958540700 +0400
+++ new/src/java.desktop/share/classes/java/awt/image/FilteredImageSource.java 2014-09-10 15:13:34.596933900 +0400
@@ -37,7 +37,7 @@
* takes an existing image and a filter object and uses them to produce
* image data for a new filtered version of the original image.
* Here is an example which filters an image by swapping the red and
- * blue compents:
+ * blue components:
*
*
* Image src = getImage("doc:///demo/images/duke/T1.gif");
--- old/src/java.desktop/share/classes/java/awt/image/Raster.java 2014-09-10 15:13:37.032215200 +0400
+++ new/src/java.desktop/share/classes/java/awt/image/Raster.java 2014-09-10 15:13:36.815608000 +0400
@@ -393,7 +393,7 @@
}
int banks = maxBank + 1;
int size = maxBandOff +
- scanlineStride * (h - 1) + // fisrt (h - 1) scans
+ scanlineStride * (h - 1) + // first (h - 1) scans
w; // last scan
switch(dataType) {
--- old/src/java.desktop/share/classes/java/awt/image/WritableRenderedImage.java 2014-09-10 15:13:39.888723300 +0400
+++ new/src/java.desktop/share/classes/java/awt/image/WritableRenderedImage.java 2014-09-10 15:13:39.548315900 +0400
@@ -37,7 +37,7 @@
import java.awt.Point;
/**
- * WriteableRenderedImage is a common interface for objects which
+ * WritableRenderedImage is a common interface for objects which
* contain or can produce image data in the form of Rasters and
* which can be modified and/or written over. The image
* data may be stored/produced as a single tile or a regular array
--- old/src/java.desktop/share/classes/java/awt/image/renderable/ContextualRenderedImageFactory.java 2014-09-10 15:13:41.989201000 +0400
+++ new/src/java.desktop/share/classes/java/awt/image/renderable/ContextualRenderedImageFactory.java 2014-09-10 15:13:41.792392300 +0400
@@ -61,7 +61,7 @@
* alterations in the RenderContext, such as an affine mapping, or
* operations that wish to obtain lower quality renderings of
* their sources in order to save processing effort or
- * transmission bandwith. Some operations, such as blur, can also
+ * transmission bandwidth. Some operations, such as blur, can also
* use this mechanism to avoid obtaining sources of higher quality
* than necessary.
*
--- old/src/java.desktop/share/classes/java/awt/image/renderable/RenderableImage.java 2014-09-10 15:13:44.692700300 +0400
+++ new/src/java.desktop/share/classes/java/awt/image/renderable/RenderableImage.java 2014-09-10 15:13:44.344283800 +0400
@@ -168,7 +168,7 @@
RenderedImage createScaledRendering(int w, int h, RenderingHints hints);
/**
- * Returnd a RenderedImage instance of this image with a default
+ * Returns a RenderedImage instance of this image with a default
* width and height in pixels. The RenderContext is built
* automatically with an appropriate usr2dev transform and an area
* of interest of the full image. The rendering hints are
--- old/src/java.desktop/share/classes/java/awt/peer/ComponentPeer.java 2014-09-10 15:13:46.933979200 +0400
+++ new/src/java.desktop/share/classes/java/awt/peer/ComponentPeer.java 2014-09-10 15:13:46.725971600 +0400
@@ -415,7 +415,7 @@
boolean prepareImage(Image img, int w, int h, ImageObserver o);
/**
- * Determines the status of the construction of the screen representaion
+ * Determines the status of the construction of the screen representation
* of the specified image.
*
* @param img the image to check
--- old/src/java.desktop/share/classes/java/awt/print/PageFormat.java 2014-09-10 15:13:49.607886300 +0400
+++ new/src/java.desktop/share/classes/java/awt/print/PageFormat.java 2014-09-10 15:13:49.289277600 +0400
@@ -71,7 +71,7 @@
/**
* The orientation of the current page. This will be
- * one of the constants: PORTRIAT, LANDSCAPE, or
+ * one of the constants: PORTRAIT, LANDSCAPE, or
* REVERSE_LANDSCAPE,
*/
private int mOrientation = PORTRAIT;
--- old/src/java.desktop/share/classes/java/awt/print/Paper.java 2014-09-10 15:13:51.867567100 +0400
+++ new/src/java.desktop/share/classes/java/awt/print/Paper.java 2014-09-10 15:13:51.657559400 +0400
@@ -68,7 +68,7 @@
/**
* The area of the page on which drawing will
- * be visable. The area outside of this
+ * be visible. The area outside of this
* rectangle but on the Page generally
* reflects the printer's hardware margins.
* The origin of the physical page is
--- old/src/java.desktop/share/classes/java/awt/print/PrinterJob.java 2014-09-10 15:13:54.472250400 +0400
+++ new/src/java.desktop/share/classes/java/awt/print/PrinterJob.java 2014-09-10 15:13:54.131834300 +0400
@@ -524,7 +524,7 @@
*
setcopies(int)
, job name: setJobName(String)
+ * setCopies(int)
, job name: setJobName(String)
* and specifying media size and orientation though the
* PageFormat
object.
*