Skip to content

Commit 3ad10bb

Browse files
committed
minor refactor: remove javadoc warnings
1 parent 6fde012 commit 3ad10bb

3 files changed

Lines changed: 20 additions & 13 deletions

File tree

build-logic/src/main/groovy/org.apache.groovy-documented.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ tasks.withType(Javadoc).configureEach {
5656
options {
5757
addBooleanOption('html5', true)
5858
addStringOption('Xdoclint:none', '-quiet')
59+
// JUnit 5 (and other libs) ship as named modules; this project's
60+
// sources are in the unnamed module. JDK 21+ javadoc warns by default
61+
// when --link targets a named-module API from the unnamed module.
62+
// Downgrade to info so it doesn't pollute the build output.
63+
if (JavaVersion.current() >= JavaVersion.VERSION_21) {
64+
addStringOption('-link-modularity-mismatch', 'info')
65+
}
5966
addStringOption('tag', 'apiNote:a:"API Note:"')
6067
addStringOption('tag', 'implSpec:a:"Implementation Requirements:"')
6168
addStringOption('tag', 'implNote:a:"Implementation Note:"')

src/main/java/org/codehaus/groovy/runtime/typehandling/LongMath.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public Number rightShiftUnsignedImpl(Number left, Number right) {
129129
/**
130130
* Bitwise AND operation for long values.
131131
* <p>
132-
* Performs a bitwise AND (&) between two numbers converted to long values.
132+
* Performs a bitwise AND (&amp;) between two numbers converted to long values.
133133
*
134134
* @param left the first operand
135135
* @param right the second operand

src/main/java/org/codehaus/groovy/runtime/typehandling/NumberMathModificationInfo.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -257,27 +257,27 @@ private void doCheckNumberOps(Class klazz, Consumer<Class> byteConsumer, Consume
257257
public boolean double_or;
258258

259259
/**
260-
* Flags indicating whether the bitwise AND (&) operation has been modified for Byte type.
260+
* Flags indicating whether the bitwise AND (&amp;) operation has been modified for Byte type.
261261
*/
262262
public boolean byte_and;
263263
/**
264-
* Flags indicating whether the bitwise AND (&) operation has been modified for Short type.
264+
* Flags indicating whether the bitwise AND (&amp;) operation has been modified for Short type.
265265
*/
266266
public boolean short_and;
267267
/**
268-
* Flags indicating whether the bitwise AND (&) operation has been modified for Integer type.
268+
* Flags indicating whether the bitwise AND (&amp;) operation has been modified for Integer type.
269269
*/
270270
public boolean int_and;
271271
/**
272-
* Flags indicating whether the bitwise AND (&) operation has been modified for Long type.
272+
* Flags indicating whether the bitwise AND (&amp;) operation has been modified for Long type.
273273
*/
274274
public boolean long_and;
275275
/**
276-
* Flags indicating whether the bitwise AND (&) operation has been modified for Float type.
276+
* Flags indicating whether the bitwise AND (&amp;) operation has been modified for Float type.
277277
*/
278278
public boolean float_and;
279279
/**
280-
* Flags indicating whether the bitwise AND (&) operation has been modified for Double type.
280+
* Flags indicating whether the bitwise AND (&amp;) operation has been modified for Double type.
281281
*/
282282
public boolean double_and;
283283

@@ -382,27 +382,27 @@ private void doCheckNumberOps(Class klazz, Consumer<Class> byteConsumer, Consume
382382
public boolean double_remainder;
383383

384384
/**
385-
* Flags indicating whether the left shift (<<) operation has been modified for Byte type.
385+
* Flags indicating whether the left shift (&lt;&lt;) operation has been modified for Byte type.
386386
*/
387387
public boolean byte_leftShift;
388388
/**
389-
* Flags indicating whether the left shift (<<) operation has been modified for Short type.
389+
* Flags indicating whether the left shift (&lt;&lt;) operation has been modified for Short type.
390390
*/
391391
public boolean short_leftShift;
392392
/**
393-
* Flags indicating whether the left shift (<<) operation has been modified for Integer type.
393+
* Flags indicating whether the left shift (&lt;&lt;) operation has been modified for Integer type.
394394
*/
395395
public boolean int_leftShift;
396396
/**
397-
* Flags indicating whether the left shift (<<) operation has been modified for Long type.
397+
* Flags indicating whether the left shift (&lt;&lt;) operation has been modified for Long type.
398398
*/
399399
public boolean long_leftShift;
400400
/**
401-
* Flags indicating whether the left shift (<<) operation has been modified for Float type.
401+
* Flags indicating whether the left shift (&lt;&lt;) operation has been modified for Float type.
402402
*/
403403
public boolean float_leftShift;
404404
/**
405-
* Flags indicating whether the left shift (<<) operation has been modified for Double type.
405+
* Flags indicating whether the left shift (&lt;&lt;) operation has been modified for Double type.
406406
*/
407407
public boolean double_leftShift;
408408

0 commit comments

Comments
 (0)