Skip to content

Commit 6a89105

Browse files
committed
Annotate return types for Throwable/Exception/Error as possibly returning null
1 parent 2b6afe9 commit 6a89105

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

language/predefined/error/getprevious.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<refsect1 role="description">
1111
&reftitle.description;
1212
<methodsynopsis>
13-
<modifier>final</modifier> <modifier>public</modifier> <type>Throwable</type><methodname>Error::getPrevious</methodname>
13+
<modifier>final</modifier> <modifier>public</modifier> <type class="union"><type>Throwable</type><type>null</type></type> <methodname>Error::getPrevious</methodname>
1414
<void />
1515
</methodsynopsis>
1616
<para>

language/predefined/exception/getprevious.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<refsect1 role="description">
1111
&reftitle.description;
1212
<methodsynopsis>
13-
<modifier>final</modifier> <modifier>public</modifier> <type>Throwable</type><methodname>Exception::getPrevious</methodname>
13+
<modifier>final</modifier> <modifier>public</modifier><type class="union"><type>Throwable</type><type>null</type></type><methodname>Exception::getPrevious</methodname>
1414
<void />
1515
</methodsynopsis>
1616
<para>

language/predefined/throwable/getprevious.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<refsect1 role="description">
1111
&reftitle.description;
1212
<methodsynopsis>
13-
<modifier>abstract</modifier> <modifier>public</modifier> <type>Throwable</type><methodname>Throwable::getPrevious</methodname>
13+
<modifier>abstract</modifier> <modifier>public</modifier> <type class="union"><type>Throwable</type><type>null</type></type> <methodname>Throwable::getPrevious</methodname>
1414
<void />
1515
</methodsynopsis>
1616
<para>

0 commit comments

Comments
 (0)