Bump org.checkerframework:checker-qual from 4.2.1 to 4.2.2 in the dependencies group Bumps the dependencies group with 1 update: [org.checkerframework:checker-qual](https://github.com/typetools/checker-framework). Updates `org.checkerframework:checker-qual` from 4.2.1 to 4.2.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/typetools/checker-framework/releases">org.checkerframework:checker-qual's releases</a>.</em></p> <blockquote> <h2>Checker Framework 4.2.2</h2> <h2>Version 4.2.2 (2026-08-06)</h2> <h3>Implementation details</h3> <p>Renamed <code>CFAbstractValue.validateSet()</code> to <code>hasAnnotationFromEveryHierarchy()</code>.</p> <h3>Closed issues</h3> <p><a href="https://redirect.github.com/typetools/checker-framework/issues/7723">#7723</a>, <a href="https://redirect.github.com/typetools/checker-framework/issues/7784">#7784</a>, <a href="https://redirect.github.com/typetools/checker-framework/issues/7806">#7806</a>.</p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/typetools/checker-framework/blob/master/docs/CHANGELOG.md">org.checkerframework:checker-qual's changelog</a>.</em></p> <blockquote> <h2>Version 4.2.2 (2026-08-06)</h2> <h3>Implementation details</h3> <p>Renamed <code>CFAbstractValue.validateSet()</code> to <code>hasAnnotationFromEveryHierarchy()</code>.</p> <h3>Closed issues</h3> <p><a href="https://redirect.github.com/typetools/checker-framework/issues/7723">#7723</a>, <a href="https://redirect.github.com/typetools/checker-framework/issues/7784">#7784</a>, <a href="https://redirect.github.com/typetools/checker-framework/issues/7806">#7806</a>.</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/typetools/checker-framework/commit/2dc79eef5a9d2cd18fdbf79550e454c1d7c044f8"><code>2dc79ee</code></a> new release 4.2.2</li> <li><a href="https://github.com/typetools/checker-framework/commit/c038044ee33ad159f769068d43aaaa933983897e"><code>c038044</code></a> Use the Gradle Nexus publish plugin.</li> <li><a href="https://github.com/typetools/checker-framework/commit/51d31cad10d00c8ae069ac32416165c1a1b4a824"><code>51d31ca</code></a> Update release date.</li> <li><a href="https://github.com/typetools/checker-framework/commit/765fe18026bac9cfa15a0199a8dfae52ef212b72"><code>765fe18</code></a> Define <code>equals()</code> and <code>hashCode()</code> (<a href="https://redirect.github.com/typetools/checker-framework/issues/7892">#7892</a>)</li> <li><a href="https://github.com/typetools/checker-framework/commit/214e1a72f091d34f6cd42877380ff84ecb5ec520"><code>214e1a7</code></a> Don't use snapshot versions of libraries</li> <li><a href="https://github.com/typetools/checker-framework/commit/83a2be97ae8694c658b0655a5cb1ae3f57e22e0a"><code>83a2be9</code></a> Gradle improvements</li> <li><a href="https://github.com/typetools/checker-framework/commit/6342795a2d5c5f4a7030ca064ec21f7f0a6016fb"><code>6342795</code></a> Use object equality, not reference equality (<a href="https://redirect.github.com/typetools/checker-framework/issues/7891">#7891</a>)</li> <li><a href="https://github.com/typetools/checker-framework/commit/53ae35709d313c5a8ad5986026057eb9d17ab880"><code>53ae357</code></a> Document side effect (<a href="https://redirect.github.com/typetools/checker-framework/issues/7897">#7897</a>)</li> <li><a href="https://github.com/typetools/checker-framework/commit/b7f5e73bff79e340e580201b7d748f7e8ec4a071"><code>b7f5e73</code></a> Address alignment between declared and substituted type (<a href="https://redirect.github.com/typetools/checker-framework/issues/7885">#7885</a>)</li> <li><a href="https://github.com/typetools/checker-framework/commit/45a6235aa06c5d70bf02ca480260352994208773"><code>45a6235</code></a> The three alternatives of 18.5.2.1 are not mutually exclusive (<a href="https://redirect.github.com/typetools/checker-framework/issues/7883">#7883</a>)</li> <li>Additional commits viewable in <a href="https://github.com/typetools/checker-framework/compare/checker-framework-4.2.1...checker-framework-4.2.2">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Fixes https://github.com/google/error-prone/pull/6036 COPYBARA_INTEGRATE_REVIEW=https://github.com/google/error-prone/pull/6036 from google:dependabot/maven/dependencies-eaaac9437e 3798936b0c2427ff812d291ee4204153a9e36164 PiperOrigin-RevId: 965554511
Error Prone is a static analysis tool for Java that catches common programming mistakes at compile-time.
public class ShortSet { public static void main (String[] args) { Set<Short> s = new HashSet<>(); for (short i = 0; i < 100; i++) { s.add(i); s.remove(i - 1); } System.out.println(s.size()); } }
error: [CollectionIncompatibleType] Argument 'i - 1' should not be passed to this method;
its type int is not compatible with its collection's type argument Short
s.remove(i - 1);
^
(see https://errorprone.info/bugpattern/CollectionIncompatibleType)
1 error
Our documentation is at errorprone.info.
Error Prone works with Bazel, Maven, Ant, and Gradle. See our installation instructions for details.
Developing and building Error Prone is documented on the wiki.