Error Prone: Enable and fix FutureReturnValueIgnored
Change-Id: I7d119d05fdcea1ce13aca4a4f8ec9e172e5b98a3
This commit is contained in:

committed by
David Pursehouse

parent
0c5fdd70b1
commit
ef04f0e6ce
@@ -14,6 +14,8 @@
|
||||
|
||||
package com.google.gerrit.elasticsearch;
|
||||
|
||||
import static java.util.concurrent.TimeUnit.MINUTES;
|
||||
|
||||
import com.google.gerrit.elasticsearch.ElasticTestUtils.ElasticNodeInfo;
|
||||
import com.google.gerrit.server.query.change.AbstractQueryChangesTest;
|
||||
import com.google.gerrit.testing.ConfigSuite;
|
||||
@@ -65,14 +67,16 @@ public class ElasticV7QueryChangesTest extends AbstractQueryChangesTest {
|
||||
@Rule public final GerritTestName testName = new GerritTestName();
|
||||
|
||||
@After
|
||||
public void closeIndex() {
|
||||
client.execute(
|
||||
new HttpPost(
|
||||
String.format(
|
||||
"http://localhost:%d/%s*/_close",
|
||||
nodeInfo.port, testName.getSanitizedMethodName())),
|
||||
HttpClientContext.create(),
|
||||
null);
|
||||
public void closeIndex() throws Exception {
|
||||
client
|
||||
.execute(
|
||||
new HttpPost(
|
||||
String.format(
|
||||
"http://localhost:%d/%s*/_close",
|
||||
nodeInfo.port, testName.getSanitizedMethodName())),
|
||||
HttpClientContext.create(),
|
||||
null)
|
||||
.get(5, MINUTES);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -59,7 +59,7 @@ java_package_configuration(
|
||||
"-Xep:FragmentInjection:ERROR",
|
||||
"-Xep:FragmentNotInstantiable:ERROR",
|
||||
"-Xep:FunctionalInterfaceClash:ERROR",
|
||||
#"-Xep:FutureReturnValueIgnored:ERROR",
|
||||
"-Xep:FutureReturnValueIgnored:ERROR",
|
||||
#"-Xep:GetClassOnEnum:ERROR",
|
||||
"-Xep:ImmutableAnnotationChecker:ERROR",
|
||||
#"-Xep:ImmutableEnumChecker:ERROR",
|
||||
|
Reference in New Issue
Block a user