Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1003426 // assertNull

JavaX fragment (include)

1  
static <A> A assertNull(A a) {
2  
  assertTrue(a == null);
3  
  ret a;
4  
}
5  
6  
static <A> A assertNull(S msg, A a) {
7  
  assertTrue(msg, a == null);
8  
  ret a;
9  
}

Author comment

Began life as a copy of #1002012

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003426
Snippet name: assertNull
Eternal ID of this version: #1003426/3
Text MD5: 806ec77ec969d2bab57d5c55787bf383
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-11 02:53:20
Source code size: 154 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 733 / 779
Version history: 2 change(s)
Referenced in: [show references]