Skip to content

Commit

Permalink
javadoc warnings not causing failures (#5996)
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Redko <[email protected]>
  • Loading branch information
reta authored Jan 25, 2023
1 parent 715ff72 commit 665ec6c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@ allprojects {
// see https://discuss.gradle.org/t/add-custom-javadoc-option-that-does-not-take-an-argument/5959
javadoc.options.encoding = 'UTF8'
javadoc.options.addStringOption('Xdoclint:all,-missing', '-quiet')
boolean failOnJavadocWarning = project.ext.has('failOnJavadocWarning') ? project.ext.get('failOnJavadocWarning') : true
if (failOnJavadocWarning) {
javadoc.options.addStringOption('Xwerror', '-quiet')
}
javadoc.options.tags = ["opensearch.internal", "opensearch.api", "opensearch.experimental"]
javadoc.options.addStringOption("-release", targetCompatibility.majorVersion)
}
Expand Down
5 changes: 5 additions & 0 deletions modules/lang-painless/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ opensearchplugin {
classname 'org.opensearch.painless.PainlessModulePlugin'
}

ext {
// Do not fail on `javadoc` warning (ANTLR generated code)
failOnJavadocWarning = false
}

testClusters.all {
module ':modules:mapper-extras'
systemProperty 'opensearch.scripting.update.ctx_in_params', 'false'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public void setNextDocId(int docId) throws IOException {
}

/**
* Set the {@link #size()} and ensure that the {@link #values} array can
* Set the {@link #size()} and ensure that the internal values array can
* store at least that many entries.
*/
protected void resize(int newSize) {
Expand Down Expand Up @@ -515,7 +515,7 @@ public void setNextDocId(int docId) throws IOException {
}

/**
* Set the {@link #size()} and ensure that the {@link #values} array can
* Set the {@link #size()} and ensure that the internal values array can
* store at least that many entries.
*/
protected void resize(int newSize) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1689,9 +1689,9 @@ static Engine.Searcher wrapSearcher(
* Used with segment replication during relocation handoff, this method updates current read only engine to global
* checkpoint followed by changing to writeable engine
*
* @throws IOException
* @throws InterruptedException
* @throws TimeoutException
* @throws IOException if communication failed
* @throws InterruptedException if calling thread is interrupted
* @throws TimeoutException if timed out waiting for in-flight operations to finish
*
* @opensearch.internal
*/
Expand Down

0 comments on commit 665ec6c

Please sign in to comment.