Skip to content

Commit

Permalink
Merge pull request #90 from googlesamples/update-docs
Browse files Browse the repository at this point in the history
Update documentation snapshot.
  • Loading branch information
tnorbye authored Jul 2, 2024
2 parents bbf7306 + 968b534 commit 560a5de
Show file tree
Hide file tree
Showing 246 changed files with 5,072 additions and 1,421 deletions.
1,510 changes: 1,188 additions & 322 deletions docs/api-guide.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/api-guide.md.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
(insert api-guide/terminology.md.html here)
(insert api-guide/basics.md.html here)
(insert api-guide/example.md.html here)
(insert api-guide/ast-analysis.md.html here)
(insert api-guide/publishing.md.html here)
(insert api-guide/unit-testing.md.html here)
(insert api-guide/test-modes.md.html here)
Expand Down
6 changes: 3 additions & 3 deletions docs/api-guide/annotations.md.html
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@
called for the second `pop` call as well, since it calls a method
inside a `@ThreadSafe` annotation (on the outer class), but the `index`
would be 1. The lint check can check all the annotations earlier than
the one at the index to see if they "counteract" the annotation, which
the one at the index to see if they counteract the annotation, which
of course the `@NotThreadSafe` annotation does.

Lint uses this mechanism for example for the `@CheckResult` annotation,
Expand All @@ -375,7 +375,7 @@
found in multiple nested contexts, lint *will* include all the
annotations in the `AnnotationUsageInfo`, but it will not invoke
your callback for any outer occurrences; only the closest one. This
is usually what detectors expect: the innermost one "overrides" the
is usually what detectors expect: the innermost one overrides the
outer ones, so lint omits these to help avoid false positives where
a lint check author forgot to handle and test this scenario. A good
example of this situation is with the `@RequiresApi` annotation; a
Expand Down Expand Up @@ -405,7 +405,7 @@
for testing purposes, but you have a concrete subclass where you are
deliberately supporting the operation, not just from tests. If
annotations were always inherited, you would have to create some sort
of annotation to "revert" the semantics, e.g.
of annotation to revert the semantics, e.g.
`@VisibleNotJustForTesting`, which would require a lot of noisy
annotations.

Expand Down
Loading

0 comments on commit 560a5de

Please sign in to comment.