mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8335637: Add explicit non-null return value expectations to Object.toString()
Reviewed-by: jpai, alanb, smarks, prappo
This commit is contained in:
parent
7ab96c74e2
commit
66db71563c
1 changed files with 4 additions and 0 deletions
|
@ -237,6 +237,10 @@ public class Object {
|
|||
|
||||
/**
|
||||
* {@return a string representation of the object}
|
||||
*
|
||||
* Satisfying this method's contract implies a non-{@code null}
|
||||
* result must be returned.
|
||||
*
|
||||
* @apiNote
|
||||
* In general, the
|
||||
* {@code toString} method returns a string that
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue