Libraryless. Click here for Pure Java version (15920L/104K).
1 | svoid fixConceptIDs(Concepts cc default db_mainConcepts()) { |
2 | if (cc == null) ret; |
3 | for (long id, Concept c : cc.concepts) { |
4 | if (id == 0) continue with print("0 concept key: " + c); |
5 | if (c.id == id) continue; |
6 | print("Fixing concept ID: " + c.id + " => " + id + ": " + c); |
7 | c.id = id; |
8 | } |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031731 |
Snippet name: | fixConceptIDs |
Eternal ID of this version: | #1031731/2 |
Text MD5: | 89d5da57f68a23d91ecffb37529bebde |
Transpilation MD5: | 7944937f517abd507375f0303869d01c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-29 01:08:06 |
Source code size: | 312 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 164 / 255 |
Version history: | 1 change(s) |
Referenced in: | [show references] |