Closed cxzl25 closed 4 months ago
This PR aims to avoid System.exit(0) in scan command.
System.exit(0)
scan
System.exit(0) is not conducive to testing, especially in Java17 and above. Without System.exit(0), the program can exit normally.
local test
No
What changes were proposed in this pull request?
This PR aims to avoid
System.exit(0)
inscan
command.Why are the changes needed?
System.exit(0)
is not conducive to testing, especially in Java17 and above. WithoutSystem.exit(0)
, the program can exit normally.How was this patch tested?
local test
Was this patch authored or co-authored using generative AI tooling?
No