Libraryless. Click here for Pure Java version (2508L/16K).
1 | svoid addTestToScorer(Scorer scorer, Runnable test) {
|
2 | if (test == null) ret; |
3 | try {
|
4 | test.run(); |
5 | scorer.addOK(); |
6 | } catch print e {
|
7 | scorer.addError(); |
8 | } |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1025755 |
| Snippet name: | addTestToScorer - run Runnable, add OK to scorer if no exception |
| Eternal ID of this version: | #1025755/1 |
| Text MD5: | 21085f1fbb4cb7bd4bf9a213a7b2d74a |
| Transpilation MD5: | 67bf53d57340d8fdbf3306d09c265ae2 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-10-18 12:05:20 |
| Source code size: | 179 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 397 / 548 |
| Referenced in: | [show references] |