Sonar 问题修复Neither “Math.abs“ nor negation should be used on numbers that could be “MIN_VALUE“
本系列主要记录分享 SonarLint 扫描出来的Bugs问题修复方案文章目录问题解决办法问题分析参考问题Bugs描述:Use the original value instead.问题代码:Random rand = new Random();// 这一行是被扫描出来有问题的代码int randInt = Math.abs(rand.nextInt());解决办法Random rand = new Random();int randInt = Math.abs(rand.nex.