Cronet: Fix static analysis warnings fround by newer ErrorProne
There is one non-trivial one which I've just suppressed here, where CronetEngine.Builder.addPublicKeyPins() takes a Set<byte[]>. Apparently byte[] does not implement hashCode() nor compare(), so they should not be used as keys in maps/sets: https://errorprone.info/bugpattern/ArrayAsKeyOfSetOrMap Bug: 894616 Change-Id: I1feefa33a4d9a28f859b21ee0eeb051d969483cb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1934314Reviewed-by:Paul Jensen <pauljensen@chromium.org> Commit-Queue: Andrew Grieve <agrieve@chromium.org> Cr-Commit-Position: refs/heads/master@{#719140}
Showing
Please register or sign in to comment