From 26a9964256dacd419edbdb120531e213ef263924 Mon Sep 17 00:00:00 2001 From: Jakob Jarosch Date: Sat, 31 Jan 2015 17:43:59 +0100 Subject: [PATCH] Fix typos in javadocs and comments. Change-Id: I2f1cd9bf1df72b2729cd469aa27a35d05abb2d3d --- .../java/com/google/gwt/dev/codeserver/recompile_lib.js | 2 +- dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java | 2 +- dev/core/src/com/google/gwt/dev/jjs/impl/MethodInliner.java | 2 +- .../google/gwt/dev/jjs/impl/SourceGenerationVisitor.java | 4 ++-- dev/core/src/com/google/gwt/dev/js/JsInliner.java | 2 +- dev/core/src/com/google/gwt/dev/js/ast/JsSuperVisitor.java | 4 ++-- dev/core/src/com/google/gwt/dev/js/rhino/Context.java | 2 +- dev/core/src/com/google/gwt/dev/js/rhino/ObjToIntMap.java | 2 +- dev/core/src/com/google/gwt/dev/js/rhino/UintMap.java | 2 +- dev/core/src/com/google/gwt/util/tools/ArgHandlerExtra.java | 2 +- .../org/apache/commons/collections/map/AbstractTestMap.java | 2 +- .../src/com/google/silvercomet/client/Runner.java | 2 +- .../sample/mobilewebapp/presenter/task/TaskEditView.java | 2 +- .../builder/ElementBuilderFactoryNonChainingExample.java | 4 ++-- user/src/com/google/gwt/core/client/js/JsType.java | 2 +- user/src/com/google/gwt/dom/client/Element.java | 2 +- user/src/com/google/gwt/dom/client/NativeEvent.java | 2 +- .../gwt/i18n/client/impl/plurals/DefaultRule_x1_x234_n.java | 2 +- user/src/com/google/gwt/i18n/rebind/LocaleUtils.java | 2 +- .../com/google/gwt/i18n/rebind/MessagesMethodCreator.java | 2 +- user/src/com/google/gwt/i18n/shared/DateTimeFormat.java | 2 +- user/src/com/google/gwt/safecss/shared/SafeStylesUtils.java | 2 +- .../uibinder/attributeparsers/FieldReferenceConverter.java | 2 +- user/src/com/google/gwt/uibinder/client/UiRenderer.java | 2 +- .../uibinder/rebind/messages/PlaceholderInterpreter.java | 2 +- user/src/com/google/gwt/user/client/DOM.java | 2 +- user/src/com/google/gwt/user/client/ui/DeckPanel.java | 2 +- user/src/com/google/gwt/user/client/ui/PopupPanel.java | 2 +- .../com/google/gwt/user/client/ui/ResizeLayoutPanel.java | 2 +- user/src/com/google/gwt/user/client/ui/SuggestOracle.java | 2 +- user/src/com/google/gwt/user/client/ui/TabPanel.java | 4 ++-- user/src/com/google/gwt/user/client/ui/Tree.java | 2 +- .../google/gwt/user/client/ui/impl/PopupImplMozilla.java | 4 ++-- .../gwt/user/server/rpc/SerializationPolicyLoader.java | 2 +- .../google/web/bindery/autobean/shared/AutoBeanFactory.java | 2 +- .../bindery/requestfactory/apt/ClientToDomainMapper.java | 2 +- .../web/bindery/requestfactory/apt/DomainChecker.java | 2 +- .../web/bindery/requestfactory/server/ServiceLayer.java | 2 +- .../web/bindery/requestfactory/shared/RequestContext.java | 2 +- .../super/javax/validation/MessageInterpolator.java | 4 ++-- user/super/com/google/gwt/emul/java/lang/Class.java | 2 +- user/super/com/google/gwt/emul/java/math/BigDecimal.java | 2 +- user/test/com/google/gwt/emultest/java/lang/SystemTest.java | 6 +++--- .../google/gwt/junit/client/GWTTestCaseStackTraceTest.java | 2 +- user/test/com/google/gwt/user/client/ui/StackPanelTest.java | 2 +- .../user/rebind/rpc/SerializableTypeOracleBuilderTest.java | 2 +- .../com/google/gwt/user/server/rpc/RPCServletUtilsTest.java | 2 +- .../google/web/bindery/requestfactory/server/MapKey.java | 2 +- .../google/web/bindery/requestfactory/server/MapValue.java | 2 +- user/test/org/apache/commons/collections/TestMap.java | 2 +- 50 files changed, 58 insertions(+), 58 deletions(-) diff --git a/dev/codeserver/java/com/google/gwt/dev/codeserver/recompile_lib.js b/dev/codeserver/java/com/google/gwt/dev/codeserver/recompile_lib.js index 0302788995e..86e08c7daca 100644 --- a/dev/codeserver/java/com/google/gwt/dev/codeserver/recompile_lib.js +++ b/dev/codeserver/java/com/google/gwt/dev/codeserver/recompile_lib.js @@ -157,7 +157,7 @@ Dialog.prototype.createTextElement = function(tagName, fontSize, text) { /** * Add a node to the dialog. - * @param {external:Node} node - the node to add the the dialog + * @param {external:Node} node - the node to add to the dialog */ Dialog.prototype.add = function(node) { this.__dialog.appendChild(node); diff --git a/dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java b/dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java index d87bf76d191..a5f0a4a292c 100644 --- a/dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java +++ b/dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java @@ -191,7 +191,7 @@ public boolean visit(JNode x, Context ctx) { } /** - * Helper to create an assignment, used to initalize fields, etc. + * Helper to create an assignment, used to initialize fields, etc. */ public static JExpressionStatement createAssignmentStmt(SourceInfo info, JExpression lhs, JExpression rhs) { diff --git a/dev/core/src/com/google/gwt/dev/jjs/impl/MethodInliner.java b/dev/core/src/com/google/gwt/dev/jjs/impl/MethodInliner.java index 0e43c73a0c5..5cc3fd745d7 100644 --- a/dev/core/src/com/google/gwt/dev/jjs/impl/MethodInliner.java +++ b/dev/core/src/com/google/gwt/dev/jjs/impl/MethodInliner.java @@ -185,7 +185,7 @@ public boolean enter(JMethod x, Context ctx) { * optimizers to keep the AST sane. This was because it was possible to * tighten an instance call to its static impl after the static impl had * already been inlined, this meant any "flow" type optimizer would have - * to fake artifical flow from the instance method to the static impl. + * to fake artificial flow from the instance method to the static impl. * * TODO: allow the inlining if we are the last remaining call site, and * prune the static impl? But it might tend to generate more code. diff --git a/dev/core/src/com/google/gwt/dev/jjs/impl/SourceGenerationVisitor.java b/dev/core/src/com/google/gwt/dev/jjs/impl/SourceGenerationVisitor.java index 1ba9e3c1b6f..3d1a703434c 100644 --- a/dev/core/src/com/google/gwt/dev/jjs/impl/SourceGenerationVisitor.java +++ b/dev/core/src/com/google/gwt/dev/jjs/impl/SourceGenerationVisitor.java @@ -34,11 +34,11 @@ * The goal is not to generate the input source tree. Rather, the goal is to * produce a set of classes that can be pasted into an enclosing class and * compiled with a standard Java compiler. In practice, there are cases that - * require hand-editting to actually get a full compilation, due to Java's + * require hand-editing to actually get a full compilation, due to Java's * built-in reliance on particular built-in types. * * Known to be broken: Our generated String, Class, and Throwable are not - * compatable with the real ones, which breaks string literals, class literals, + * compatible with the real ones, which breaks string literals, class literals, * try/catch/throw, and overrides of Object methods. */ public class SourceGenerationVisitor extends ToStringGenerationVisitor { diff --git a/dev/core/src/com/google/gwt/dev/js/JsInliner.java b/dev/core/src/com/google/gwt/dev/js/JsInliner.java index e1e3755987f..3de81bff2e5 100644 --- a/dev/core/src/com/google/gwt/dev/js/JsInliner.java +++ b/dev/core/src/com/google/gwt/dev/js/JsInliner.java @@ -1125,7 +1125,7 @@ private void checkFunctionCall(JsExpression qualifier) { private static class SingleInvocationVisitor extends JsVisitor { // Keep track of functions that are invoked once. // Invariant: singleInvokations(fn) = null => calls to fn have not been seen - // singleInvokations(fn) = MULTIPLE => mutiple callsites to fn have been seen. + // singleInvokations(fn) = MULTIPLE => multiple callsites to fn have been seen. // singleInvokations(fn) = caller => one callsite has been seen an occurs in caller. private final Map singleInvocations = Maps.newHashMap(); diff --git a/dev/core/src/com/google/gwt/dev/js/ast/JsSuperVisitor.java b/dev/core/src/com/google/gwt/dev/js/ast/JsSuperVisitor.java index 7570501fc11..79049167388 100644 --- a/dev/core/src/com/google/gwt/dev/js/ast/JsSuperVisitor.java +++ b/dev/core/src/com/google/gwt/dev/js/ast/JsSuperVisitor.java @@ -18,7 +18,7 @@ /** * A visitor that walks up the type hierarchy. By default, if a subclass has no specific override * for a concrete node type, this visitor will call a visit/endVisit for its super class, and so on - * up the type heirarchy. + * up the type hierarchy. */ public class JsSuperVisitor extends JsVisitor { @@ -509,4 +509,4 @@ public boolean visit(JsWhile x, JsContext ctx) { return visit((JsStatement) x, ctx); } -} \ No newline at end of file +} diff --git a/dev/core/src/com/google/gwt/dev/js/rhino/Context.java b/dev/core/src/com/google/gwt/dev/js/rhino/Context.java index a859938b58c..93ad70243bd 100644 --- a/dev/core/src/com/google/gwt/dev/js/rhino/Context.java +++ b/dev/core/src/com/google/gwt/dev/js/rhino/Context.java @@ -153,7 +153,7 @@ public static Context enter(Context cx) { } } else { if (cx.enterCount != 0) { - // The suplied context must be the context for + // The supplied context must be the context for // the current thread if it is already entered if (cx != old) { throw new RuntimeException diff --git a/dev/core/src/com/google/gwt/dev/js/rhino/ObjToIntMap.java b/dev/core/src/com/google/gwt/dev/js/rhino/ObjToIntMap.java index fd2fac44ed7..fdaf09ff587 100644 --- a/dev/core/src/com/google/gwt/dev/js/rhino/ObjToIntMap.java +++ b/dev/core/src/com/google/gwt/dev/js/rhino/ObjToIntMap.java @@ -331,7 +331,7 @@ private void rehashTable() { else { // Check if removing deleted entries would free enough space if (keyCount * 2 >= occupiedCount) { - // Need to grow: less then half of deleted entries + // Need to grow: less than half of deleted entries ++power; } int N = 1 << power; diff --git a/dev/core/src/com/google/gwt/dev/js/rhino/UintMap.java b/dev/core/src/com/google/gwt/dev/js/rhino/UintMap.java index 365088e0f3f..47ec4654ec2 100644 --- a/dev/core/src/com/google/gwt/dev/js/rhino/UintMap.java +++ b/dev/core/src/com/google/gwt/dev/js/rhino/UintMap.java @@ -275,7 +275,7 @@ private void rehashTable(boolean ensureIntSpace) { if (keys != null) { // Check if removing deleted entries would free enough space if (keyCount * 2 >= occupiedCount) { - // Need to grow: less then half of deleted entries + // Need to grow: less than half of deleted entries ++power; } } diff --git a/dev/core/src/com/google/gwt/util/tools/ArgHandlerExtra.java b/dev/core/src/com/google/gwt/util/tools/ArgHandlerExtra.java index 4b4df947ebd..278e26e0fcb 100644 --- a/dev/core/src/com/google/gwt/util/tools/ArgHandlerExtra.java +++ b/dev/core/src/com/google/gwt/util/tools/ArgHandlerExtra.java @@ -16,7 +16,7 @@ package com.google.gwt.util.tools; /** - * Argument handler that handles arguments that do not have preceeding flags. + * Argument handler that handles arguments that do not have preceding flags. */ public abstract class ArgHandlerExtra extends ArgHandler { diff --git a/dev/core/test/org/apache/commons/collections/map/AbstractTestMap.java b/dev/core/test/org/apache/commons/collections/map/AbstractTestMap.java index 691f6cf63d4..6855c632507 100644 --- a/dev/core/test/org/apache/commons/collections/map/AbstractTestMap.java +++ b/dev/core/test/org/apache/commons/collections/map/AbstractTestMap.java @@ -444,7 +444,7 @@ public Map.Entry cloneMapEntry(Map.Entry entry) { } /** - * Gets the compatability version, needed for package access. + * Gets the compatibility version, needed for package access. */ @Override public String getCompatibilityVersion() { diff --git a/elemental/examples/silvercomet/src/com/google/silvercomet/client/Runner.java b/elemental/examples/silvercomet/src/com/google/silvercomet/client/Runner.java index 09667d8190f..ecef8b51bf7 100644 --- a/elemental/examples/silvercomet/src/com/google/silvercomet/client/Runner.java +++ b/elemental/examples/silvercomet/src/com/google/silvercomet/client/Runner.java @@ -79,7 +79,7 @@ public native int place() /*-{ }-*/; /** - * Allows updating of the runner's place to accomodate recordering by + * Allows updating of the runner's place to accommodate reordering by * {@link #bibTime()} instead of {@link #gunTime()}. */ public native void setPlace(int place) /*-{ diff --git a/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/presenter/task/TaskEditView.java b/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/presenter/task/TaskEditView.java index 859dfc82ec8..013e92cfe30 100644 --- a/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/presenter/task/TaskEditView.java +++ b/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/presenter/task/TaskEditView.java @@ -64,7 +64,7 @@ public interface Presenter extends PresentsWidgets { void setLocked(boolean locked); /** - * The the violation associated with the name. + * The violation associated with the name. * * @param message the message to show, or null if no violation */ diff --git a/user/javadoc/com/google/gwt/examples/dom/builder/ElementBuilderFactoryNonChainingExample.java b/user/javadoc/com/google/gwt/examples/dom/builder/ElementBuilderFactoryNonChainingExample.java index 24ee07368e5..f42735289e5 100644 --- a/user/javadoc/com/google/gwt/examples/dom/builder/ElementBuilderFactoryNonChainingExample.java +++ b/user/javadoc/com/google/gwt/examples/dom/builder/ElementBuilderFactoryNonChainingExample.java @@ -62,7 +62,7 @@ public void onModuleLoad() { * End the select and div elements. Note that ending the remaining elements * before calling asElement() below is optional, but a good practice. If we * did not call endOption() above, we would append each option element to - * the preceeding option element, which is not what we want. + * the preceding option element, which is not what we want. * * In general, you must pay close attention to ensure that you close * elements correctly. @@ -76,4 +76,4 @@ public void onModuleLoad() { // Attach the element to the page. Document.get().getBody().appendChild(div); } -} \ No newline at end of file +} diff --git a/user/src/com/google/gwt/core/client/js/JsType.java b/user/src/com/google/gwt/core/client/js/JsType.java index 66e11d403a5..80bcca77058 100644 --- a/user/src/com/google/gwt/core/client/js/JsType.java +++ b/user/src/com/google/gwt/core/client/js/JsType.java @@ -31,7 +31,7 @@ *

* Furthermore, if the JsType is marked with a prototype reference, then concrete * implementations of the class emitted by the GWT compiler will use the specified prototype as - * opposed the the ordinary one (e.g. java.lang.Object). + * opposed to the ordinary one (e.g. java.lang.Object). *

* JsTypes act like JavaScriptObject in terms of castability, except when a prototype is * specified, in which case, cast checks and instanceof checks will be delegated to the native diff --git a/user/src/com/google/gwt/dom/client/Element.java b/user/src/com/google/gwt/dom/client/Element.java index e88db8be986..5f75f5d7705 100644 --- a/user/src/com/google/gwt/dom/client/Element.java +++ b/user/src/com/google/gwt/dom/client/Element.java @@ -346,7 +346,7 @@ public final int getOffsetWidth() { } /** - * The element immediately preceeding this element. If there is no such + * The element immediately preceding this element. If there is no such * element, this returns null. */ public final Element getPreviousSiblingElement() { diff --git a/user/src/com/google/gwt/dom/client/NativeEvent.java b/user/src/com/google/gwt/dom/client/NativeEvent.java index 3954c263b1a..d5a14e029e6 100644 --- a/user/src/com/google/gwt/dom/client/NativeEvent.java +++ b/user/src/com/google/gwt/dom/client/NativeEvent.java @@ -161,7 +161,7 @@ public final boolean getMetaKey() { * Gets the velocity of the mouse wheel associated with the event along the Y * axis. *

- * The velocity of the event is an artifical measurement for relative + * The velocity of the event is an artificial measurement for relative * comparisons of wheel activity. It is affected by some non-browser factors, * including choice of input hardware and mouse acceleration settings. The * sign of the velocity measurement agrees with the screen coordinate system; diff --git a/user/src/com/google/gwt/i18n/client/impl/plurals/DefaultRule_x1_x234_n.java b/user/src/com/google/gwt/i18n/client/impl/plurals/DefaultRule_x1_x234_n.java index 4acebaf993e..a1b061f921c 100644 --- a/user/src/com/google/gwt/i18n/client/impl/plurals/DefaultRule_x1_x234_n.java +++ b/user/src/com/google/gwt/i18n/client/impl/plurals/DefaultRule_x1_x234_n.java @@ -34,7 +34,7 @@ public class DefaultRule_x1_x234_n { /* * Returns the list of plural forms, indicating the "many" form is optional. * - * The "many" form is marked "noWarn" to supress warning messages for + * The "many" form is marked "noWarn" to suppress warning messages for * older translations that only have 3 forms: "one", "few", and "other". * Old translations should be updated by moving "other" to "many" and adding * a new "other" form for fractional values (as defined below). diff --git a/user/src/com/google/gwt/i18n/rebind/LocaleUtils.java b/user/src/com/google/gwt/i18n/rebind/LocaleUtils.java index d65e4a3c950..d259bf462bb 100644 --- a/user/src/com/google/gwt/i18n/rebind/LocaleUtils.java +++ b/user/src/com/google/gwt/i18n/rebind/LocaleUtils.java @@ -45,7 +45,7 @@ public class LocaleUtils { static final String PROP_LOCALE = "locale"; /** - * The config property identifying the URL query paramter name to possibly get + * The config property identifying the URL query parameter name to possibly get * the value of the locale property. */ // @VisibleForTesting diff --git a/user/src/com/google/gwt/i18n/rebind/MessagesMethodCreator.java b/user/src/com/google/gwt/i18n/rebind/MessagesMethodCreator.java index 017ea833142..b7a62247777 100644 --- a/user/src/com/google/gwt/i18n/rebind/MessagesMethodCreator.java +++ b/user/src/com/google/gwt/i18n/rebind/MessagesMethodCreator.java @@ -598,7 +598,7 @@ private interface Parameters { * that for arrays or lists this will return an expression giving the count * of items in the array or list. * - * @param i index of the paramter, 0 .. getCount() - 1 + * @param i index of the parameter, 0 .. getCount() - 1 * @return the source of code to access the parameter value */ String getParameterExpression(int i); diff --git a/user/src/com/google/gwt/i18n/shared/DateTimeFormat.java b/user/src/com/google/gwt/i18n/shared/DateTimeFormat.java index a219f64c7bd..59c8fdb125c 100644 --- a/user/src/com/google/gwt/i18n/shared/DateTimeFormat.java +++ b/user/src/com/google/gwt/i18n/shared/DateTimeFormat.java @@ -1338,7 +1338,7 @@ private int getNextCharCountInPattern(String pattern, int start) { * leftmost field; the others remain fixed. This allows "123456" => 12:34:56, * but "12345" => 1:23:45. Likewise, for the pattern "yyyyMMdd" we try 4/2/2, * 3/2/2, 2/2/2, and finally 1/2/2. The first field of connected numeric - * fields will be marked as abutStart, its width can be reduced to accomodate + * fields will be marked as abutStart, its width can be reduced to accommodate * others. */ private void identifyAbutStart() { diff --git a/user/src/com/google/gwt/safecss/shared/SafeStylesUtils.java b/user/src/com/google/gwt/safecss/shared/SafeStylesUtils.java index 831a31e25fe..aee39067ebb 100644 --- a/user/src/com/google/gwt/safecss/shared/SafeStylesUtils.java +++ b/user/src/com/google/gwt/safecss/shared/SafeStylesUtils.java @@ -666,7 +666,7 @@ public static SafeStyles fromTrustedString(String s) { * * @param styles the CSS properties string * @throws NullPointerException if the css is null - * @throws AssertionError if the css does not meet the contraints + * @throws AssertionError if the css does not meet the constraints */ static void verifySafeStylesConstraints(String styles) { if (styles == null) { diff --git a/user/src/com/google/gwt/uibinder/attributeparsers/FieldReferenceConverter.java b/user/src/com/google/gwt/uibinder/attributeparsers/FieldReferenceConverter.java index 8283e308ebb..7902374e3f6 100644 --- a/user/src/com/google/gwt/uibinder/attributeparsers/FieldReferenceConverter.java +++ b/user/src/com/google/gwt/uibinder/attributeparsers/FieldReferenceConverter.java @@ -129,7 +129,7 @@ public static int countFieldReferences(String string) { } /** - * Reverses most of the work of {@link #convert}, turning a java expresion + * Reverses most of the work of {@link #convert}, turning a java expression * back into a dotted path. */ public static String expressionToPath(String expression) { diff --git a/user/src/com/google/gwt/uibinder/client/UiRenderer.java b/user/src/com/google/gwt/uibinder/client/UiRenderer.java index 9defe62c49d..a0ba703c396 100644 --- a/user/src/com/google/gwt/uibinder/client/UiRenderer.java +++ b/user/src/com/google/gwt/uibinder/client/UiRenderer.java @@ -22,7 +22,7 @@ * generation for SafeHtml rendering. *

* This is experimental code in active - * developement. It is unsupported, and its api is subject to + * development. It is unsupported, and its api is subject to * change. */ public interface UiRenderer { diff --git a/user/src/com/google/gwt/uibinder/rebind/messages/PlaceholderInterpreter.java b/user/src/com/google/gwt/uibinder/rebind/messages/PlaceholderInterpreter.java index f4c007fa8b7..eb1663dfe1a 100644 --- a/user/src/com/google/gwt/uibinder/rebind/messages/PlaceholderInterpreter.java +++ b/user/src/com/google/gwt/uibinder/rebind/messages/PlaceholderInterpreter.java @@ -78,7 +78,7 @@ public String interpretElement(XMLElement elem) /* * Likewise, if there are tokens from the UiWriter in the value string, we - * need it to replace them with the real expresions. + * need it to replace them with the real expressions. */ value = uiWriter.detokenate(value); return nextPlaceholder(name, example, value); diff --git a/user/src/com/google/gwt/user/client/DOM.java b/user/src/com/google/gwt/user/client/DOM.java index 76373ebe6c2..fdbe95c4491 100644 --- a/user/src/com/google/gwt/user/client/DOM.java +++ b/user/src/com/google/gwt/user/client/DOM.java @@ -557,7 +557,7 @@ public static boolean eventGetMetaKey(Event evt) { * Gets the velocity of the mouse wheel associated with the event along the Y * axis. *

- * The velocity of the event is an artifical measurement for relative + * The velocity of the event is an artificial measurement for relative * comparisons of wheel activity. It is affected by some non-browser factors, * including choice of input hardware and mouse acceleration settings. The * sign of the velocity measurement agrees with the screen coordinate system; diff --git a/user/src/com/google/gwt/user/client/ui/DeckPanel.java b/user/src/com/google/gwt/user/client/ui/DeckPanel.java index c28591895d3..f9968e38601 100644 --- a/user/src/com/google/gwt/user/client/ui/DeckPanel.java +++ b/user/src/com/google/gwt/user/client/ui/DeckPanel.java @@ -225,7 +225,7 @@ private void onInstantaneousRun() { private static SlideAnimation slideAnimation; /** - * The the container {@link Element} around a {@link Widget}. + * The container {@link Element} around a {@link Widget}. * * @param w the {@link Widget} * @return the container {@link Element} diff --git a/user/src/com/google/gwt/user/client/ui/PopupPanel.java b/user/src/com/google/gwt/user/client/ui/PopupPanel.java index 04614e74ccc..f08eee2a263 100644 --- a/user/src/com/google/gwt/user/client/ui/PopupPanel.java +++ b/user/src/com/google/gwt/user/client/ui/PopupPanel.java @@ -1297,7 +1297,7 @@ private void position(final UIObject relativeObject, int offsetWidth, // If there is not enough space for the popup's height below the text // box and there IS enough space for the popup's height above the text - // box, then then position the popup above the text box. However, if there + // box, then position the popup above the text box. However, if there // is not enough space on either side, then stick with displaying the // popup below the text box. if (distanceToWindowBottom < offsetHeight diff --git a/user/src/com/google/gwt/user/client/ui/ResizeLayoutPanel.java b/user/src/com/google/gwt/user/client/ui/ResizeLayoutPanel.java index b7cf36b72a2..dfaf374cf87 100644 --- a/user/src/com/google/gwt/user/client/ui/ResizeLayoutPanel.java +++ b/user/src/com/google/gwt/user/client/ui/ResizeLayoutPanel.java @@ -284,7 +284,7 @@ public void onDetach() { } /** - * Initalize the onresize listener. This method doesn't create a memory leak + * Initialize the onresize listener. This method doesn't create a memory leak * because we don't set a back reference to the Impl class until we attach * to the DOM. */ diff --git a/user/src/com/google/gwt/user/client/ui/SuggestOracle.java b/user/src/com/google/gwt/user/client/ui/SuggestOracle.java index 517cb9cbee7..11f59c9836c 100644 --- a/user/src/com/google/gwt/user/client/ui/SuggestOracle.java +++ b/user/src/com/google/gwt/user/client/ui/SuggestOracle.java @@ -268,7 +268,7 @@ public void setSuggestions(Collection suggestions) { * SelectionHandler.onSelection(SelectionEvent<Suggestion> event) * method, obtain the selected Suggestion object from the * {@link com.google.gwt.event.logical.shared.SelectionEvent} object, and downcast - * the Suggestion object to the subinterface. Then, acces the DTO + * the Suggestion object to the subinterface. Then, access the DTO * using the DTO getter method that was defined on the subinterface. *

*/ diff --git a/user/src/com/google/gwt/user/client/ui/TabPanel.java b/user/src/com/google/gwt/user/client/ui/TabPanel.java index b09cf4958dc..d1a047814d4 100644 --- a/user/src/com/google/gwt/user/client/ui/TabPanel.java +++ b/user/src/com/google/gwt/user/client/ui/TabPanel.java @@ -322,8 +322,8 @@ public DeckPanel getDeckPanel() { } /** - * Gets the tab bar within this tab panel. Adding or removing tabs from from - * the TabBar is not supported and will throw UnsupportedOperationExceptions. + * Gets the tab bar within this tab panel. Adding or removing tabs from the + * TabBar is not supported and will throw UnsupportedOperationExceptions. * * @return the tab bar */ diff --git a/user/src/com/google/gwt/user/client/ui/Tree.java b/user/src/com/google/gwt/user/client/ui/Tree.java index 668e71d09c2..a7fbd332013 100644 --- a/user/src/com/google/gwt/user/client/ui/Tree.java +++ b/user/src/com/google/gwt/user/client/ui/Tree.java @@ -1318,7 +1318,7 @@ private void updateAriaAttributes() { // the currently selected item. // We initialize itemLevel to -1 because the level value is zero-based. - // Note that the root node is not a part of the TreeItem hierachy, and we + // Note that the root node is not a part of the TreeItem hierarchy, and we // do not consider the root node to have a designated level. The level of // the root's children is level 0, its children's children is level 1, etc. diff --git a/user/src/com/google/gwt/user/client/ui/impl/PopupImplMozilla.java b/user/src/com/google/gwt/user/client/ui/impl/PopupImplMozilla.java index 2b7efb2db41..ea15bfcb59c 100644 --- a/user/src/com/google/gwt/user/client/ui/impl/PopupImplMozilla.java +++ b/user/src/com/google/gwt/user/client/ui/impl/PopupImplMozilla.java @@ -28,7 +28,7 @@ * {@link com.google.gwt.user.client.ui.impl.PopupImpl} in the case where * Mozilla is NOT running on the Mac. *

- * A different implemention is provided for the Mac in order to prevent + * A different implementation is provided for the Mac in order to prevent * scrollbars underneath the PopupPanel from being rendered on top of the * PopupPanel (issue #410). Unfortunately, the solution that fixes this problem * for the Mac causes a problem with dragging a @@ -125,4 +125,4 @@ public void setClip(Element popup, String rect) { popup.getStyle().setDisplay(Display.NONE); popup.getStyle().clearDisplay(); } -} \ No newline at end of file +} diff --git a/user/src/com/google/gwt/user/server/rpc/SerializationPolicyLoader.java b/user/src/com/google/gwt/user/server/rpc/SerializationPolicyLoader.java index 6c9ce52dd14..d860e1d7d35 100644 --- a/user/src/com/google/gwt/user/server/rpc/SerializationPolicyLoader.java +++ b/user/src/com/google/gwt/user/server/rpc/SerializationPolicyLoader.java @@ -36,7 +36,7 @@ public final class SerializationPolicyLoader { /** - * Keyword for listing the serializable fields of an enchanced class that are + * Keyword for listing the serializable fields of an enhanced class that are * visible to client code. */ public static final String CLIENT_FIELDS_KEYWORD = "@ClientFields"; diff --git a/user/src/com/google/web/bindery/autobean/shared/AutoBeanFactory.java b/user/src/com/google/web/bindery/autobean/shared/AutoBeanFactory.java index 44496a50e7a..7911574cda2 100644 --- a/user/src/com/google/web/bindery/autobean/shared/AutoBeanFactory.java +++ b/user/src/com/google/web/bindery/autobean/shared/AutoBeanFactory.java @@ -47,7 +47,7 @@ public interface AutoBeanFactory { * Allows non-property methods on simple bean implementations when applied. * For any given method, the specified classes will be searched for a public, * static method whose method signature is exactly equal to the declared - * method's signature, save for the addition of a new initial paramater that + * method's signature, save for the addition of a new initial parameter that * must accept AutoBean<T>. * *

diff --git a/user/src/com/google/web/bindery/requestfactory/apt/ClientToDomainMapper.java b/user/src/com/google/web/bindery/requestfactory/apt/ClientToDomainMapper.java
index c5971df46c9..7581581d10b 100644
--- a/user/src/com/google/web/bindery/requestfactory/apt/ClientToDomainMapper.java
+++ b/user/src/com/google/web/bindery/requestfactory/apt/ClientToDomainMapper.java
@@ -140,7 +140,7 @@ public TypeMirror visitWildcard(WildcardType x, State state) {
 
   /**
    * Utility method to convert a {@code Foo -> BarDomain}. The
-   * {@code param} parameter specifies the index of the type paramater to
+   * {@code param} parameter specifies the index of the type parameter to
    * extract.
    */
   protected TypeMirror convertSingleParamType(DeclaredType x, DeclaredType convertTo, int param,
diff --git a/user/src/com/google/web/bindery/requestfactory/apt/DomainChecker.java b/user/src/com/google/web/bindery/requestfactory/apt/DomainChecker.java
index d0fef2b082b..ea4e9a78936 100644
--- a/user/src/com/google/web/bindery/requestfactory/apt/DomainChecker.java
+++ b/user/src/com/google/web/bindery/requestfactory/apt/DomainChecker.java
@@ -322,7 +322,7 @@ private void checkDomainEntityMethods(State state) {
    * 
    * @param clientMethod the RequestContext method to validate
    * @param parameterAccumulator an out parameter that will be populated with
-   *          the converted paramater types
+   *          the converted parameter types
    * @param warnTo The element to which warnings should be posted if one or more
    *          client types cannot be converted to domain types for validation
    * @param state the State object
diff --git a/user/src/com/google/web/bindery/requestfactory/server/ServiceLayer.java b/user/src/com/google/web/bindery/requestfactory/server/ServiceLayer.java
index 6b7b97867a5..b5163fe0e66 100644
--- a/user/src/com/google/web/bindery/requestfactory/server/ServiceLayer.java
+++ b/user/src/com/google/web/bindery/requestfactory/server/ServiceLayer.java
@@ -65,7 +65,7 @@ public static ServiceLayer create(ServiceLayerDecorator... decorators) {
     ServiceLayerDecorator cache =
         ENABLE_CACHE ? new ServiceLayerCache() : new ServiceLayerDecorator();
     list.add(cache);
-    // The the user-provided decorators
+    // The user-provided decorators
     if (decorators != null) {
       list.addAll(Arrays.asList(decorators));
     }
diff --git a/user/src/com/google/web/bindery/requestfactory/shared/RequestContext.java b/user/src/com/google/web/bindery/requestfactory/shared/RequestContext.java
index a9175b95076..30daed626b0 100644
--- a/user/src/com/google/web/bindery/requestfactory/shared/RequestContext.java
+++ b/user/src/com/google/web/bindery/requestfactory/shared/RequestContext.java
@@ -45,7 +45,7 @@ public interface RequestContext {
 
   /**
    * Returns a new mutable proxy that this request can carry to the server,
-   * perhaps to be persisted. If the object is succesfully persisted, a PERSIST
+   * perhaps to be persisted. If the object is successfully persisted, a PERSIST
    * event will be posted including the EntityProxyId of this proxy.
    * 
    * @param clazz a Class object of type T
diff --git a/user/src/javax/validation/super/javax/validation/MessageInterpolator.java b/user/src/javax/validation/super/javax/validation/MessageInterpolator.java
index 7507ad5a260..388d7a7cc47 100644
--- a/user/src/javax/validation/super/javax/validation/MessageInterpolator.java
+++ b/user/src/javax/validation/super/javax/validation/MessageInterpolator.java
@@ -33,7 +33,7 @@
  */
 public interface MessageInterpolator {
   /**
-   * Interpolate the message template based on the contraint validation context.
+   * Interpolate the message template based on the constraint validation context.
    * The locale is defaulted according to the MessageInterpolator
    * implementation. See the implementation documentation for more detail.
    *
@@ -45,7 +45,7 @@ public interface MessageInterpolator {
   String interpolate(String messageTemplate, Context context);
 
   /**
-   * Interpolate the message template based on the contraint validation context.
+   * Interpolate the message template based on the constraint validation context.
    * The Locale used is provided as a parameter.
    *
    * @param messageTemplate The message to interpolate.
diff --git a/user/super/com/google/gwt/emul/java/lang/Class.java b/user/super/com/google/gwt/emul/java/lang/Class.java
index c8e3e0b60b4..286ac9f8f6e 100644
--- a/user/super/com/google/gwt/emul/java/lang/Class.java
+++ b/user/super/com/google/gwt/emul/java/lang/Class.java
@@ -225,7 +225,7 @@ private static native void initializeNames(Class clazz) /*-{
   }-*/;
 
   /**
-   * Joins an array of strings with the speciefied separator.
+   * Joins an array of strings with the specified separator.
    * 

* Written in JSNI to minimize dependencies (on String.+). */ diff --git a/user/super/com/google/gwt/emul/java/math/BigDecimal.java b/user/super/com/google/gwt/emul/java/math/BigDecimal.java index 3abba4a5e19..cae4f72f74c 100644 --- a/user/super/com/google/gwt/emul/java/math/BigDecimal.java +++ b/user/super/com/google/gwt/emul/java/math/BigDecimal.java @@ -1941,7 +1941,7 @@ public int precision() { * - 1) <= intVal < 10 ^(precision()) */ decimalDigits += (bitLength - 1) * LOG10_2; - // If after division the number isn't zero, exists an aditional digit + // If after division the number isn't zero, exists an additional digit if (getUnscaledValue().divide(Multiplication.powerOf10(decimalDigits)).signum() != 0) { decimalDigits++; } diff --git a/user/test/com/google/gwt/emultest/java/lang/SystemTest.java b/user/test/com/google/gwt/emultest/java/lang/SystemTest.java index 2e75c4b9b9e..fce39478ba1 100644 --- a/user/test/com/google/gwt/emultest/java/lang/SystemTest.java +++ b/user/test/com/google/gwt/emultest/java/lang/SystemTest.java @@ -79,7 +79,7 @@ public String getModuleName() { public void testArraycopyEnumToInterface() { EnumImpl[] src = new EnumImpl[]{ EnumImpl.FOO, null, EnumImpl.BAZ }; Interfaz[] dest = new Interfaz[5]; - Arrays.fill(dest, null); // undefined != null, wierd. + Arrays.fill(dest, null); // undefined != null, weird. System.arraycopy(src, 0, dest, 1, 3); assertEquals( @@ -90,7 +90,7 @@ public void testArraycopyEnumToInterface() { public void testArraycopyEnumToObject() { EnumImpl[] src = new EnumImpl[]{ EnumImpl.FOO, null, EnumImpl.BAZ }; Object[] dest = new Object[5]; - Arrays.fill(dest, null); // undefined != null, wierd. + Arrays.fill(dest, null); // undefined != null, weird. System.arraycopy(src, 0, dest, 1, 3); assertEquals( @@ -159,7 +159,7 @@ public void testArraycopyInterfaceToObject() { Interfaz[] src = new Interfaz[]{ new InterfazImpl("foo"), null, new InterfazImpl("bar") }; Object[] dest = new Object[5]; - Arrays.fill(dest, null); // undefined != null, wierd. + Arrays.fill(dest, null); // undefined != null, weird. System.arraycopy(src, 0, dest, 1, 3); assertEquals(Arrays.asList(null, new InterfazImpl("foo"), null, diff --git a/user/test/com/google/gwt/junit/client/GWTTestCaseStackTraceTest.java b/user/test/com/google/gwt/junit/client/GWTTestCaseStackTraceTest.java index 0c360148474..dab2fc1c740 100644 --- a/user/test/com/google/gwt/junit/client/GWTTestCaseStackTraceTest.java +++ b/user/test/com/google/gwt/junit/client/GWTTestCaseStackTraceTest.java @@ -121,7 +121,7 @@ public void assertException(ExpectedFailure annotation, Throwable actual) { } } - // @Propery added just to introduce a different module name for the test + // @Property added just to introduce a different module name for the test @WithProperties(@Property(name = "locale", value = "tr")) @ExpectedFailure(withAsserter = StackTraceAsserterFromDifferentModule.class) public void testStackTrace_fromDifferentModule() { diff --git a/user/test/com/google/gwt/user/client/ui/StackPanelTest.java b/user/test/com/google/gwt/user/client/ui/StackPanelTest.java index fff86fab457..5d813913059 100644 --- a/user/test/com/google/gwt/user/client/ui/StackPanelTest.java +++ b/user/test/com/google/gwt/user/client/ui/StackPanelTest.java @@ -147,7 +147,7 @@ public void testRemove() { p.remove(1); assertEquals("a d", curContents(p)); - // Remove non-existant element + // Remove non-existent element assertFalse(p.remove(b)); // Remove a. diff --git a/user/test/com/google/gwt/user/rebind/rpc/SerializableTypeOracleBuilderTest.java b/user/test/com/google/gwt/user/rebind/rpc/SerializableTypeOracleBuilderTest.java index 5214d3cef4f..77a8a30a44d 100644 --- a/user/test/com/google/gwt/user/rebind/rpc/SerializableTypeOracleBuilderTest.java +++ b/user/test/com/google/gwt/user/rebind/rpc/SerializableTypeOracleBuilderTest.java @@ -1804,7 +1804,7 @@ public void testRawTypes() throws UnableToCompleteException, NotFoundException { } /** - * Tests that a type paramter that occurs within its bounds will not result in + * Tests that a type parameter that occurs within its bounds will not result in * infinite recursion. * * @throws UnableToCompleteException diff --git a/user/test/com/google/gwt/user/server/rpc/RPCServletUtilsTest.java b/user/test/com/google/gwt/user/server/rpc/RPCServletUtilsTest.java index 18928f2d06e..4ceb463071e 100644 --- a/user/test/com/google/gwt/user/server/rpc/RPCServletUtilsTest.java +++ b/user/test/com/google/gwt/user/server/rpc/RPCServletUtilsTest.java @@ -182,7 +182,7 @@ public void testGetCharsetInstances() { /** * Test that RPCServletUtils#getCharset() returns the correct - * default UTF-8 charachter set when passed a null encoding value. + * default UTF-8 character set when passed a null encoding value. */ public void testGetDefaultCharset() { assertEquals(Charset.forName("UTF-8"), RPCServletUtils.CHARSET_UTF8); diff --git a/user/test/com/google/web/bindery/requestfactory/server/MapKey.java b/user/test/com/google/web/bindery/requestfactory/server/MapKey.java index dc4142660d7..81837af129e 100644 --- a/user/test/com/google/web/bindery/requestfactory/server/MapKey.java +++ b/user/test/com/google/web/bindery/requestfactory/server/MapKey.java @@ -53,7 +53,7 @@ public static MapKey findMapKeyById(String id) { public static synchronized Map get() { HttpServletRequest req = RequestFactoryServlet.getThreadLocalRequest(); if (req == null) { - // May be in a JRE test case, use the the singleton + // May be in a JRE test case, use the singleton return jreTestSingleton; } else { /* diff --git a/user/test/com/google/web/bindery/requestfactory/server/MapValue.java b/user/test/com/google/web/bindery/requestfactory/server/MapValue.java index 4c21411d7ac..7baf8730d12 100644 --- a/user/test/com/google/web/bindery/requestfactory/server/MapValue.java +++ b/user/test/com/google/web/bindery/requestfactory/server/MapValue.java @@ -52,7 +52,7 @@ public static MapValue findMapValueById(String id) { public static synchronized Map get() { HttpServletRequest req = RequestFactoryServlet.getThreadLocalRequest(); if (req == null) { - // May be in a JRE test case, use the the singleton + // May be in a JRE test case, use the singleton return jreTestSingleton; } else { /* diff --git a/user/test/org/apache/commons/collections/TestMap.java b/user/test/org/apache/commons/collections/TestMap.java index 37819350c65..08a968df590 100644 --- a/user/test/org/apache/commons/collections/TestMap.java +++ b/user/test/org/apache/commons/collections/TestMap.java @@ -31,7 +31,7 @@ * operations, simply extend this class, and implement the {@link * #makeEmptyMap()} method. *

- * On the other hand, if your map implemenation is wierd, you may have to + * On the other hand, if your map implemenation is weird, you may have to * override one or more of the other protected methods. They're described * below.

*