Skip to content

Commit

Permalink
Fix typos in javadocs and comments.
Browse files Browse the repository at this point in the history
Change-Id: I2f1cd9bf1df72b2729cd469aa27a35d05abb2d3d
  • Loading branch information
foxylion committed Feb 2, 2015
1 parent e775da6 commit 26a9964
Show file tree
Hide file tree
Showing 50 changed files with 58 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion dev/core/src/com/google/gwt/dev/js/JsInliner.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<JsFunction, JsFunction> singleInvocations = Maps.newHashMap();

Expand Down
4 changes: 2 additions & 2 deletions dev/core/src/com/google/gwt/dev/js/ast/JsSuperVisitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -509,4 +509,4 @@ public boolean visit(JsWhile x, JsContext ctx) {
return visit((JsStatement) x, ctx);
}

}
}
2 changes: 1 addition & 1 deletion dev/core/src/com/google/gwt/dev/js/rhino/Context.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion dev/core/src/com/google/gwt/dev/js/rhino/ObjToIntMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion dev/core/src/com/google/gwt/dev/js/rhino/UintMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) /*-{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -76,4 +76,4 @@ public void onModuleLoad() {
// Attach the element to the page.
Document.get().getBody().appendChild(div);
}
}
}
2 changes: 1 addition & 1 deletion user/src/com/google/gwt/core/client/js/JsType.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* <p>
* 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).
* <p>
* 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
Expand Down
2 changes: 1 addition & 1 deletion user/src/com/google/gwt/dom/client/Element.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion user/src/com/google/gwt/dom/client/NativeEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public final boolean getMetaKey() {
* Gets the velocity of the mouse wheel associated with the event along the Y
* axis.
* <p>
* 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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion user/src/com/google/gwt/i18n/rebind/LocaleUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion user/src/com/google/gwt/i18n/shared/DateTimeFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion user/src/com/google/gwt/uibinder/client/UiRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* generation for SafeHtml rendering.
* <p>
* <span style='color: red'>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.</span>
*/
public interface UiRenderer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion user/src/com/google/gwt/user/client/DOM.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
* <p>
* 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;
Expand Down
2 changes: 1 addition & 1 deletion user/src/com/google/gwt/user/client/ui/DeckPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion user/src/com/google/gwt/user/client/ui/PopupPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion user/src/com/google/gwt/user/client/ui/SuggestOracle.java
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public void setSuggestions(Collection<? extends Suggestion> suggestions) {
* <code>SelectionHandler.onSelection(SelectionEvent&lt;Suggestion&gt; event)</code>
* method, obtain the selected <code>Suggestion</code> object from the
* {@link com.google.gwt.event.logical.shared.SelectionEvent} object, and downcast
* the <code>Suggestion</code> object to the subinterface. Then, acces the DTO
* the <code>Suggestion</code> object to the subinterface. Then, access the DTO
* using the DTO getter method that was defined on the subinterface.
* </p>
*/
Expand Down
4 changes: 2 additions & 2 deletions user/src/com/google/gwt/user/client/ui/TabPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion user/src/com/google/gwt/user/client/ui/Tree.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* {@link com.google.gwt.user.client.ui.impl.PopupImpl} in the case where
* Mozilla is NOT running on the Mac.
* <p>
* 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
Expand Down Expand Up @@ -125,4 +125,4 @@ public void setClip(Element popup, String rect) {
popup.getStyle().setDisplay(Display.NONE);
popup.getStyle().clearDisplay();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>AutoBean&lt;T></code>.
*
* <pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public TypeMirror visitWildcard(WildcardType x, State state) {

/**
* Utility method to convert a {@code Foo<BarProxy> -> 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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>MessageInterpolator</code>
* implementation. See the implementation documentation for more detail.
*
Expand All @@ -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 <code>Locale</code> used is provided as a parameter.
*
* @param messageTemplate The message to interpolate.
Expand Down
Loading

0 comments on commit 26a9964

Please sign in to comment.