Skip to content

Commit c0852f8

Browse files
ker2xreta
andauthored
New javadoc and improvement of existing javadoc (#10064)
* Fixing javadoc error fixing javadoc error and warning javadoc for org.opensearch.core.indices.breaker javadoc for org.opensearch.core.index.shard.ShardId javadoc for org.opensearch.core.index.Index fixing a mishap in formatting rule fixing javadoc of org.opensearch.cli.Terminal Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * removing unsupported @ImplNote Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * Update libs/common/src/main/java/org/opensearch/common/collect/Iterators.java Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * Update libs/compress/src/main/java/org/opensearch/compress/ZstdCompressor.java Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * Apply suggestions from code review Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * Apply suggestions from code review Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * Apply suggestions from code review Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * Apply suggestions from code review Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * Update CollectionUtils.java Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * fixing javadoc warnings Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * remove useless p tag Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * removing a p tag Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * proper capitalization Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * improvements of existing javadocs Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * javadoc improvement Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * javadoc improvement Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * Fix formatting error after merge conflict resolution in a javadoc Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * "code" tag ignore carriage return & "p", switching to a "pre" tag Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * fixing an overzealous precommit check error. Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * Update distribution/tools/launchers/src/main/java/org/opensearch/tools/launchers/SystemJvmOptions.java Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * Update server/src/internalClusterTest/java/org/opensearch/search/sort/GeoDistanceSortBuilderIT.java Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * Update server/src/main/java/org/opensearch/action/admin/cluster/repositories/get/GetRepositoriesRequest.java Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * Update server/src/main/java/org/opensearch/action/admin/cluster/snapshots/create/CreateSnapshotRequest.java Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * Update server/src/main/java/org/opensearch/action/admin/indices/replication/SegmentReplicationStatsRequest.java Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * Update server/src/main/java/org/opensearch/cluster/RestoreInProgress.java Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * Update test/framework/src/main/java/org/opensearch/test/AbstractDiffableWireSerializationTestCase.java Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * Update test/framework/src/main/java/org/opensearch/test/AbstractDiffableSerializationTestCase.java Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * further improvement of javadoc after review & suggestions Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * fixing unreferenced @link in javadoc (precommit error) Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * removing p tag from internal comment Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * reverting javadoc tag in licence header Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * Update server/src/main/java/org/opensearch/search/aggregations/metrics/AbstractPercentilesAggregationBuilder.java Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> * conflict resolution Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> --------- Signed-off-by: Laurent Laborde <kerdezixe@gmail.com> Co-authored-by: Andriy Redko <drreta@gmail.com>
1 parent 00ccfc4 commit c0852f8

File tree

563 files changed

+1304
-1319
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

563 files changed

+1304
-1319
lines changed

buildSrc/reaper/src/main/java/org/opensearch/gradle/reaper/Reaper.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,16 @@
4545

4646
/**
4747
* A standalone process that will reap external services after a build dies.
48-
*
4948
* <h2>Input</h2>
5049
* Since how to reap a given service is platform and service dependent, this tool
5150
* operates on system commands to execute. It takes a single argument, a directory
5251
* that will contain files with reaping commands. Each line in each file will be
5352
* executed with {@link Runtime#exec(String)}.
54-
*
53+
* <p>
5554
* The main method will wait indefinitely on the parent process (Gradle) by
5655
* reading from stdin. When Gradle shuts down, whether normally or abruptly, the
5756
* pipe will be broken and read will return.
58-
*
57+
* <p>
5958
* The reaper will then iterate over the files in the configured directory,
6059
* and execute the given commands. If any commands fail, a failure message is
6160
* written to stderr. Otherwise, the input file will be deleted. If no inputs

buildSrc/src/main/java/org/opensearch/gradle/BwcVersions.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@
5252

5353
/**
5454
* A container for opensearch supported version information used in BWC testing.
55-
*
55+
* <p>
5656
* Parse the Java source file containing the versions declarations and use the known rules to figure out which are all
5757
* the version the current one is wire and index compatible with.
5858
* On top of this, figure out which of these are unreleased and provide the branch they can be built from.
59-
*
59+
* <p>
6060
* Note that in this context, currentVersion is the unreleased version this build operates on.
6161
* At any point in time there will surely be four such unreleased versions being worked on,
6262
* thus currentVersion will be one of these.
63-
*
63+
* <p>
6464
* Considering:
6565
* <dl>
6666
* <dt>M, M &gt; 0</dt>
@@ -84,7 +84,7 @@
8484
* Each build is only concerned with versions before it, as those are the ones that need to be tested
8585
* for backwards compatibility. We never look forward, and don't add forward facing version number to branches of previous
8686
* version.
87-
*
87+
* <p>
8888
* Each branch has a current version, and expected compatible versions are parsed from the server code's Version` class.
8989
* We can reliably figure out which the unreleased versions are due to the convention of always adding the next unreleased
9090
* version number to server in all branches when a version is released.

buildSrc/src/main/java/org/opensearch/gradle/LoggingOutputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
/**
4040
* Writes data passed to this stream as log messages.
41-
*
41+
* <p>
4242
* The stream will be flushed whenever a newline is detected.
4343
* Allows setting an optional prefix before each line of output.
4444
*/

buildSrc/src/main/java/org/opensearch/gradle/precommit/TestingConventionRule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
/**
4242
* Represent rules for tests enforced by the @{link {@link TestingConventionsTasks}}
43-
*
43+
* <p>
4444
* Rules are identified by name, tests must have this name as a suffix and implement one of the base classes
4545
* and be part of all the specified tasks.
4646
*/

buildSrc/src/main/java/org/opensearch/gradle/tar/SymbolicLinkPreservingTar.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262
/**
6363
* A custom archive task that assembles a tar archive that preserves symbolic links.
64-
*
64+
* <p>
6565
* This task is necessary because the built-in task {@link org.gradle.api.tasks.bundling.Tar} does not preserve symbolic links.
6666
*/
6767
public class SymbolicLinkPreservingTar extends Tar {

buildSrc/src/main/java/org/opensearch/gradle/test/rest/RestResourcesPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
* <strong>Rest YAML tests :</strong> <br>
6666
* When the {@link RestResourcesPlugin} has been applied the {@link CopyRestTestsTask} will copy the Rest YAML tests if explicitly
6767
* configured with `includeCore` through the `restResources.restTests` extension.
68-
*
68+
* <p>
6969
* Additionally you can specify which sourceSetName resources should be copied to. The default is the yamlRestTest source set.
7070
* @see CopyRestApiTask
7171
* @see CopyRestTestsTask

buildSrc/src/main/java/org/opensearch/gradle/vagrant/VagrantMachine.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
/**
5555
* An helper to manage a vagrant box.
56-
*
56+
* <p>
5757
* This is created alongside a {@link VagrantExtension} for a project to manage starting and
5858
* stopping a single vagrant box.
5959
*/
@@ -185,7 +185,7 @@ public void setArgs(String... args) {
185185

186186
/**
187187
* A function to translate output from the vagrant command execution to the progress line.
188-
*
188+
* <p>
189189
* The function takes the current line of output from vagrant, and returns a new
190190
* progress line, or {@code null} if there is no update.
191191
*/

buildSrc/src/main/java/org/opensearch/gradle/vagrant/VagrantShellTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
/**
4949
* A shell script to run within a vagrant VM.
50-
*
50+
* <p>
5151
* The script is run as root within the VM.
5252
*/
5353
public abstract class VagrantShellTask extends DefaultTask {

buildSrc/src/test/java/org/opensearch/gradle/pluginzip/PublishTests.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void tearDown() {
5858
* This test is used to verify that adding the 'opensearch.pluginzip' to the project
5959
* adds some other transitive plugins and tasks under the hood. This is basically
6060
* a behavioral test of the {@link Publish#apply(Project)} method.
61-
*
61+
* <p>
6262
* This is equivalent of having a build.gradle script with just the following section:
6363
* <pre>
6464
* plugins {
@@ -202,7 +202,7 @@ public void useDefaultValues() throws IOException, URISyntaxException, XmlPullPa
202202
GradleRunner runner = prepareGradleRunnerFromTemplate("useDefaultValues.gradle", "build", ZIP_PUBLISH_TASK);
203203
BuildResult result = runner.build();
204204

205-
/** Check if build and {@value ZIP_PUBLISH_TASK} tasks have run well */
205+
/* Check if build and ZIP_PUBLISH_TASK tasks have run well */
206206
assertEquals(SUCCESS, result.task(":" + "build").getOutcome());
207207
assertEquals(SUCCESS, result.task(":" + ZIP_PUBLISH_TASK).getOutcome());
208208

@@ -277,7 +277,7 @@ public void allProjectsGroup() throws IOException, URISyntaxException, XmlPullPa
277277
GradleRunner runner = prepareGradleRunnerFromTemplate("allProjectsGroup.gradle", "build", ZIP_PUBLISH_TASK);
278278
BuildResult result = runner.build();
279279

280-
/** Check if build and {@value ZIP_PUBLISH_TASK} tasks have run well */
280+
/* Check if build and {@value ZIP_PUBLISH_TASK} tasks have run well */
281281
assertEquals(SUCCESS, result.task(":" + "build").getOutcome());
282282
assertEquals(SUCCESS, result.task(":" + ZIP_PUBLISH_TASK).getOutcome());
283283

@@ -312,7 +312,7 @@ public void groupPriorityLevel() throws IOException, URISyntaxException, XmlPull
312312
GradleRunner runner = prepareGradleRunnerFromTemplate("groupPriorityLevel.gradle", "build", ZIP_PUBLISH_TASK);
313313
BuildResult result = runner.build();
314314

315-
/** Check if build and {@value ZIP_PUBLISH_TASK} tasks have run well */
315+
/* Check if build and {@value ZIP_PUBLISH_TASK} tasks have run well */
316316
assertEquals(SUCCESS, result.task(":" + "build").getOutcome());
317317
assertEquals(SUCCESS, result.task(":" + ZIP_PUBLISH_TASK).getOutcome());
318318

@@ -348,7 +348,7 @@ public void missingPOMEntity() throws IOException, URISyntaxException, XmlPullPa
348348
GradleRunner runner = prepareGradleRunnerFromTemplate("missingPOMEntity.gradle", "build", ZIP_PUBLISH_TASK);
349349
BuildResult result = runner.build();
350350

351-
/** Check if build and {@value ZIP_PUBLISH_TASK} tasks have run well */
351+
/* Check if build and {@value ZIP_PUBLISH_TASK} tasks have run well */
352352
assertEquals(SUCCESS, result.task(":" + "build").getOutcome());
353353
assertEquals(SUCCESS, result.task(":" + ZIP_PUBLISH_TASK).getOutcome());
354354

@@ -395,7 +395,7 @@ public void customizedGroupValue() throws IOException, URISyntaxException, XmlPu
395395
GradleRunner runner = prepareGradleRunnerFromTemplate("customizedGroupValue.gradle", "build", ZIP_PUBLISH_TASK);
396396
BuildResult result = runner.build();
397397

398-
/** Check if build and {@value ZIP_PUBLISH_TASK} tasks have run well */
398+
/* Check if build and {@value ZIP_PUBLISH_TASK} tasks have run well */
399399
assertEquals(SUCCESS, result.task(":" + "build").getOutcome());
400400
assertEquals(SUCCESS, result.task(":" + ZIP_PUBLISH_TASK).getOutcome());
401401

buildSrc/src/testFixtures/java/org/opensearch/gradle/test/GradleThreadsFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
/**
3838
* Filter out threads controlled by gradle that may be created during unit tests.
39-
*
39+
* <p>
4040
* Currently this includes pooled threads for Exec as well as file system event watcher threads.
4141
*/
4242
public class GradleThreadsFilter implements ThreadFilter {

0 commit comments

Comments
 (0)