Commit 40ad249
authored
fix: fix javadoc warnings in actor module Java sources (#3284)
Motivation:
Running `sbt doc` produces javadoc and compilation warnings in Java
source files across actor, remote, and docs modules: multi-line
{@link} tags, unresolvable Scala class references, unqualified
@throws references, unchecked casts, and deprecated API usage.
Modification:
- ReceiveBuilder.java: Move multi-line {@link} to single line
- UnitMatch.java: Replace {@link scala.PartialFunction} and
{@link scala.runtime.BoxedUnit} with {@code}
- UnsynchronizedByteArrayInputStream.java: Use fully qualified
java.lang.IllegalArgumentException in @throws tag
- Replace [[...]] with {@code} in 9 package-info.java files and
other Java files
- Replace {@link scala.PartialFunction} with {@code} in 11 japi/pf files
- Fix multi-line {@link} tags in JavaFlowSupport.java and AsyncRecoveryPlugin.java
- Add @SuppressWarnings("unchecked") to OptionalUtil.scalaNone()
- Add @SuppressWarnings("deprecation") to ThrottlerTransportAdapterTest
and MyJavaStateStore.deleteObject(String)
- Format Java files with javafmt
Result:
All javadoc and compilation warnings in Java sources are eliminated.
Tests:
- sbt "actor / compile" (no warnings)
- sbt "remote / Test / compile" (no warnings)
- sbt "docs / compile" (no warnings)
References:
Follow-up to #32541 parent 8a3774a commit 40ad249
25 files changed
Lines changed: 42 additions & 39 deletions
File tree
- actor/src/main/java/org/apache/pekko
- io
- japi/pf
- persistence-query/src/main/java/org/apache/pekko/persistence/query/javadsl
- persistence-testkit/src/main/java/org/apache/pekko/persistence/testkit/javadsl
- persistence-typed/src/main/java/org/apache/pekko/persistence/typed/javadsl
- persistence/src/main/java/org/apache/pekko/persistence
- fsm/japi/pf
- journal/japi
- snapshot/japi
- state/javadsl
- stream-testkit/src/main/java/org/apache/pekko/stream/testkit/javadsl
- stream-typed/src/main/java/org/apache/pekko/stream/typed/javadsl
- stream/src/main/java/org/apache/pekko/stream/javadsl
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments