-
Notifications
You must be signed in to change notification settings - Fork 135
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
Update AvoidNewHashMapInt to include HashSet #2292
Conversation
Generate changelog in
|
54e1aeb
to
0da04a4
Compare
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.
Overall LGTM, one spelling nit
Just an FYI there's some pending release Guava & JDK changes for capacity calculation google/guava#5965 & openjdk/jdk@3e39304 , google/guava@6ad621e
There's also JDK HashMap.newHashMap(int)
& HashSet.newHashSet(int)
equivalents to the Guava Maps.newHashMapWithExpectedSize(int)
and Sets.newHashSetWithExpectedSize(int)
likely landing in JDK 19 openjdk/jdk#7928 & openjdk/jdk#8302 respectively
baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/AvoidNewHashMapInt.java
Outdated
Show resolved
Hide resolved
…prone/AvoidNewHashMapInt.java Co-authored-by: David Schlosnagle <davids@palantir.com>
I've disqualified myself, @schlosna mind giving this a 👍 as well? |
Released 4.140.0 |
###### _excavator_ is a bot for automating changes across repositories. Changes produced by the roomba/latest-baseline-oss check. # Release Notes ## 4.140.0 | Type | Description | Link | | ---- | ----------- | ---- | | Improvement | Update `AvoidNewHashMapInt` to warn on uses of `new HashSet(int)`. | palantir/gradle-baseline#2292 | To enable or disable this check, please contact the maintainers of Excavator.
Same as #1773, but for
HashSet
.