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

6
LINES

< > BotCompany Repo | #1019848 // clearStringBuffer_gen - also supports NotifyingStringBuffer

JavaX fragment (include)

1  
svoid clearStringBuffer_gen(O buf) {
2  
  if (buf != null) {
3  
    call(buf, 'setLength, 0);
4  
    call(buf, 'trimToSize);
5  
  }
6  
}

Author comment

Began life as a copy of #1016735

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019848
Snippet name: clearStringBuffer_gen - also supports NotifyingStringBuffer
Eternal ID of this version: #1019848/1
Text MD5: 81ee95148f81d5d4fc00e6552ca9fe7b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-28 21:15:25
Source code size: 126 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 377 / 396
Referenced in: [show references]