all: update to latest version of errorprone

This commit is contained in:
Carl Mastrangelo 2017-03-22 22:09:04 -07:00 committed by GitHub
parent 418d52d16d
commit ee12cc2a34
6 changed files with 12 additions and 4 deletions

View File

@ -86,6 +86,7 @@ public class TransportBenchmark {
private volatile EventLoopGroup groupToShutdown;
@Setup
@SuppressWarnings("LiteralClassName") // Epoll is not available on windows
public void setUp() throws Exception {
AbstractServerImplBuilder<?> serverBuilder;
AbstractManagedChannelImplBuilder<?> channelBuilder;

View File

@ -99,6 +99,7 @@ public class AsyncServer {
});
}
@SuppressWarnings("LiteralClassName") // Epoll is not available on windows
static Server newServer(ServerConfiguration config) throws IOException {
SslContext sslContext = null;
if (config.tls) {

View File

@ -155,7 +155,7 @@ subprojects {
epoll_suffix = ":" + osdetector.classifier
}
libraries = [
errorprone: "com.google.errorprone:error_prone_annotations:2.0.11",
errorprone: "com.google.errorprone:error_prone_annotations:2.0.19",
guava: "com.google.guava:guava:${guavaVersion}",
hpack: 'com.twitter:hpack:0.10.1',
jsr305: 'com.google.code.findbugs:jsr305:3.0.0',
@ -207,7 +207,7 @@ subprojects {
// The ErrorProne plugin defaults to the latest, which would break our
// build if error prone releases a new version with a new check
errorprone 'com.google.errorprone:error_prone_core:2.0.15'
errorprone 'com.google.errorprone:error_prone_core:2.0.19'
}
signing {

View File

@ -149,7 +149,8 @@ compileTestJava {
compileTestLiteJava {
// Protobuf-generated Lite produces quite a few warnings.
options.compilerArgs += ["-Xlint:-rawtypes", "-Xlint:-unchecked",
"-Xep:MissingOverride:OFF", "-Xep:ReferenceEquality:OFF"]
"-Xep:MissingOverride:OFF", "-Xep:ReferenceEquality:OFF",
"-Xep:FallThrough:OFF"]
}
compileTestNanoJava {

View File

@ -11,6 +11,11 @@ dependencies {
signature "org.codehaus.mojo.signature:java17:+@signature"
}
[compileJava, compileTestJava].each() {
// Netty retuns a lot of futures that we mostly don't care about.
it.options.compilerArgs += ["-Xep:FutureReturnValueIgnored:OFF"]
}
javadoc.options.links 'http://netty.io/4.1/api/'
project.sourceSets {

View File

@ -25,7 +25,7 @@ dependencies {
compileTestJava {
// Protobuf-generated Lite produces quite a few warnings.
options.compilerArgs += ["-Xlint:-rawtypes", "-Xlint:-unchecked", "-Xlint:-fallthrough",
"-Xep:MissingOverride:OFF", "-Xep:ReferenceEquality:OFF"]
"-Xep:MissingOverride:OFF", "-Xep:ReferenceEquality:OFF", "-Xep:FallThrough:OFF"]
}
protobuf {