From 911846b49b85d71f41ec3b4d019e8873e64aee50 Mon Sep 17 00:00:00 2001 From: Pavel Rappo Date: Tue, 24 Dec 2019 09:38:41 +0000 Subject: [PATCH] 8236435: Fix typos in javac area Reviewed-by: jjg, mcimadamore --- .../share/classes/javax/tools/Diagnostic.java | 4 ++-- .../classes/javax/tools/DocumentationTool.java | 9 +++++---- .../share/classes/javax/tools/JavaCompiler.java | 8 ++++---- .../classes/com/sun/source/tree/CaseTree.java | 2 +- .../classes/com/sun/source/util/JavacTask.java | 2 +- .../sun/tools/javac/api/ClientCodeWrapper.java | 6 +++--- .../com/sun/tools/javac/api/JavacTaskPool.java | 4 ++-- .../com/sun/tools/javac/code/Directive.java | 4 ++-- .../classes/com/sun/tools/javac/code/Flags.java | 2 +- .../classes/com/sun/tools/javac/code/Lint.java | 4 ++-- .../com/sun/tools/javac/code/Printer.java | 4 ++-- .../classes/com/sun/tools/javac/code/Type.java | 2 +- .../com/sun/tools/javac/code/TypeMetadata.java | 6 +++--- .../classes/com/sun/tools/javac/code/Types.java | 2 +- .../com/sun/tools/javac/comp/Annotate.java | 10 +++++----- .../com/sun/tools/javac/comp/ArgumentAttr.java | 4 ++-- .../classes/com/sun/tools/javac/comp/Attr.java | 10 +++++----- .../classes/com/sun/tools/javac/comp/Check.java | 16 ++++++++-------- .../com/sun/tools/javac/comp/DeferredAttr.java | 2 +- .../classes/com/sun/tools/javac/comp/Flow.java | 12 ++++++------ .../classes/com/sun/tools/javac/comp/Infer.java | 12 ++++++------ .../com/sun/tools/javac/comp/LambdaToMethod.java | 4 ++-- .../classes/com/sun/tools/javac/comp/Lower.java | 4 ++-- .../com/sun/tools/javac/comp/Modules.java | 2 +- .../com/sun/tools/javac/comp/Operators.java | 6 +++--- .../com/sun/tools/javac/comp/Resolve.java | 10 +++++----- .../sun/tools/javac/file/BaseFileManager.java | 6 +++--- .../sun/tools/javac/file/JavacFileManager.java | 2 +- .../com/sun/tools/javac/file/Locations.java | 2 +- .../com/sun/tools/javac/jvm/ClassReader.java | 8 ++++---- .../classes/com/sun/tools/javac/jvm/Gen.java | 6 +++--- .../classes/com/sun/tools/javac/jvm/Items.java | 8 ++++---- .../com/sun/tools/javac/jvm/JNIWriter.java | 4 ++-- .../sun/tools/javac/jvm/ModuleNameReader.java | 4 ++-- .../com/sun/tools/javac/jvm/PoolConstant.java | 2 +- .../com/sun/tools/javac/jvm/PoolWriter.java | 6 +++--- .../com/sun/tools/javac/launcher/Main.java | 4 ++-- .../com/sun/tools/javac/main/JavaCompiler.java | 2 +- .../classes/com/sun/tools/javac/main/Option.java | 4 ++-- .../tools/javac/model/AnnotationProxyMaker.java | 2 +- .../sun/tools/javac/parser/JavaTokenizer.java | 4 ++-- .../com/sun/tools/javac/parser/Lexer.java | 4 ++-- .../sun/tools/javac/processing/JavacFiler.java | 4 ++-- .../tools/javac/processing/JavacMessager.java | 4 ++-- .../processing/JavacProcessingEnvironment.java | 14 +++++++------- .../tools/javac/resources/compiler.properties | 2 +- .../com/sun/tools/javac/tree/DocTreeMaker.java | 4 ++-- .../classes/com/sun/tools/javac/tree/JCTree.java | 2 +- .../classes/com/sun/tools/javac/tree/Pretty.java | 2 +- .../javac/util/AbstractDiagnosticFormatter.java | 6 +++--- .../tools/javac/util/ClientCodeException.java | 4 ++-- .../com/sun/tools/javac/util/Context.java | 4 ++-- .../com/sun/tools/javac/util/Convert.java | 4 ++-- .../util/ForwardingDiagnosticFormatter.java | 4 ++-- .../classes/com/sun/tools/javac/util/Names.java | 2 +- .../com/sun/tools/javac/util/Options.java | 4 ++-- .../com/sun/tools/javac/util/Position.java | 4 ++-- .../javac/util/RichDiagnosticFormatter.java | 6 +++--- .../sun/tools/sjavac/CompileJavaPackages.java | 4 ++-- .../classes/com/sun/tools/sjavac/JavacState.java | 4 ++-- .../classes/com/sun/tools/sjavac/Source.java | 6 +++--- .../sun/tools/sjavac/client/SjavacClient.java | 4 ++-- .../sun/tools/sjavac/comp/SmartFileManager.java | 4 ++-- .../com/sun/tools/sjavac/server/PortFile.java | 4 ++-- .../classes/sun/tools/serialver/SerialVer.java | 4 ++-- 65 files changed, 160 insertions(+), 159 deletions(-) diff --git a/src/java.compiler/share/classes/javax/tools/Diagnostic.java b/src/java.compiler/share/classes/javax/tools/Diagnostic.java index dfa5ef4a39d..4c1e8f8dd4a 100644 --- a/src/java.compiler/share/classes/javax/tools/Diagnostic.java +++ b/src/java.compiler/share/classes/javax/tools/Diagnostic.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2019, 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 Diagnostic { * associated with this diagnostic that indicates the location of * the problem. In addition, the following must be true: * - *

{@code getStartPostion() <= getPosition()} + *

{@code getStartPosition() <= getPosition()} *

{@code getPosition() <= getEndPosition()} * * @return character offset from beginning of source; {@link diff --git a/src/java.compiler/share/classes/javax/tools/DocumentationTool.java b/src/java.compiler/share/classes/javax/tools/DocumentationTool.java index 6ca4b15546a..a9797fac868 100644 --- a/src/java.compiler/share/classes/javax/tools/DocumentationTool.java +++ b/src/java.compiler/share/classes/javax/tools/DocumentationTool.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2019, 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 @@ -53,7 +53,7 @@ public interface DocumentationTool extends Tool, OptionChecker { * use {@code System.err} if {@code null} * * @param fileManager a file manager; if {@code null} use the - * tool's standard filemanager + * tool's standard file manager * * @param diagnosticListener a diagnostic listener; if {@code null} * use the tool's default method for reporting diagnostics @@ -117,7 +117,7 @@ public interface DocumentationTool extends Tool, OptionChecker { * task has not yet started. To start the task, call * the {@linkplain #call call} method. * - *

Before calling the call method, additional aspects of the + *

Before calling the {@code call} method, additional aspects of the * task can be configured, for example, by calling the * {@linkplain #setLocale setLocale} method. */ @@ -149,7 +149,7 @@ public interface DocumentationTool extends Tool, OptionChecker { /** * Performs this documentation task. The task may only * be performed once. Subsequent calls to this method throw - * IllegalStateException. + * {@code IllegalStateException}. * * @return true if and only all the files were processed without errors; * false otherwise @@ -161,6 +161,7 @@ public interface DocumentationTool extends Tool, OptionChecker { * * @throws IllegalStateException if called more than once */ + @Override Boolean call(); } diff --git a/src/java.compiler/share/classes/javax/tools/JavaCompiler.java b/src/java.compiler/share/classes/javax/tools/JavaCompiler.java index 3c6ce0de06f..7041fb23671 100644 --- a/src/java.compiler/share/classes/javax/tools/JavaCompiler.java +++ b/src/java.compiler/share/classes/javax/tools/JavaCompiler.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2019, 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 @@ -236,7 +236,7 @@ public interface JavaCompiler extends Tool, OptionChecker { * @param out a Writer for additional output from the compiler; * use {@code System.err} if {@code null} * @param fileManager a file manager; if {@code null} use the - * compiler's standard filemanager + * compiler's standard file manager * @param diagnosticListener a diagnostic listener; if {@code * null} use the compiler's default method for reporting * diagnostics @@ -290,7 +290,7 @@ public interface JavaCompiler extends Tool, OptionChecker { * compilation task has not yet started. To start the task, call * the {@linkplain #call call} method. * - *

Before calling the call method, additional aspects of the + *

Before calling the {@code call} method, additional aspects of the * task can be configured, for example, by calling the * {@linkplain #setProcessors setProcessors} method. */ @@ -331,7 +331,7 @@ public interface JavaCompiler extends Tool, OptionChecker { /** * Performs this compilation task. The compilation may only * be performed once. Subsequent calls to this method throw - * IllegalStateException. + * {@code IllegalStateException}. * * @return true if and only all the files compiled without errors; * false otherwise diff --git a/src/jdk.compiler/share/classes/com/sun/source/tree/CaseTree.java b/src/jdk.compiler/share/classes/com/sun/source/tree/CaseTree.java index a691ba0e10d..d3fbb6b2f30 100644 --- a/src/jdk.compiler/share/classes/com/sun/source/tree/CaseTree.java +++ b/src/jdk.compiler/share/classes/com/sun/source/tree/CaseTree.java @@ -98,7 +98,7 @@ public interface CaseTree extends Tree { } /** - * The syntatic form of this case: + * The syntactic form of this case: *