8273609: Fix trivial doc typos in the compiler area

Reviewed-by: rriggs, vromero, iris
This commit is contained in:
Pavel Rappo 2021-09-10 19:33:54 +00:00
parent e4cd2097a5
commit f42b92790a
7 changed files with 16 additions and 16 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -112,7 +112,7 @@ public interface ProcessingEnvironment {
/**
* {@return the current locale or {@code null} if no locale is in
* effect} The locale can be be used to provide localized
* effect} The locale can be used to provide localized
* {@linkplain Messager messages}.
*/
Locale getLocale();

View File

@ -746,7 +746,7 @@ public interface Elements {
* record component is returned, in any other case {@code null} is returned.
*
* @param accessor the method for which the record component should be found.
* @return the record component, or null if the given method is not an record
* @return the record component, or null if the given method is not a record
* component accessor
* @since 16
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -468,7 +468,7 @@ public interface JavaFileManager extends Closeable, Flushable, OptionChecker {
* @return the location for the named module
*
* @throws IOException if an I/O error occurred
* @throws UnsupportedOperationException if this operation if not supported by this file manager
* @throws UnsupportedOperationException if this operation is not supported by this file manager
* @throws IllegalArgumentException if the location is neither an output location nor a
* module-oriented location
* @since 9
@ -491,7 +491,7 @@ public interface JavaFileManager extends Closeable, Flushable, OptionChecker {
* @return the module containing the file
*
* @throws IOException if an I/O error occurred
* @throws UnsupportedOperationException if this operation if not supported by this file manager
* @throws UnsupportedOperationException if this operation is not supported by this file manager
* @throws IllegalArgumentException if the location is neither an output location nor a
* module-oriented location
* @since 9
@ -516,7 +516,7 @@ public interface JavaFileManager extends Closeable, Flushable, OptionChecker {
* @return a service loader for the given service class
*
* @throws IOException if an I/O error occurred
* @throws UnsupportedOperationException if this operation if not supported by this file manager
* @throws UnsupportedOperationException if this operation is not supported by this file manager
* @since 9
*/ // TODO: describe failure modes
default <S> ServiceLoader<S> getServiceLoader(Location location, Class<S> service) throws IOException {
@ -533,7 +533,7 @@ public interface JavaFileManager extends Closeable, Flushable, OptionChecker {
* @return the name of the module
*
* @throws IOException if an I/O error occurred
* @throws UnsupportedOperationException if this operation if not supported by this file manager
* @throws UnsupportedOperationException if this operation is not supported by this file manager
* @throws IllegalArgumentException if the location is not one known to this file manager
* @since 9
*/ // TODO: describe failure modes
@ -552,7 +552,7 @@ public interface JavaFileManager extends Closeable, Flushable, OptionChecker {
* @return a series of sets of locations containing modules
*
* @throws IOException if an I/O error occurred
* @throws UnsupportedOperationException if this operation if not supported by this file manager
* @throws UnsupportedOperationException if this operation is not supported by this file manager
* @throws IllegalArgumentException if the location is not a module-oriented location
* @since 9
*/ // TODO: describe failure modes

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -265,7 +265,7 @@ public interface DocTree {
VERSION("version"),
/**
* An implementation-reserved node. This is the not the node
* An implementation-reserved node. This is not the node
* you are looking for.
*/
OTHER;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -685,7 +685,7 @@ public interface Tree {
USES(UsesTree.class),
/**
* An implementation-reserved node. This is the not the node
* An implementation-reserved node. This is not the node
* you are looking for.
*/
OTHER(null),

View File

@ -31,7 +31,7 @@ import jdk.internal.javac.PreviewFeature;
* A visitor of trees, in the style of the visitor design pattern.
* Classes implementing this interface are used to operate
* on a tree when the kind of tree is unknown at compile time.
* When a visitor is passed to an tree's {@link Tree#accept
* When a visitor is passed to a tree's {@link Tree#accept
* accept} method, the <code>visit<i>Xyz</i></code> method most applicable
* to that tree is invoked.
*

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -121,7 +121,7 @@ public class Main {
* arguments to the main method of the first class found in the file.
*
* <p>If any problem occurs before executing the main class, it will
* be reported to the standard error stream, and the the JVM will be
* be reported to the standard error stream, and the JVM will be
* terminated by calling {@code System.exit} with a non-zero return code.
*
* @param args the arguments