Skip to content

Commit d011a13

Browse files
Merge pull request #1912 from LorenzNickel:typos-and-grammar-1
PiperOrigin-RevId: 464645837
2 parents 392218b + 34e9350 commit d011a13

File tree

12 files changed

+13
-13
lines changed

12 files changed

+13
-13
lines changed

translator/src/main/java/com/google/devtools/j2objc/ast/TreeUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public static String getSourceFileName(CompilationUnit unit) {
309309

310310
/**
311311
* Returns the given statement as a list of statements that can be added to.
312-
* If node is a Block, then returns it's statement list. If node is the direct
312+
* If node is a Block, then returns its statement list. If node is the direct
313313
* child of a Block, returns the sublist containing node as the only element.
314314
* Otherwise, creates a new Block node in the place of node and returns its
315315
* list of statements.

translator/src/main/java/com/google/devtools/j2objc/gen/AbstractSourceGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
/**
2020
* This is a base class for all generator types, containing a SourceBuilder and
21-
* prividing convenient access to it.
21+
* providing convenient access to it.
2222
*
2323
* @author Tom Ball, Keith Stanger
2424
*/

translator/src/main/java/com/google/devtools/j2objc/javac/TreeConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ private TreeNode convertBinary(BinaryTree node, TreePath parent) {
580580
// code traverses the subtree non-recursively and merges all children
581581
// that have the same operator into this node.
582582
//
583-
// Note: we will not flatten the tree if the same opeartors are EQUAL_TO or NOT_EQUAL_TO.
583+
// Note: we will not flatten the tree if the same operators are EQUAL_TO or NOT_EQUAL_TO.
584584
List<StackState> stack = Lists.newArrayList();
585585
stack.add(new StackState(node));
586586
while (!stack.isEmpty()) {

translator/src/main/java/com/google/devtools/j2objc/translate/DefaultMethodShimGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ private void addShimWithInvocation(
216216
}
217217

218218
private void addDefaultMethodShim(String selector, ExecutablePair method) {
219-
// The shim's only purpose is to call the default method implementation and returns it value
219+
// The shim's only purpose is to call the default method implementation and return its value
220220
// if required.
221221
TypeElement declaringClass = ElementUtil.getDeclaringClass(method.element());
222222
String name = nameTable.getFullFunctionName(method.element());

translator/src/main/java/com/google/devtools/j2objc/translate/NilCheckResolver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private Scope(Scope next, Kind kind, String label) {
132132
this.kind = kind;
133133
this.label = label;
134134
// When the stack grows, the existing scope is assumed to be terminating
135-
// until a decendent branch merges back into it.
135+
// until a descendant branch merges back into it.
136136
if (next != null) {
137137
next.terminates = true;
138138
}
@@ -197,7 +197,7 @@ private void mergeDownAndReset() {
197197
vars.clear();
198198
}
199199

200-
// This scope is re-entered from it's parent scope.
200+
// This scope is re-entered from its parent scope.
201201
private void backwardMerge() {
202202
if (terminates) {
203203
vars.clear();

translator/src/main/java/com/google/devtools/j2objc/translate/NumberMethodRewriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
/**
3333
* Adds hash and isEqual: methods to java.lang.Number subclasses that
3434
* do not define them. This is necessary because classes that do not
35-
* define these method expect Object.equals() and Object.hashCode()
35+
* define these methods expect Object.equals() and Object.hashCode()
3636
* behavior; since Number is mapped to NSNumber, though, by default
3737
* they inherit NSNumber behavior.
3838
*

translator/src/main/java/com/google/devtools/j2objc/translate/OcniExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
* Extracts OCNI code blocks into NativeDeclaration and NativeStatement nodes.
4848
* Adds native fast enumeration support for Iterable types, when not already
4949
* defined.
50-
* Adds synchronized blocks to methods with with the synchonized modifier.
50+
* Adds synchronized blocks to methods with the synchronized modifier.
5151
*
5252
* @author Keith Stanger
5353
*/

translator/src/main/java/com/google/devtools/j2objc/translate/SwitchRewriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
import javax.lang.model.type.TypeMirror;
4646

4747
/**
48-
* Rewrites switch statemennts to be more compatible with Objective-C code.
48+
* Rewrites switch statements to be more compatible with Objective-C code.
4949
*
5050
* @author Keith Stanger
5151
*/

translator/src/main/java/com/google/devtools/j2objc/translate/UnsequencedExpressionRewriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ private void extractOrderedAccesses(
173173
if (topConditional != null) {
174174
// Conditional expressions require special handling when extracting the
175175
// access because execution of the access may not be guaranteed.
176-
// Here we collect all accesses that are decendant of the conditional
176+
// Here we collect all accesses that are descendant of the conditional
177177
// expression and pass them to an appropriate extraction method.
178178
int j = i + 1;
179179
for (; j < toExtract.size(); j++) {

translator/src/main/java/com/google/devtools/j2objc/util/ElementUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public static boolean isPackageInfo(TypeElement type) {
316316
}
317317

318318
/**
319-
* Tests if this type element is private to it's source file. A public type declared
319+
* Tests if this type element is private to its source file. A public type declared
320320
* within a private type is considered private.
321321
*/
322322
public static boolean isPrivateInnerType(TypeElement type) {

0 commit comments

Comments
 (0)