Commit 24e2aee
committed
refactor(api): address review feedback on int64_as_string PR
Three small adjustments per review on PR #6699:
- GetTransactionCountByBlockNumServlet: add trailing newline at end of
file to satisfy checkstyle.
- Util.getInt64AsString: align control flow with the existing
Util.getVisible (single-return via local boolean, Boolean.valueOf
instead of Boolean.parseBoolean). Functionally identical -- both
return true only when the parameter value is "true" (case-insensitive).
- Util.INT64_AS_STRING -> Util.INT64_AS_STRING_PARAM: rename the public
parameter-name constant to avoid potential confusion with the unrelated
private ThreadLocal field of the same simple name in JsonFormat.
The user-facing query parameter remains "int64_as_string" -- only the
Java identifier changes.1 parent cb77f36 commit 24e2aee
2 files changed
Lines changed: 6 additions & 5 deletions
File tree
- framework/src/main/java/org/tron/core/services/http
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
359 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
360 | 361 | | |
361 | | - | |
| 362 | + | |
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
| |||
0 commit comments