[ 
https://issues.apache.org/jira/browse/HBASE-23051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Duo Zhang updated HBASE-23051:
------------------------------
    Attachment: HBASE-23051-branch-2-addendum.patch

> Remove unneeded Mockito.mock invocations
> ----------------------------------------
>
>                 Key: HBASE-23051
>                 URL: https://issues.apache.org/jira/browse/HBASE-23051
>             Project: HBase
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 3.0.0, 2.3.0, 2.1.7, 2.2.2
>            Reporter: Peter Somogyi
>            Assignee: Peter Somogyi
>            Priority: Major
>             Fix For: 3.0.0, 2.3.0, 2.1.7, 2.2.2
>
>         Attachments: HBASE-23051-branch-2-addendum.patch
>
>
> ErrorProne fails the build using the new Mockito version.
> {noformat}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.0:testCompile 
> (default-testCompile) on project hbase-server: Compilation failure: 
> Compilation failure: 
> [ERROR] 
> /home/jenkins/jenkins-slave/workspace/HBase_Nightly_master/component/hbase-server/src/test/java/org/apache/hadoop/hbase/master/assignment/MockMasterServices.java:[147,16]
>  error: [CheckReturnValue] Ignored return value of method that is annotated 
> with @CheckReturnValue
> [ERROR]     (see https://errorprone.info/bugpattern/CheckReturnValue)
> [ERROR]   Did you mean to remove this line?
> [ERROR] 
> /home/jenkins/jenkins-slave/workspace/HBase_Nightly_master/component/hbase-server/src/test/java/org/apache/hadoop/hbase/procedure/TestZKProcedureControllers.java:[331,16]
>  error: [CheckReturnValue] Ignored return value of method that is annotated 
> with @CheckReturnValue
> [ERROR]     (see https://errorprone.info/bugpattern/CheckReturnValue)
> [ERROR]   Did you mean to remove this line?
> [ERROR] -> [Help 1] {noformat}
> [https://builds.apache.org/job/HBase%20Nightly/job/master/1456/artifact/output-jdk8-hadoop2/patch-compile-root.txt]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to