Skip to content

Commit 8751c16

Browse files
authored
Merge pull request javaparser#3675 from mernst/typos-typos
Fix typos
2 parents b51475a + e6f6db8 commit 8751c16

File tree

12 files changed

+14
-14
lines changed

12 files changed

+14
-14
lines changed

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1660,7 +1660,7 @@ Version 3.2.6
16601660
------------------
16611661
[issues resolved](https://github.com/javaparser/javaparser/milestone/46?closed=1)
16621662
* `EmptyMemberDeclaration` is gone!
1663-
It was deprecated for a while because it it was in the AST, but doesn't have any meaning in a Java program.
1663+
It was deprecated for a while because it was in the AST, but doesn't have any meaning in a Java program.
16641664
`EmptyStmt` was also deprecated, but that has been reverted.
16651665
This node *does* have meaning.
16661666

javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/Issue1467Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void test() {
5353
" }" ;
5454
CompilationUnit cu = StaticJavaParser.parse(before);
5555
LexicalPreservingPrinter.setup(cu);
56-
// add method method declaration
56+
// add method declaration
5757
MethodDeclaration decl = cu.getChildNodesByType(ClassOrInterfaceDeclaration.class).get(0).addMethod("f", Keyword.PUBLIC);
5858
// create body
5959
BlockStmt body = new BlockStmt();

javaparser-core/src/main/java/com/github/javaparser/HasParentNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ default boolean hasParentNode() {
4949
* Sets the parent node.
5050
*
5151
* @param parentNode the parent node, or {@code null} to set no parent.
52-
* @return return {@code this}
52+
* @return {@code this}
5353
*/
5454
T setParentNode(Node parentNode);
5555

javaparser-core/src/main/java/com/github/javaparser/ast/Node.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
* like where braces or comma's are exactly.
9292
* Therefore there is no position information on everything in the original source file.
9393
* <h2>Observers</h2>
94-
* <p>It is possible to add observers to the the tree.
94+
* <p>It is possible to add observers to the tree.
9595
* Any change in the tree is sent as an event to any observers watching.
9696
* <h2>Visitors</h2>
9797
* <p>The most comfortable way of working with an abstract syntax tree is using visitors.

javaparser-core/src/main/java/com/github/javaparser/ast/expr/AssignExpr.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
import static com.github.javaparser.utils.Utils.assertNotNull;
3737

3838
/**
39-
* An assignment expression. It supports the operators that are found the the AssignExpr.Operator enum.
39+
* An assignment expression. It supports the operators that are found the AssignExpr.Operator enum.
4040
* <br>{@code a=5}
4141
* <br>{@code time+=500}
4242
* <br>{@code watch.time+=500}

javaparser-core/src/main/java/com/github/javaparser/ast/expr/BinaryExpr.java

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

3838
/**
3939
* An expression with an expression on the left, an expression on the right, and an operator in the middle.
40-
* It supports the operators that are found the the BinaryExpr.Operator enum.
40+
* It supports the operators that are found the BinaryExpr.Operator enum.
4141
* <br>{@code a && b}
4242
* <br>{@code 155 * 33}
4343
*

javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ResolvedReferenceTypeDeclaration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ default List<ResolvedReferenceType> getAllAncestors(Function<ResolvedReferenceTy
136136
};
137137

138138
/*
139-
* breadth first search all all ancestors
139+
* breadth first search all ancestors
140140
* In the example above, this method returns B,C,D,E
141141
*/
142142
Function<ResolvedReferenceTypeDeclaration, List<ResolvedReferenceType>> breadthFirstFunc = (rrtd) -> {

javaparser-core/src/main/java/com/github/javaparser/utils/SourceRoot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ enum Result {
7575
/**
7676
* @param localPath the path to the file that was parsed, relative to the source root path.
7777
* @param absolutePath the absolute path to the file that was parsed.
78-
* @param result the result of of parsing the file.
78+
* @param result the result of parsing the file.
7979
*/
8080
Result process(Path localPath, Path absolutePath, ParseResult<CompilationUnit> result);
8181
}

javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/UnaryExprContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public List<PatternExpr> patternExprsExposedFromChildren() {
2626
// Avoid infinite loop
2727
if(!this.equals(innerContext)) {
2828
// Note that `UnaryExpr.Operator.LOGICAL_COMPLEMENT` is `!`
29-
// Previously negated pattern expressions are now now available (double negatives) -- e.g. if(!!("a" instanceof String s)) {}
29+
// Previously negated pattern expressions are now available (double negatives) -- e.g. if(!!("a" instanceof String s)) {}
3030
results.addAll(innerContext.negatedPatternExprsExposedFromChildren());
3131
}
3232
}

javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/naming/NameLogic.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ private static boolean isSyntacticallyAAmbiguousName(Node name) {
614614
//
615615
// 4. In the default value clause of an annotation type element declaration (§9.6.2)
616616
//
617-
// 5. To the right of an "=" in an an element-value pair (§9.7.1)
617+
// 5. To the right of an "=" in an element-value pair (§9.7.1)
618618

619619
if (whenParentIs(MemberValuePair.class, name, (p, c) -> p.getValue() == c)) {
620620
return true;

javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/JavaParserSymbolDeclarationTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class JavaParserSymbolDeclarationTest {
1818

1919
/**
2020
* Try to create a field using {@link JavaParserSymbolDeclaration#field(VariableDeclarator, TypeSolver)} and check
21-
* if the returned declaration is marked as a field and can be converted converted to a
21+
* if the returned declaration is marked as a field and can be converted to a
2222
* {@link com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration} using {@link ResolvedValueDeclaration#asField()}.
2323
*/
2424
@Test
@@ -34,7 +34,7 @@ void createdFieldShouldBeMarkedAsField() {
3434

3535
/**
3636
* Try to create a parameter using {@link JavaParserSymbolDeclaration#parameter(Parameter, TypeSolver)} and check
37-
* if the returned declaration is marked as a parameter and can be converted converted to a
37+
* if the returned declaration is marked as a parameter and can be converted to a
3838
* {@link com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration} using {@link ResolvedValueDeclaration#asParameter()}.
3939
*/
4040
@Test
@@ -60,7 +60,7 @@ void createdLocalVariableShouldBeMarkedAsVariable() {
6060

6161
/**
6262
* Try to create a pattern variable using {@link JavaParserSymbolDeclaration#patternVar(PatternExpr, TypeSolver)} and check
63-
* if the returned declaration is marked as a pattern and can be converted converted to a
63+
* if the returned declaration is marked as a pattern and can be converted to a
6464
* {@link com.github.javaparser.resolution.declarations.ResolvedPatternDeclaration} using {@link ResolvedValueDeclaration#asPattern()}.
6565
*/
6666
@Test

javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/type/ReferenceType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void setType(final Type type) {
101101
* int @Ann1 [] @Ann2 [] array;
102102
* }</pre></p>
103103
*
104-
* <p>in this this method will return a list with the annotation expressions <pre>@Ann1</pre>
104+
* <p>in this method will return a list with the annotation expressions <pre>@Ann1</pre>
105105
* and <pre>@Ann2</pre></p>
106106
*
107107
* <p>Note that the first list element of arraysAnnotations will refer to the first array modifier encountered.

0 commit comments

Comments
 (0)