From 33ae086861c2965d65fa64e0f93f2da5098b40bd Mon Sep 17 00:00:00 2001 From: Felicity Chapman Date: Fri, 25 Nov 2022 08:27:34 +0000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Tony Torralba --- .../codeql/codeql-language-guides/codeql-library-for-java.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/codeql/codeql-language-guides/codeql-library-for-java.rst b/docs/codeql/codeql-language-guides/codeql-library-for-java.rst index d6b021bb81e..319afdf29c0 100644 --- a/docs/codeql/codeql-language-guides/codeql-library-for-java.rst +++ b/docs/codeql/codeql-language-guides/codeql-library-for-java.rst @@ -270,7 +270,7 @@ For annotations, class ``Annotatable`` is a superclass of all program elements t from Constructor c select c.getAnAnnotation() -You may see examples where annottions are used to suppress warnings or to mark code as deprecated. +You may see examples where annotations are used to suppress warnings or to mark code as deprecated. These annotations are represented by class ``Annotation``. An annotation is simply an expression whose type is an ``AnnotationType``. For example, you can amend this query so that it only reports deprecated constructors: @@ -369,7 +369,7 @@ Conversely, ``Callable.getAReference`` returns a ``Call`` that refers to it. So where not exists(c.getAReference()) select c -Codebases often have many methods that are not called direcstly, but this is unlikely to be the whole story. To explore this area further, see ":doc:`Navigating the call graph `." +Codebases often have many methods that are not called directly, but this is unlikely to be the whole story. To explore this area further, see ":doc:`Navigating the call graph `." For more information about callables and calls, see the :doc:`article on the call graph `.