This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.4 by this push:
new be6f517d928 HBASE-27208 Use spotless to purge the missing summary
warnings from error prone (#4628)
be6f517d928 is described below
commit be6f517d92897d924604d34c7a26db586c23dc11
Author: Duo Zhang <[email protected]>
AuthorDate: Tue Jul 19 09:45:06 2022 +0800
HBASE-27208 Use spotless to purge the missing summary warnings from error
prone (#4628)
Signed-off-by: Andrew Purtell <[email protected]>
(cherry picked from commit 7484a9163a438f2cd9c4e0ac5ab88b00b3340737)
---
pom.xml | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/pom.xml b/pom.xml
index 60230b5cec8..04cd1f462c4 100755
--- a/pom.xml
+++ b/pom.xml
@@ -2233,6 +2233,27 @@
<!-- spotless manve plugin does not allow empty here, so use \n
-->
<replacement>\n</replacement>
</replaceRegex>
+ <!--
+ e.g., rewrite
+ /** @return blabla */
+ or
+ /**
+ * @return blabla
+ */
+ to
+ /** Returns blabla */
+ See https://errorprone.info/bugpattern/FutureReturnValueIgnored
+ -->
+ <replaceRegex>
+ <name>Purge single returns tag multi line</name>
+ <searchRegex>(?m)^ */\*\*\n *\* *@return *(.*) *\n
*\*/$</searchRegex>
+ <replacement>/** Returns $1 */</replacement>
+ </replaceRegex>
+ <replaceRegex>
+ <name>Purge single returns tag single line</name>
+ <searchRegex>^ */\*\* *@return *(.*) *\*/$</searchRegex>
+ <replacement>/** Returns $1 */</replacement>
+ </replaceRegex>
<!-- apply a specific flavor -->
<eclipse>
<file>${session.executionRootDirectory}/dev-support/hbase_eclipse_formatter.xml</file>