Commit b0c4d34
committed
chore: Add JSON method calls to detekt safe calls
Adds JSONObject and JSONArray method calls used in JsonExtensions.kt:
- JSONObject.constructor(String): Parse JSON strings
- JSONObject.get/put: Get and set values
- JSONArray.get/put: Get and add elements
These methods are used for recursive Map↔JSON conversion and are safe
within the context of the conversion logic.1 parent deeb794 commit b0c4d34
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1228 | 1228 | | |
1229 | 1229 | | |
1230 | 1230 | | |
| 1231 | + | |
1231 | 1232 | | |
| 1233 | + | |
1232 | 1234 | | |
1233 | 1235 | | |
1234 | | - | |
| 1236 | + | |
| 1237 | + | |
1235 | 1238 | | |
| 1239 | + | |
| 1240 | + | |
1236 | 1241 | | |
1237 | 1242 | | |
1238 | 1243 | | |
| |||
0 commit comments