mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
contract nulls are compatible with array return types (IDEA-137323)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import org.jetbrains.annotations.Contract;
|
||||
|
||||
class Zoo {
|
||||
@Contract( "null->null" )
|
||||
static byte[] bar( String s )
|
||||
{
|
||||
if ( s == null )
|
||||
return null;
|
||||
return new byte[0];
|
||||
}}
|
||||
Reference in New Issue
Block a user