Skip to content

Commit 98ccae9

Browse files
committed
HBASE-27421 Bump spotless plugin to 2.27.2 and reimplement the 'Remove unhelpful javadoc stubs' rule (#4824)
Signed-off-by: Xiaolin Ha <[email protected]> (cherry picked from commit 0d260f5)
1 parent 00f72f3 commit 98ccae9

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

pom.xml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@
624624
<surefire.version>3.0.0-M6</surefire.version>
625625
<wagon.ssh.version>2.12</wagon.ssh.version>
626626
<xml.maven.version>1.0.1</xml.maven.version>
627-
<spotless.version>2.24.1</spotless.version>
627+
<spotless.version>2.27.2</spotless.version>
628628
<hbase-thirdparty.version>4.1.2</hbase-thirdparty.version>
629629
<maven-site.version>3.12.0</maven-site.version>
630630
<!-- Intraproject jar naming properties -->
@@ -2220,6 +2220,19 @@
22202220
<exclude>**/generated/*</exclude>
22212221
<exclude>**/package-info.java</exclude>
22222222
</excludes>
2223+
<!--
2224+
e.g., remove the following lines:
2225+
"* @param paramName"
2226+
"* @throws ExceptionType"
2227+
"* @return returnType"'
2228+
Multiline to allow anchors on newlines
2229+
See https://errorprone.info/bugpattern/EmptyBlockTag
2230+
-->
2231+
<replaceRegex>
2232+
<name>Remove unhelpful javadoc stubs</name>
2233+
<searchRegex>(?m)^ *\* *@(?:param|throws|return) *\w* *\n</searchRegex>
2234+
<replacement/>
2235+
</replaceRegex>
22232236
<!--
22242237
e.g., rewrite
22252238
/** @return blabla */
@@ -2229,7 +2242,8 @@
22292242
*/
22302243
to
22312244
/** Returns blabla */
2232-
See https://errorprone.info/bugpattern/EmptyBlockTag
2245+
See https://errorprone.info/bugpattern/MissingSummary
2246+
https://google.github.io/styleguide/javaguide.html#s7.2-summary-fragment
22332247
-->
22342248
<replaceRegex>
22352249
<name>Purge single returns tag multi line</name>

0 commit comments

Comments
 (0)