mirror of https://github.com/grpc/grpc-java.git
all: update to latest version of errorprone
This commit is contained in:
parent
418d52d16d
commit
ee12cc2a34
|
@ -86,6 +86,7 @@ public class TransportBenchmark {
|
||||||
private volatile EventLoopGroup groupToShutdown;
|
private volatile EventLoopGroup groupToShutdown;
|
||||||
|
|
||||||
@Setup
|
@Setup
|
||||||
|
@SuppressWarnings("LiteralClassName") // Epoll is not available on windows
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
AbstractServerImplBuilder<?> serverBuilder;
|
AbstractServerImplBuilder<?> serverBuilder;
|
||||||
AbstractManagedChannelImplBuilder<?> channelBuilder;
|
AbstractManagedChannelImplBuilder<?> channelBuilder;
|
||||||
|
|
|
@ -99,6 +99,7 @@ public class AsyncServer {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("LiteralClassName") // Epoll is not available on windows
|
||||||
static Server newServer(ServerConfiguration config) throws IOException {
|
static Server newServer(ServerConfiguration config) throws IOException {
|
||||||
SslContext sslContext = null;
|
SslContext sslContext = null;
|
||||||
if (config.tls) {
|
if (config.tls) {
|
||||||
|
|
|
@ -155,7 +155,7 @@ subprojects {
|
||||||
epoll_suffix = ":" + osdetector.classifier
|
epoll_suffix = ":" + osdetector.classifier
|
||||||
}
|
}
|
||||||
libraries = [
|
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}",
|
guava: "com.google.guava:guava:${guavaVersion}",
|
||||||
hpack: 'com.twitter:hpack:0.10.1',
|
hpack: 'com.twitter:hpack:0.10.1',
|
||||||
jsr305: 'com.google.code.findbugs:jsr305:3.0.0',
|
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
|
// The ErrorProne plugin defaults to the latest, which would break our
|
||||||
// build if error prone releases a new version with a new check
|
// 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 {
|
signing {
|
||||||
|
|
|
@ -149,7 +149,8 @@ compileTestJava {
|
||||||
compileTestLiteJava {
|
compileTestLiteJava {
|
||||||
// Protobuf-generated Lite produces quite a few warnings.
|
// Protobuf-generated Lite produces quite a few warnings.
|
||||||
options.compilerArgs += ["-Xlint:-rawtypes", "-Xlint:-unchecked",
|
options.compilerArgs += ["-Xlint:-rawtypes", "-Xlint:-unchecked",
|
||||||
"-Xep:MissingOverride:OFF", "-Xep:ReferenceEquality:OFF"]
|
"-Xep:MissingOverride:OFF", "-Xep:ReferenceEquality:OFF",
|
||||||
|
"-Xep:FallThrough:OFF"]
|
||||||
}
|
}
|
||||||
|
|
||||||
compileTestNanoJava {
|
compileTestNanoJava {
|
||||||
|
|
|
@ -11,6 +11,11 @@ dependencies {
|
||||||
signature "org.codehaus.mojo.signature:java17:+@signature"
|
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/'
|
javadoc.options.links 'http://netty.io/4.1/api/'
|
||||||
|
|
||||||
project.sourceSets {
|
project.sourceSets {
|
||||||
|
|
|
@ -25,7 +25,7 @@ dependencies {
|
||||||
compileTestJava {
|
compileTestJava {
|
||||||
// Protobuf-generated Lite produces quite a few warnings.
|
// Protobuf-generated Lite produces quite a few warnings.
|
||||||
options.compilerArgs += ["-Xlint:-rawtypes", "-Xlint:-unchecked", "-Xlint:-fallthrough",
|
options.compilerArgs += ["-Xlint:-rawtypes", "-Xlint:-unchecked", "-Xlint:-fallthrough",
|
||||||
"-Xep:MissingOverride:OFF", "-Xep:ReferenceEquality:OFF"]
|
"-Xep:MissingOverride:OFF", "-Xep:ReferenceEquality:OFF", "-Xep:FallThrough:OFF"]
|
||||||
}
|
}
|
||||||
|
|
||||||
protobuf {
|
protobuf {
|
||||||
|
|
Loading…
Reference in New Issue