-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade error_prone_annotations to 2.3.4 #6574
Changes from 9 commits
0417f50
c534c13
f4e6c09
484531b
e7f9c6a
d6b4454
f7fa412
ef4264e
9e1c3a5
51175e4
f26fe6d
61fb9f2
af940dc
5e13810
ab08958
6c98862
5a1fa57
6c20c9d
211c2c2
7488e21
5bd6d01
6fb9bac
fb4d7a6
028bb6e
a2f4a83
0a2a76b
749b67f
ef42e8b
dbcdc4c
10ec0cf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,6 +122,8 @@ class ProxyDetectorImpl implements ProxyDetector { | |
// $ sudo tail -f /var/log/squid/access.log | ||
|
||
private static final Logger log = Logger.getLogger(ProxyDetectorImpl.class.getName()); | ||
|
||
@SuppressWarnings("UnnecessaryAnonymousClass") // grpc-java targets Java 7 (no method references) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Travis CI complained: https://travis-ci.org/grpc/grpc-java/jobs/631065748?utm_medium=notification&utm_source=github_status
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suppressing this looks appropriate. There's a reasonable number of these. In the future if there are lots of a particular failure that doesn't make sense like this you can disable the check altogether. See what we've done for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for the guidance. I choose to suppress |
||
private static final AuthenticationProvider DEFAULT_AUTHENTICATOR = new AuthenticationProvider() { | ||
@Override | ||
public PasswordAuthentication requestPasswordAuthentication( | ||
|
@@ -140,6 +142,8 @@ public PasswordAuthentication requestPasswordAuthentication( | |
host, addr, port, protocol, prompt, scheme, url, Authenticator.RequestorType.PROXY); | ||
} | ||
}; | ||
|
||
@SuppressWarnings("UnnecessaryAnonymousClass") // grpc-java targets Java 7 (no method references) | ||
private static final Supplier<ProxySelector> DEFAULT_PROXY_SELECTOR = | ||
new Supplier<ProxySelector>() { | ||
@Override | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ IO_GRPC_GRPC_JAVA_ARTIFACTS = [ | |
"com.google.auth:google-auth-library-oauth2-http:0.19.0", | ||
"com.google.code.findbugs:jsr305:3.0.2", | ||
"com.google.code.gson:gson:jar:2.8.6", | ||
"com.google.errorprone:error_prone_annotations:2.3.3", | ||
"com.google.errorprone:error_prone_annotations:2.3.4", | ||
"com.google.guava:failureaccess:1.0.1", | ||
"com.google.guava:guava:28.1-android", | ||
"com.google.j2objc:j2objc-annotations:1.3", | ||
|
@@ -226,9 +226,9 @@ def com_google_code_gson_gson(): | |
def com_google_errorprone_error_prone_annotations(): | ||
jvm_maven_import_external( | ||
name = "com_google_errorprone_error_prone_annotations", | ||
artifact = "com.google.errorprone:error_prone_annotations:2.3.3", | ||
artifact = "com.google.errorprone:error_prone_annotations:2.3.4", | ||
server_urls = ["https://repo.maven.apache.org/maven2/"], | ||
artifact_sha256 = "ec59f1b702d9afc09e8c3929f5c42777dec623a6ea2731ac694332c7d7680f5a", | ||
artifact_sha256 = "baf7d6ea97ce606c53e11b6854ba5f2ce7ef5c24dddf0afa18d1260bd25b002c", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
licenses = ["notice"], # Apache 2.0 | ||
) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gradle complained perfmark's errorprone annotation 2.3.3.
https://travis-ci.org/grpc/grpc-java/jobs/630091143?utm_medium=notification&utm_source=github_status
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. You did the appropriate thing here, although we normally put a comment saying we are using version X instead of version Y (so that in the future we can tell if the exclude is old and should be removed).
Our build enforces dependency convergence because I've not found a better approach to detecting requireUpperBoundDeps violations from within Gradle (because they aren't a problem in Gradle...).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated comment as "prefer our version to perfmark's 2.3.3".