1 | static new ThreadLocal<StringBuilder> printToBuf_buf; |
2 | |
3 | static void printToBuf(O o) { |
4 | StringBuilder buf = printToBuf_buf!; |
5 | if (buf == null) printToBuf_buf.set(buf = new StringBuilder); |
6 | printToBuf(buf, o); |
7 | } |
8 | |
9 | static void printToBuf(StringBuilder buf, O o) { |
10 | buf.append(str(o)).append("\n"); |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014659 |
Snippet name: | printToBuf - print to a thread-local buffer |
Eternal ID of this version: | #1014659/4 |
Text MD5: | f57c5672c7574f9d07db2108ff6b387f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-20 16:29:06 |
Source code size: | 308 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 493 / 525 |
Version history: | 3 change(s) |
Referenced in: | [show references] |