diff --git a/make/jdk/src/classes/build/tools/cldrconverter/Bundle.java b/make/jdk/src/classes/build/tools/cldrconverter/Bundle.java index 952e28fd43b..e8076478a06 100644 --- a/make/jdk/src/classes/build/tools/cldrconverter/Bundle.java +++ b/make/jdk/src/classes/build/tools/cldrconverter/Bundle.java @@ -732,7 +732,7 @@ class Bundle { // this is a workaround in which 'B' character // appearing in CLDR date-time pattern is replaced // with 'a' character and hence resolved with am/pm strings. - // This workaround is based on the the fallback mechanism + // This workaround is based on the fallback mechanism // specified in LDML spec for 'B' character, when a locale // does not have data for day period ('B') appendN('a', count, sb); diff --git a/make/jdk/src/classes/build/tools/dtdbuilder/DTDBuilder.java b/make/jdk/src/classes/build/tools/dtdbuilder/DTDBuilder.java index 0dd309f8c39..9c8406e2b7f 100644 --- a/make/jdk/src/classes/build/tools/dtdbuilder/DTDBuilder.java +++ b/make/jdk/src/classes/build/tools/dtdbuilder/DTDBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2022, 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 @@ -131,7 +131,7 @@ class DTDBuilder extends DTD { } // - // The the id of a name from the list of names + // The id of a name from the list of names // private short getNameId(String name) { Integer o = namesHash.get(name); diff --git a/make/jdk/src/classes/build/tools/generatebreakiteratordata/RuleBasedBreakIteratorBuilder.java b/make/jdk/src/classes/build/tools/generatebreakiteratordata/RuleBasedBreakIteratorBuilder.java index 9e058f4b8c7..b1df9a21845 100644 --- a/make/jdk/src/classes/build/tools/generatebreakiteratordata/RuleBasedBreakIteratorBuilder.java +++ b/make/jdk/src/classes/build/tools/generatebreakiteratordata/RuleBasedBreakIteratorBuilder.java @@ -148,7 +148,7 @@ class RuleBasedBreakIteratorBuilder { /** * Looping states actually have to be backfilled later in the process - * than everything else. This is where a the list of states to backfill + * than everything else. This is where the list of states to backfill * is accumulated. This is also used to handle .*? */ protected Vector statesToBackfill = null; @@ -1300,7 +1300,7 @@ class RuleBasedBreakIteratorBuilder { newValues[(int)(pendingChars.charAt(i)) - 0x100] = newValue; // go through the list of rows to update, and update them by calling - // mergeStates() to merge them the the dummy state we created + // mergeStates() to merge them the dummy state we created for (int i = 0; i < rows.size(); i++) { mergeStates(rows.elementAt(i).intValue(), newValues, rows); } @@ -1881,7 +1881,7 @@ class RuleBasedBreakIteratorBuilder { // we have to merge the resulting state table with the auto-generated one // above. First copy the populated cells from row 1 over the populated // cells in the auto-generated table. Then copy values from row 1 of the - // auto-generated table into all of the the unpopulated cells of the + // auto-generated table into all of the unpopulated cells of the // rule-based table. if (backTableOffset > 1) { diff --git a/make/langtools/src/classes/build/tools/symbolgenerator/CreateSymbols.java b/make/langtools/src/classes/build/tools/symbolgenerator/CreateSymbols.java index 41f600a817e..5e3cd01a4b8 100644 --- a/make/langtools/src/classes/build/tools/symbolgenerator/CreateSymbols.java +++ b/make/langtools/src/classes/build/tools/symbolgenerator/CreateSymbols.java @@ -169,7 +169,7 @@ import java.util.Optional; * The tools allows to: * * convert the .sym.txt into class/sig files for ct.sym * * in cooperation with the adjacent history Probe, construct .sym.txt files for previous platforms - * * enhance existing .sym.txt files with a a new set .sym.txt for the current platform + * * enhance existing .sym.txt files with a new set .sym.txt for the current platform * * To convert the .sym.txt files to class/sig files from ct.sym, run: * java build.tool.symbolgenerator.CreateSymbols build-ctsym diff --git a/make/modules/java.base/Copy.gmk b/make/modules/java.base/Copy.gmk index 16d1b8d910c..9882ed43b44 100644 --- a/make/modules/java.base/Copy.gmk +++ b/make/modules/java.base/Copy.gmk @@ -1,5 +1,5 @@ # -# Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2014, 2022, 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 @@ -233,7 +233,7 @@ $(eval $(call SetupCopyLegalFiles, COPY_LEGAL, \ TARGETS += $(COPY_LEGAL) ################################################################################ -# Optionally copy libffi.so.? into the the image +# Optionally copy libffi.so.? into the image ifeq ($(ENABLE_LIBFFI_BUNDLING), true) $(eval $(call SetupCopyFiles, COPY_LIBFFI, \ @@ -247,7 +247,7 @@ ifeq ($(ENABLE_LIBFFI_BUNDLING), true) endif ################################################################################ -# Optionally copy hsdis into the the image +# Optionally copy hsdis into the image ifeq ($(ENABLE_HSDIS_BUNDLING), true) HSDIS_NAME := hsdis-$(OPENJDK_TARGET_CPU_LEGACY_LIB)$(SHARED_LIBRARY_SUFFIX) diff --git a/make/scripts/shell-profiler.sh b/make/scripts/shell-profiler.sh index d4a39dd8d1b..de3bef27ae9 100644 --- a/make/scripts/shell-profiler.sh +++ b/make/scripts/shell-profiler.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2012, 2022, 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 @@ -30,7 +30,7 @@ # typically beginning with -c. # # This script will run the shell command line and it will also store a simple -# log of the the time it takes to execute the command in the OUTPUT_FILE, using +# log of the time it takes to execute the command in the OUTPUT_FILE, using # utility for time measure specified with TIME_CMD option. # # Type of time measure utility is specified with TIME_CMD_TYPE option. diff --git a/src/java.instrument/share/classes/java/lang/instrument/package-info.java b/src/java.instrument/share/classes/java/lang/instrument/package-info.java index 7cd34b71c91..36bb02a161d 100644 --- a/src/java.instrument/share/classes/java/lang/instrument/package-info.java +++ b/src/java.instrument/share/classes/java/lang/instrument/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2022, 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 @@ -122,7 +122,7 @@ *

Starting an Agent After VM Startup

* *

An implementation may provide a mechanism to start agents sometime after - * the the VM has started. The details as to how this is initiated are + * the VM has started. The details as to how this is initiated are * implementation specific but typically the application has already started and * its {@code main} method has already been invoked. In cases where an * implementation supports the starting of agents after the VM has started the diff --git a/src/java.naming/share/classes/javax/naming/directory/InitialDirContext.java b/src/java.naming/share/classes/javax/naming/directory/InitialDirContext.java index abea558ead6..f0b63f1f980 100644 --- a/src/java.naming/share/classes/javax/naming/directory/InitialDirContext.java +++ b/src/java.naming/share/classes/javax/naming/directory/InitialDirContext.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2022, 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 @@ -97,7 +97,7 @@ public class InitialDirContext extends InitialContext implements DirContext { * The order that providers are located is implementation specific * and an implementation is free to cache the located providers. *

  • The {@code lookupEndpoints} method of each provider, if instantiated, - * is invoked once with a combination of each of the URLs in the the + * is invoked once with a combination of each of the URLs in the * {@code java.naming.provider.url} property and the environment until * a provider returns non-empty or all providers have been exhausted. * If none of the diff --git a/src/java.sql.rowset/share/classes/com/sun/rowset/CachedRowSetImpl.java b/src/java.sql.rowset/share/classes/com/sun/rowset/CachedRowSetImpl.java index 3687c395560..736431df313 100644 --- a/src/java.sql.rowset/share/classes/com/sun/rowset/CachedRowSetImpl.java +++ b/src/java.sql.rowset/share/classes/com/sun/rowset/CachedRowSetImpl.java @@ -855,7 +855,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern * object. *

    * NoteIn the reference implementation an optimistic concurrency implementation - * is provided as a sample implementation of a the SyncProvider + * is provided as a sample implementation of the SyncProvider * abstract class. *

    * This method fails if any of the updates cannot be propagated back @@ -1040,7 +1040,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern /** * Immediately removes the current row from this * CachedRowSetImpl object if the row has been inserted, and - * also notifies listeners the a row has changed. An exception is thrown + * also notifies listeners the row has changed. An exception is thrown * if the row is not a row that has been inserted or the cursor is before * the first row, after the last row, or on the insert row. *

    diff --git a/src/java.sql.rowset/share/classes/com/sun/rowset/internal/SyncResolverImpl.java b/src/java.sql.rowset/share/classes/com/sun/rowset/internal/SyncResolverImpl.java index 7fad769cb2d..15d8e28e6c1 100644 --- a/src/java.sql.rowset/share/classes/com/sun/rowset/internal/SyncResolverImpl.java +++ b/src/java.sql.rowset/share/classes/com/sun/rowset/internal/SyncResolverImpl.java @@ -596,7 +596,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver { * object. *

    * NoteIn the reference implementation an optimistic concurrency implementation - * is provided as a sample implementation of a the {@code SyncProvider} + * is provided as a sample implementation of the {@code SyncProvider} * abstract class. *

    * This method fails if any of the updates cannot be propagated back @@ -698,7 +698,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver { /** * Immediately removes the current row from this * {@code CachedRowSetImpl} object if the row has been inserted, and - * also notifies listeners the a row has changed. An exception is thrown + * also notifies listeners the row has changed. An exception is thrown * if the row is not a row that has been inserted or the cursor is before * the first row, after the last row, or on the insert row. *

    diff --git a/src/java.sql.rowset/share/classes/javax/sql/rowset/serial/SerialClob.java b/src/java.sql.rowset/share/classes/javax/sql/rowset/serial/SerialClob.java index e548ba217f7..b64001a0a91 100644 --- a/src/java.sql.rowset/share/classes/javax/sql/rowset/serial/SerialClob.java +++ b/src/java.sql.rowset/share/classes/javax/sql/rowset/serial/SerialClob.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2022, 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 @@ -235,7 +235,7 @@ public class SerialClob implements Clob, Serializable, Cloneable { return this.clob.getAsciiStream(); } else { throw new SerialException("Unsupported operation. SerialClob cannot " + - "return a the CLOB value as an ascii stream, unless instantiated " + + "return the CLOB value as an ascii stream, unless instantiated " + "with a fully implemented Clob object."); } } diff --git a/src/jdk.compiler/share/classes/com/sun/tools/javac/api/JavacTaskPool.java b/src/jdk.compiler/share/classes/com/sun/tools/javac/api/JavacTaskPool.java index 72dc620705f..1ce4cf50ada 100644 --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/api/JavacTaskPool.java +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/api/JavacTaskPool.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2022, 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 @@ -88,7 +88,7 @@ import com.sun.tools.javac.util.Options; * For each combination of options, a separate task/context is created and kept, as most option * values are cached inside components themselves. *

    - * When the compilation redefines sensitive classes (e.g. classes in the the java.* packages), the + * When the compilation redefines sensitive classes (e.g. classes in the java.* packages), the * task/context is not reused. *

    * When the task is reused, then packages that were already listed won't be listed again. diff --git a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java index 09e18e9cda3..bebd2079782 100644 --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2022, 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 @@ -442,7 +442,7 @@ public class Annotate { * * @param a the tree representing an annotation * @param expectedAnnotationType the expected (super)type of the annotation - * @param env the the current env in where the annotation instance is found + * @param env the current env in where the annotation instance is found */ public Attribute.TypeCompound attributeTypeAnnotation(JCAnnotation a, Type expectedAnnotationType, Env env) diff --git a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Lower.java b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Lower.java index 160e6704174..36bf06c3ab4 100644 --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Lower.java +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Lower.java @@ -1593,7 +1593,7 @@ public class Lower extends TreeTranslator { * } * * @param tree The try statement to inspect. - * @return A a desugared try-with-resources tree, or the original + * @return a desugared try-with-resources tree, or the original * try block if there are no resources to manage. */ JCTree makeTwrTry(JCTry tree) { diff --git a/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/DocTreeMaker.java b/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/DocTreeMaker.java index 392e1b51563..9eef047606a 100644 --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/DocTreeMaker.java +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/DocTreeMaker.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2022, 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 @@ -620,7 +620,7 @@ public class DocTreeMaker implements DocTreeFactory { * the break is returned, if not then a -1, indicating that * more doctree elements are required to be examined. * - * BreakIterator.next points to the the start of the following sentence, + * BreakIterator.next points to the start of the following sentence, * and does not provide an easy way to disambiguate between "sentence break", * "possible sentence break" and "not a sentence break" at the end of the input. * For example, BreakIterator.next returns the index for the end diff --git a/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/TreeMaker.java b/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/TreeMaker.java index 95ac03e2588..441e927521f 100644 --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/TreeMaker.java +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/TreeMaker.java @@ -1046,8 +1046,8 @@ public class TreeMaker implements JCTree.Factory { return VarDef(new VarSymbol(PARAMETER, name, argtype, owner), null); } - /** Create a a list of value parameter trees x0, ..., xn from a list of - * their types and an their owner. + /** Create a list of value parameter trees x0, ..., xn from a list of + * their types and their owner. */ public List Params(List argtypes, Symbol owner) { ListBuffer params = new ListBuffer<>(); diff --git a/src/jdk.compiler/share/classes/com/sun/tools/sjavac/comp/SjavacImpl.java b/src/jdk.compiler/share/classes/com/sun/tools/sjavac/comp/SjavacImpl.java index 7600d799a02..fabfe8bc7f6 100644 --- a/src/jdk.compiler/share/classes/com/sun/tools/sjavac/comp/SjavacImpl.java +++ b/src/jdk.compiler/share/classes/com/sun/tools/sjavac/comp/SjavacImpl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2022, 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 @@ -247,7 +247,7 @@ public class SjavacImpl implements Sjavac { true, false); javac_state.now().flattenPackagesSourcesAndArtifacts(modules); - // Recheck the the source files and their timestamps again. + // Recheck the source files and their timestamps again. javac_state.checkSourceStatus(true); // Now do a safety check that the list of source files is identical diff --git a/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/Vector.java b/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/Vector.java index 929e4564362..09883ac3c1e 100644 --- a/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/Vector.java +++ b/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/Vector.java @@ -686,7 +686,7 @@ import java.util.Arrays; * because it is relatively rare to find algorithms where, given two * adjacent vector lanes, one lane is somehow more arithmetically * significant than its neighbor, and even in those cases, there is no - * general way to know which neighbor is the the more significant. + * general way to know which neighbor is the more significant. * *

    Putting the terms together, we view the information structure * of a vector as a temporal sequence of lanes ("first", "next", @@ -2252,7 +2252,7 @@ public abstract class Vector extends jdk.internal.vm.vector.VectorSupport.Vec *

    The scale must not be so large, and the element size must * not be so small, that that there would be an overflow when * computing any of the {@code N*scale} or {@code VLENGTH*scale}, - * when the the result is represented using the vector + * when the result is represented using the vector * lane type {@code ETYPE}. * *

    diff --git a/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/VectorMask.java b/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/VectorMask.java index 506535d030f..68dbf9915b7 100644 --- a/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/VectorMask.java +++ b/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/VectorMask.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2022, 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 @@ -314,7 +314,7 @@ public abstract class VectorMask extends jdk.internal.vm.vector.VectorSupport * return a; * } * - * @return an array containing the the lane elements of this vector + * @return an array containing the lane elements of this vector */ public abstract boolean[] toArray(); diff --git a/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/VectorSpecies.java b/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/VectorSpecies.java index 2834b4ed11e..604df465913 100644 --- a/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/VectorSpecies.java +++ b/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/VectorSpecies.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2022, 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 @@ -412,7 +412,7 @@ public interface VectorSpecies { * Returns a vector of this species * where lane elements are initialized * from the given array at the given offset. - * The array must be of the the correct {@code ETYPE}. + * The array must be of the correct {@code ETYPE}. * * Equivalent to * {@code IntVector.fromArray(this,a,offset)} diff --git a/src/jdk.internal.le/share/classes/jdk/internal/org/jline/terminal/TerminalBuilder.java b/src/jdk.internal.le/share/classes/jdk/internal/org/jline/terminal/TerminalBuilder.java index 88970b88592..44a197d5d39 100644 --- a/src/jdk.internal.le/share/classes/jdk/internal/org/jline/terminal/TerminalBuilder.java +++ b/src/jdk.internal.le/share/classes/jdk/internal/org/jline/terminal/TerminalBuilder.java @@ -521,7 +521,7 @@ public final class TerminalBuilder { * build tool uses a LineReader to implement an interactive shell. * One of its supported commands is console which invokes * the scala REPL. The scala REPL also uses a LineReader and it - * is necessary to override the {@link Terminal} used by the the REPL to + * is necessary to override the {@link Terminal} used by the REPL to * share the same {@link Terminal} instance used by sbt. * *

    diff --git a/src/jdk.internal.le/windows/classes/jdk/internal/org/jline/terminal/impl/jna/win/WindowsAnsiWriter.java b/src/jdk.internal.le/windows/classes/jdk/internal/org/jline/terminal/impl/jna/win/WindowsAnsiWriter.java index 66fc04e9fc5..46c16a349ec 100644 --- a/src/jdk.internal.le/windows/classes/jdk/internal/org/jline/terminal/impl/jna/win/WindowsAnsiWriter.java +++ b/src/jdk.internal.le/windows/classes/jdk/internal/org/jline/terminal/impl/jna/win/WindowsAnsiWriter.java @@ -116,7 +116,7 @@ public final class WindowsAnsiWriter extends AnsiWriter { } private short invertAttributeColors(short attributes) { - // Swap the the Foreground and Background bits. + // Swap the Foreground and Background bits. int fg = 0x000F & attributes; fg <<= 4; int bg = 0X00F0 & attributes; diff --git a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/Head.java b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/Head.java index fffeb834783..e9c15c22d5c 100644 --- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/Head.java +++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/Head.java @@ -68,7 +68,7 @@ public class Head extends Content { /** * Creates a {@code Head} object, for a given file and HTML version. * The file is used to help determine the relative paths to stylesheet and script files. - * The HTML version is used to determine the the appropriate form of a META element + * The HTML version is used to determine the appropriate form of a META element * recording the time the file was created. * The doclet version should also be provided for recording in the file. * @param path the path for the file that will include this HEAD element diff --git a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/Extern.java b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/Extern.java index 9c478497169..40796753074 100644 --- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/Extern.java +++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/Extern.java @@ -221,7 +221,7 @@ public class Extern { /** * Check whether links to platform documentation are configured. If not then configure - * links using the the documentation URL defined in {@code linkPlatformProperties} or the + * links using the documentation URL defined in {@code linkPlatformProperties} or the * default documentation URL if that parameter is {@code null}. * * @param linkPlatformProperties path or URL to properties file containing diff --git a/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/ImagePluginConfiguration.java b/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/ImagePluginConfiguration.java index 74af459fb13..68b32db0e7f 100644 --- a/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/ImagePluginConfiguration.java +++ b/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/ImagePluginConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2022, 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 @@ -64,7 +64,7 @@ public final class ImagePluginConfiguration { } /* - * Create a stack of plugins from a a configuration. + * Create a stack of plugins from a configuration. */ public static ImagePluginStack parseConfiguration(Jlink.PluginsConfiguration pluginsConfiguration) throws Exception { diff --git a/src/jdk.jlink/share/classes/jdk/tools/jmod/JmodOutputStream.java b/src/jdk.jlink/share/classes/jdk/tools/jmod/JmodOutputStream.java index 895500291f9..2c4176dc1e3 100644 --- a/src/jdk.jlink/share/classes/jdk/tools/jmod/JmodOutputStream.java +++ b/src/jdk.jlink/share/classes/jdk/tools/jmod/JmodOutputStream.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2022, 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 @@ class JmodOutputStream extends OutputStream implements AutoCloseable { /** * This method creates (or overrides, if exists) the JMOD file, - * returning the the output stream to write to the JMOD file. + * returning the output stream to write to the JMOD file. */ static JmodOutputStream newOutputStream(Path file, LocalDateTime date) throws IOException { OutputStream out = Files.newOutputStream(file); @@ -153,4 +153,3 @@ class JmodOutputStream extends OutputStream implements AutoCloseable { zos.close(); } } - diff --git a/src/jdk.jshell/share/classes/jdk/jshell/Snippet.java b/src/jdk.jshell/share/classes/jdk/jshell/Snippet.java index 68cb02989ca..70e556e40f2 100644 --- a/src/jdk.jshell/share/classes/jdk/jshell/Snippet.java +++ b/src/jdk.jshell/share/classes/jdk/jshell/Snippet.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2022, 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 @@ -377,7 +377,7 @@ public abstract class Snippet { * {@link jdk.jshell.Snippet.Status#isActive()}, if, as the * JShell state changes, the snippet will update, possibly * changing {@code Status}. - * An executable Snippet can only be executed if it is in the the + * An executable Snippet can only be executed if it is in the * {@link jdk.jshell.Snippet.Status#VALID} {@code Status}. * @see JShell#status(jdk.jshell.Snippet) */ diff --git a/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysisImpl.java b/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysisImpl.java index 23e60d425f2..fb3dc01468b 100644 --- a/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysisImpl.java +++ b/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysisImpl.java @@ -453,7 +453,7 @@ class SourceCodeAnalysisImpl extends SourceCodeAnalysis { // the context of the identifier is an import, look for // package names that start with the identifier. // If and when Java allows imports from the default - // package to the the default package which would allow + // package to the default package which would allow // JShell to change to use the default package, and that // change is done, then this should use some variation // of membersOf(at, at.getElements().getPackageElement("").asType(), false) diff --git a/src/jdk.jshell/share/classes/jdk/jshell/execution/RemoteCodes.java b/src/jdk.jshell/share/classes/jdk/jshell/execution/RemoteCodes.java index e7b3f2c65cd..df7782d2770 100644 --- a/src/jdk.jshell/share/classes/jdk/jshell/execution/RemoteCodes.java +++ b/src/jdk.jshell/share/classes/jdk/jshell/execution/RemoteCodes.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2022, 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 @@ -42,7 +42,7 @@ class RemoteCodes { // Command codes /** - * Exit the the agent. + * Exit the agent. */ static final String CMD_CLOSE = "CMD_CLOSE"; /** diff --git a/src/jdk.management/windows/native/libmanagement_ext/OperatingSystemImpl.c b/src/jdk.management/windows/native/libmanagement_ext/OperatingSystemImpl.c index 1ada0e34e41..26d46ddaeac 100644 --- a/src/jdk.management/windows/native/libmanagement_ext/OperatingSystemImpl.c +++ b/src/jdk.management/windows/native/libmanagement_ext/OperatingSystemImpl.c @@ -824,7 +824,7 @@ getPdhProcessImageName() { /* * Sets up the supplied MultipleCounterQuery to check on the processors via PDH CPU counters. - * TODO: Refactor and prettify as with the the SingleCounter queries + * TODO: Refactor and prettify as with the SingleCounter queries * if more MultipleCounterQueries are discovered/needed. * * @param multiCounterCPULoad a pointer to a MultipleCounterQueryS, will be filled in with diff --git a/src/jdk.zipfs/share/classes/module-info.java b/src/jdk.zipfs/share/classes/module-info.java index da1559be28d..b996006b4fe 100644 --- a/src/jdk.zipfs/share/classes/module-info.java +++ b/src/jdk.zipfs/share/classes/module-info.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2022, 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 @@ -191,7 +191,7 @@ import java.util.Set; * {@link java.lang.String} * null/unset * - * Override the the default group for entries in the Zip file system.
    + * Override the default group for entries in the Zip file system.
    * The value can be a GroupPrincipal or a String value that is used as the GroupPrincipal's name. * * diff --git a/test/jdk/java/lang/System/Logger/custom/CustomLoggerTest.java b/test/jdk/java/lang/System/Logger/custom/CustomLoggerTest.java index 85c3c54026e..c9eac5f9106 100644 --- a/test/jdk/java/lang/System/Logger/custom/CustomLoggerTest.java +++ b/test/jdk/java/lang/System/Logger/custom/CustomLoggerTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2022, 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 @@ -370,7 +370,7 @@ public class CustomLoggerTest { throw new RuntimeException("sys logger in appplication map"); } if (provider.system.contains(sysLogger1)) { - // sysLogger should be a a LazyLoggerWrapper + // sysLogger should be a LazyLoggerWrapper throw new RuntimeException("sys logger is in system map (should be wrapped)"); } diff --git a/test/jdk/java/lang/System/LoggerFinder/internal/LoggerBridgeTest/LoggerBridgeTest.java b/test/jdk/java/lang/System/LoggerFinder/internal/LoggerBridgeTest/LoggerBridgeTest.java index 541ded5bddf..6904b147e23 100644 --- a/test/jdk/java/lang/System/LoggerFinder/internal/LoggerBridgeTest/LoggerBridgeTest.java +++ b/test/jdk/java/lang/System/LoggerFinder/internal/LoggerBridgeTest/LoggerBridgeTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2022, 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 @@ import sun.util.logging.PlatformLogger; * @test * @bug 8140364 * @summary JDK implementation specific unit test for JDK internal artifacts. - * Tests all bridge methods with the a custom backend whose + * Tests all bridge methods with a custom backend whose * loggers implement PlatformLogger.Bridge. * @modules java.base/sun.util.logging * java.base/jdk.internal.logger diff --git a/test/jdk/java/lang/System/LoggerFinder/internal/PlatformLoggerBridgeTest/PlatformLoggerBridgeTest.java b/test/jdk/java/lang/System/LoggerFinder/internal/PlatformLoggerBridgeTest/PlatformLoggerBridgeTest.java index 01d6233af6d..2bd656d39a2 100644 --- a/test/jdk/java/lang/System/LoggerFinder/internal/PlatformLoggerBridgeTest/PlatformLoggerBridgeTest.java +++ b/test/jdk/java/lang/System/LoggerFinder/internal/PlatformLoggerBridgeTest/PlatformLoggerBridgeTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2022, 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 @@ -54,7 +54,7 @@ import sun.util.logging.PlatformLogger; * @test * @bug 8140364 * @summary JDK implementation specific unit test for JDK internal artifacts. - * Tests all bridge methods from PlatformLogger with the a custom + * Tests all bridge methods from PlatformLogger with a custom * backend whose loggers implement PlatformLogger.Bridge. * @modules java.base/sun.util.logging * java.logging diff --git a/test/jdk/java/lang/instrument/PremainClass/README b/test/jdk/java/lang/instrument/PremainClass/README index a0a1186ea31..8755c566e4c 100644 --- a/test/jdk/java/lang/instrument/PremainClass/README +++ b/test/jdk/java/lang/instrument/PremainClass/README @@ -4,7 +4,7 @@ a non US-ASCII class name. As the file system may not support a file with this name the test is compiled off-line and the jar file checked into SCCS. In the event that Agent.jar needs to be re-built here are the steps which -must be performed on a system that supports the the EURO in a file name +must be performed on a system that supports the EURO in a file name (Windows 2000 is fine) :- 1. Create the agent source file and agent.mf :- @@ -19,4 +19,3 @@ must be performed on a system that supports the the EURO in a file name jar cfm Agent.jar agent.mf *.class 3. Check Agent.jar into SCCS. - diff --git a/test/jdk/java/lang/invoke/lambda/LambdaAccessControlTest.java b/test/jdk/java/lang/invoke/lambda/LambdaAccessControlTest.java index 2ab04836898..2ae76b91111 100644 --- a/test/jdk/java/lang/invoke/lambda/LambdaAccessControlTest.java +++ b/test/jdk/java/lang/invoke/lambda/LambdaAccessControlTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2022, 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 @@ -24,7 +24,7 @@ /* * @test * @bug 8003881 - * @summary tests Lambda expression with a a security manager at top level + * @summary tests Lambda expression with a security manager at top level * @modules jdk.compiler * @compile -XDignore.symbol.file LambdaAccessControlTest.java LUtils.java * diff --git a/test/jdk/javax/sql/testng/test/rowset/serial/SerialClobTests.java b/test/jdk/javax/sql/testng/test/rowset/serial/SerialClobTests.java index 8f07ed6f218..95c5f6f64a7 100644 --- a/test/jdk/javax/sql/testng/test/rowset/serial/SerialClobTests.java +++ b/test/jdk/javax/sql/testng/test/rowset/serial/SerialClobTests.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2022, 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 @@ -323,7 +323,7 @@ public class SerialClobTests extends BaseTest { } /* - * Validate that position returned is -1 when an the search string is not + * Validate that position returned is -1 when the search string is not * part of the SerialClob */ @Test @@ -336,7 +336,7 @@ public class SerialClobTests extends BaseTest { } /* - * Validate that position() returned is -1 when an the search string is not + * Validate that position() returned is -1 when the search string is not * part of the SerialClob */ @Test diff --git a/test/langtools/tools/javac/modules/T8168854/module-info.java b/test/langtools/tools/javac/modules/T8168854/module-info.java index 696ce037420..b6b7abd033c 100644 --- a/test/langtools/tools/javac/modules/T8168854/module-info.java +++ b/test/langtools/tools/javac/modules/T8168854/module-info.java @@ -1,7 +1,7 @@ /* * @test * @bug 8168854 - * @summary javac erroneously reject a a service interface inner class in a provides clause + * @summary javac erroneously reject a service interface inner class in a provides clause * @compile module-info.java */ module mod { diff --git a/test/langtools/tools/lib/builder/ClassBuilder.java b/test/langtools/tools/lib/builder/ClassBuilder.java index 9832441a623..a7b900afc3e 100644 --- a/test/langtools/tools/lib/builder/ClassBuilder.java +++ b/test/langtools/tools/lib/builder/ClassBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2022, 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 @@ -194,7 +194,7 @@ public class ClassBuilder extends AbstractBuilder { } /** - * Adds inner-classes, to an an outer class builder. + * Adds inner-classes, to an outer class builder. * @param cbs class builder(s) of the inner classes. * @return this builder. */ diff --git a/test/lib/jdk/test/lib/hexdump/HexPrinter.java b/test/lib/jdk/test/lib/hexdump/HexPrinter.java index 901d5859f92..4609feb82e4 100644 --- a/test/lib/jdk/test/lib/hexdump/HexPrinter.java +++ b/test/lib/jdk/test/lib/hexdump/HexPrinter.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2019, 2022, 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 @@ -910,7 +910,7 @@ public final class HexPrinter { } /** - * Read a a byte and write nothing. + * Read a byte and write nothing. * * @param in a DataInputStream * @param out an Appendable to write the output to