<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:58:18 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-2886] Incorrect JSR-305 nullability annotations </title>
                <link>https://jira.mongodb.org/browse/JAVA-2886</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Including nullness annotations in the 3.7.x series driver was a welcome addition. Thanks for adding this very useful metadata.&lt;/p&gt;

&lt;p&gt;There are a few places in the API where methods and parameters are (meta-)labeled with the wrong nullness annotation.&lt;/p&gt;

&lt;p&gt;Some examples, but far from exhaustive:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;&lt;tt&gt;com.mongodb.client.MongoCollection&lt;/tt&gt;: The package has the NonNullApi meta-annotation. Methods in the findOneAnd$OP class can all return null, but are not annotated with @CheckForNull or @Nullable&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;com.mongodb.client.model.Aggregates#group&lt;/tt&gt;: The package has NonNullApi, but `null` has been an accepted parameter for &lt;tt&gt;TExpression id&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;com.mongodb.client.model.Filters#eq&lt;/tt&gt;: The package has NonNullApi, but `null` has been an accepted parameter for &lt;tt&gt;TItem value&lt;/tt&gt;&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
        <key id="557683">JAVA-2886</key>
            <summary>Incorrect JSR-305 nullability annotations </summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="epkugelmass">Elan Kugelmass</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Jun 2018 21:13:57 +0000</created>
                <updated>Sat, 28 Oct 2023 11:22:48 +0000</updated>
                            <resolved>Thu, 21 Jun 2018 13:46:48 +0000</resolved>
                                    <version>3.7.0</version>
                                    <fixVersion>3.8.0</fixVersion>
                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1927376" author="jeff.yemin" created="Thu, 21 Jun 2018 13:46:48 +0000"  >&lt;p&gt;Audited the builders and MongoCollection and fixed all the issues I found there.  There may be more lurking, but wanted to get these in for the 3.8 release.&lt;/p&gt;

&lt;p&gt;If more are found subsequently, please open a new issue.&lt;/p&gt;</comment>
                            <comment id="1927328" author="xgen-internal-githook" created="Thu, 21 Jun 2018 13:10:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;jyemin&apos;, &apos;name&apos;: &apos;Jeff Yemin&apos;, &apos;email&apos;: &apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2886&quot; title=&quot;Incorrect JSR-305 nullability annotations &quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2886&quot;&gt;&lt;del&gt;JAVA-2886&lt;/del&gt;&lt;/a&gt;: Add missing Nullable annotations&lt;/p&gt;

&lt;p&gt;Added to:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;id parameter of Aggregates#group&lt;/li&gt;
	&lt;li&gt;value parameter of some Filters methods&lt;/li&gt;
	&lt;li&gt;value parameter for some Updates methods&lt;/li&gt;
	&lt;li&gt;return value of MongoCollection#findOneAnd* methods&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/26c66e9fbcefbf8f8fcf9e960de463cea90d7824&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/26c66e9fbcefbf8f8fcf9e960de463cea90d7824&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="1926445" author="jeff.yemin" created="Wed, 20 Jun 2018 17:10:00 +0000"  >&lt;p&gt;PR: &lt;a href=&quot;https://github.com/jyemin/mongo-java-driver/pull/157&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/jyemin/mongo-java-driver/pull/157&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1918075" author="ross@10gen.com" created="Tue, 12 Jun 2018 08:38:52 +0000"  >&lt;p&gt;Thanks for the ticket &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=epkugelmass&quot; class=&quot;user-hover&quot; rel=&quot;epkugelmass&quot;&gt;epkugelmass&lt;/a&gt;, we&apos;ll investigate and update for 3.8&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                                                <inwardlinks description="is caused by">
                                        <issuelink>
            <issuekey id="447326">JAVA-2641</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="566850">JAVA-2901</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr8u3b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>