Commit 5b12277
ARTEMIS-5314 overhaul JavaDoc formatting & content
This commit overhauls JavaDoc formatting & content across the entire
code-base placing a heavy emphasis on the don't-repeat-yourself
principle (i.e. DRY).
The main goals here are readability, conciseness, and safeguarding
future commits from the same kinds of mistakes that have plagued the
code-base for many years now.
It includes the following changes:
- Remove empty @param, @throws, & @return tags.
- Remove useless/boilerplate comments.
- Re-wrap to 120 characters. Many comments already used this limit
while others were less than and still other were more than this
limit. Using 120 was a happy medium.
- Enforce multi-line syntax, e.g.:
/**
* Lorem ipsum
*/
- Change /** to /* where appropriate (e.g. license headers,
intra-method comments, etc.)
- Change /* to /** where appropriate (e.g. method descriptions,
comments using tags like @code, etc.)
- Remove trailing or extraneous '*' characters.
- Remove JavaDocs from implementations when the JavaDocs of the
interface will suffice.
- Use {@code Lorem ipsum} syntax where appropriate.
- Use <p> for empty lines. Remove <br>, <br/>, & <br />
- Use the {@return ...} sytanx introduced in Java 16. Details are at
https://bugs.openjdk.org/browse/JDK-8256804.
- Align @param descriptions.
- Align @throws descriptions.
- Add empty line between description and start of tags (e.g. @param).
- Fix the prolific "whether or not" to the more correct just "whether".
- Enforce many of these standards via checkstyle.
- Remove references to defunct issue trackers or forums.
- Convert single line comments using /* syntax to use //.1 parent 8eb52ef commit 5b12277
1,515 files changed
Lines changed: 11172 additions & 21052 deletions
File tree
- artemis-boot/src/main/java/org/apache/activemq/artemis/boot
- artemis-cdi-client/src/main/java/org/apache/artemis/client/cdi/configuration
- artemis-cli/src
- main/java/org/apache/activemq/artemis
- cli
- commands
- helper
- messages/perf
- tools
- xml
- user
- util
- process
- integration
- util
- test/java/org/apache/activemq
- artemis/cli/commands
- cli/test
- artemis-commons/src
- main/java/org/apache/activemq/artemis
- api/core
- core
- persistence
- server
- json
- logs
- utils
- actors
- bean
- collections
- critical
- pools
- uri
- test/java/org/apache/activemq/artemis/utils
- actors
- collections
- artemis-core-client/src
- main/java/org/apache/activemq/artemis
- api
- config
- core
- client
- loadbalance
- jgroups
- management
- core
- buffers/impl
- client
- impl
- cluster
- config
- message
- impl
- protocol/core
- impl
- wireformat
- remoting
- impl
- netty
- ssl
- security
- server
- management
- transaction/impl
- reader
- spi/core
- protocol
- remoting
- ssl
- uri/schema
- connector
- serverLocator
- utils
- test/java/org/apache/activemq/artemis
- core/remoting/impl/netty
- message
- artemis-dto/src/main/java/org/apache/activemq/artemis/dto
- artemis-jdbc-store/src
- main/java/org/apache/activemq/artemis/jdbc/store
- drivers
- file
- journal
- sql
- test/java/org/apache/activemq/artemis/jdbc/store/file
- artemis-jms-client/src/main/java/org/apache/activemq/artemis
- api/jms
- management
- jms/client
- jndi
- uri
- artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms
- bridge
- impl
- persistence/config
- server
- config/impl
- embedded
- impl
- artemis-journal/src
- main/java/org/apache/activemq/artemis/core
- io
- aio
- buffer
- mapped
- nio
- util
- journal
- collections
- impl
- dataformat
- test/java/org/apache/activemq/artemis/core/io/aio
- artemis-junit
- artemis-junit-4/src/main/java/org/apache/activemq/artemis/junit
- artemis-junit-5/src/main/java/org/apache/activemq/artemis/junit
- artemis-junit-commons/src/main/java/org/apache/activemq/artemis/junit
- artemis-lockmanager/artemis-lockmanager-ri/src/main/java/org/apache/activemq/artemis/lockmanager/file
- artemis-log-annotation-processor/src/main/java/org/apache/activemq/artemis/logs/annotation
- processor
- artemis-maven-plugin/src/main/java/org/apache/activemq/artemis/maven
- artemis-protocols
- artemis-amqp-protocol/src
- main/java/org/apache/activemq/artemis/protocol/amqp
- broker
- client
- connect
- federation
- mirror
- converter
- coreWrapper
- federation
- logger
- proton
- handler
- transaction
- sasl
- scram
- util
- test/java/org/apache/activemq/artemis/protocol/amqp
- broker
- connect/federation
- converter/message
- sasl
- artemis-hqclient-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/client
- artemis-mqtt-protocol/src
- main/java/org/apache/activemq/artemis/core/protocol/mqtt
- test/java/org/apache/activemq/artemis/core/protocol/mqtt
- artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire
- amq
- artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp
- v11
- v12
- artemis-ra/src/main/java/org/apache/activemq/artemis
- jms/referenceable
- ra
- inflow
- referenceable
- artemis-selector
- src
- main/java/org/apache/activemq/artemis/selector
- filter
- impl
- test/java/org/apache/activemq/artemis/selector
- artemis-server-osgi/src/main/java/org/apache/activemq/artemis/osgi
- artemis-server/src
- main/java/org/apache/activemq/artemis
- core
- config
- amqpBrokerConnectivity
- brokerConnectivity
- ha
- impl
- storage
- deployers
- impl
- filter
- impl
- management/impl
- view
- messagecounter
- impl
- paging
- cursor
- impl
- impl
- persistence
- config
- impl/journal
- codec
- postoffice
- impl
- protocol
- core
- impl
- wireformat
- remoting
- impl
- invm
- netty
- server
- impl
- replication
- security/impl
- server
- cluster
- ha
- impl
- quorum
- embedded
- federation
- address
- queue
- files
- group
- impl
- impl
- jdbc
- quorum
- management
- impl
- metrics
- mirror
- plugin
- impl
- protocol/websocket
- transformer
- settings
- impl
- transaction
- impl
- spi/core
- protocol
- remoting
- security
- jaas
- scram
- test/java/org/apache/activemq/artemis
- core
- config/impl
- filter/impl
- remoting/impl/netty
- security/jaas
- server
- cluster/impl
- embedded
- group/impl
- protocol/websocket
- settings
- tests/util
- artemis-service-extensions/src/main/java/org/apache/activemq/artemis/service/extensions
- xa
- recovery
- artemis-unit-test-support/src/main/java/org/apache/activemq/artemis
- logs
- tests
- extensions
- parameterized
- util
- utils
- artemis-web/src
- main/java/org/apache/activemq/artemis/component
- test/java/org/apache/activemq/cli/test
- docs/hacking-guide
- etc
- tests
- activemq5-unit-tests/src
- main/java/org/apache/activemq
- broker
- artemiswrapper
- usage
- test/java/org/apache/activemq
- blob
- broker
- command
- demo
- network
- openwire
- test
- transport
- failover
- multicast
- nio
- peer
- reliable
- tcp
- udp
- util
- artemis-test-support/src/main/java/org/apache/activemq
- artemis
- tests
- integration
- cluster/reattach
- largemessage
- ra
- stomp/util
- unit/core
- journal/impl
- fakes
- postoffice/impl/fakes
- util
- utils
- network
- transport
- amqp
- client
- sasl
- util
- netty
- compatibility-tests/src
- main/java/org/apache/activemq/artemis/tests/compatibility
- test/java/org/apache/activemq/artemis/tests/compatibility
- base
- db-tests/src/test/java/org/apache/activemq/artemis/tests/db/paging
- e2e-tests/src/test/java/org/apache/activemq/artemis/tests/e2e
- brokerConnection
- common
- integration-tests-isolated/src/test/java/org/apache/activemq/artemis/tests/integration/isolated/web
- integration-tests/src/test/java/org/apache/activemq/artemis
- core
- paging/impl
- server/cluster/impl
- tests
- integration
- addressing
- amqp
- connect
- largemessages
- sasl
- clientcrash
- client
- cluster
- bridge
- crossprotocol
- distribution
- failover
- lockmanager
- reattach
- topology
- util
- consumer
- crossprotocol
- discovery
- divert
- federation
- http
- interceptors
- jms
- client
- cluster
- connection
- consumer
- divert
- jms2client
- multiprotocol
- server
- journal
- management
- mqtt5
- spec
- controlpackets
- ssl
- mqtt
- util
- openwire
- amq
- interop
- paging
- persistence
- metrics
- plugin
- ra
- remoting
- replication
- scheduling
- security
- server
- ssl
- stomp
- xa
- util
- jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests
- message
- selector
- tools
- container
- joram-tests/src/test/java/org
- apache/activemq/artemis
- amqpJMS
- common
- testjndi
- jms
- objectweb/jtests/jms
- admin
- conform
- connection
- message
- headers
- properties
- queue
- selector
- session
- topic
- framework
- leak-tests/src/test/java/org/apache/activemq/artemis/tests/leak
- performance-tests/src/test/java/org/apache/activemq/artemis/tests/performance
- journal
- paging
- sends
- smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke
- brokerConnection
- console
- jmx
- resourcetest
- upgradeTest
- soak-tests/src/test/java/org/apache/activemq/artemis/tests/soak
- client
- clusterNotificationsContinuity
- interruptlm
- interrupt
- owleak
- paging
- replicaTxCheck
- stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress
- journal
- paging
- remote
- timing-tests/src/test/java/org/apache/activemq/artemis/tests/timing/core/server/impl
- unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit
- core
- asyncio
- client/impl
- config/impl
- journal/impl
- paging/impl
- postoffice/impl
- remoting/impl/netty
- security/impl
- server/impl
- logging
- ra
- util
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 31 | + | |
35 | 32 | | |
36 | 33 | | |
37 | 34 | | |
| |||
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
Lines changed: 8 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
194 | 193 | | |
195 | 194 | | |
196 | 195 | | |
197 | | - | |
198 | | - | |
| 196 | + | |
199 | 197 | | |
200 | 198 | | |
201 | 199 | | |
| |||
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| |||
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
191 | | - | |
192 | | - | |
193 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
194 | 198 | | |
195 | 199 | | |
196 | 200 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 64 | + | |
| 65 | + | |
68 | 66 | | |
69 | 67 | | |
70 | 68 | | |
| |||
164 | 162 | | |
165 | 163 | | |
166 | 164 | | |
167 | | - | |
168 | | - | |
169 | 165 | | |
170 | 166 | | |
171 | 167 | | |
| |||
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
| |||
384 | 383 | | |
385 | 384 | | |
386 | 385 | | |
387 | | - | |
388 | 386 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
| 135 | + | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments