Skip to content

Commit 25978d6

Browse files
committed
Fix typos
1 parent 21c190a commit 25978d6

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

core/src/main/java/com/google/errorprone/bugpatterns/ClassNewInstance.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState
8383
return describeMatch(tree, fix.build());
8484
}
8585

86-
// if the match occurrs inside the body of a try statement with existing catch clauses
86+
// if the match occurs inside the body of a try statement with existing catch clauses
8787
// update or add a catch block to handle the new exceptions
8888
private static boolean fixExceptions(VisitorState state, SuggestedFix.Builder fix) {
8989
TryTree tryTree = null;

docs/bugpattern/BindingToUnqualifiedCommonType.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Guice bindings are keyed by a pair of (optional Annotation, Type).
22

3-
In most cirumstances, one doesn't need the annotation, as there's really just
3+
In most circumstances, one doesn't need the annotation, as there's really just
44
one active implementation:
55

66
```java

docs/bugpattern/IsInstanceOfClass.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ equal to `Class` (i.e. lhs is equal to `Class.class`).
1818
```
1919

2020
To test if the type represented by a class literal is a subtype of the type
21-
reprsented by some other class literal, `isAssignableFrom` should be used
21+
represented by some other class literal, `isAssignableFrom` should be used
2222
instead:
2323

2424
```java

docs/bugpattern/OverridesGuiceInjectableMethod.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ with `@com.google.inject.Inject`, Guice will inject it even if it itself is not
33
annotated. This differs from the behavior of methods that override
44
`@javax.inject.Inject` methods since according to the JSR-330 spec, a method
55
that overrides a method annotated with `@javax.inject.Inject` will not be
6-
injected unless it iself is annotated with `@Inject`. Because of this
6+
injected unless it itself is annotated with `@Inject`. Because of this
77
difference, it is recommended that you annotate this method explicitly.

docs/bugpattern/RedundantOverride.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
An override of a method that delegates its implementation to the super method is
2-
redudant, and can be removed.
2+
redundant, and can be removed.
33

44
For example, the `equals` method in the following class implementation can be
55
deleted.

docs/bugpattern/StaticAssignmentOfThrowable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The problem we're trying to prevent is unhelpful stack traces that don't contain
2-
information about where the Exception was thrown from. This probem can sometimes
2+
information about where the Exception was thrown from. This problem can sometimes
33
arise when an attempt is being made to cache or reuse a Throwable (often, a
44
particular Exception). In this case, consider whether this is really is
55
necessary: it often isn't. Could a Throwable simply be instantiated when needed?

docs/bugpattern/javadoc/InvalidInlineTag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ int twoTimes(int n) {
2121
}
2222
```
2323

24-
If the `@` symbol occurrs inside a code excerpt, the fix is to escape the code
24+
If the `@` symbol occurs inside a code excerpt, the fix is to escape the code
2525
excerpt using `<pre>{@code ... }</pre>`:
2626

2727
```java

0 commit comments

Comments
 (0)