Xiaoven / codegex

A light-weight tools like spotbugs
GNU Lesser General Public License v2.1
1 stars 0 forks source link

FP for SA_SELF_COMPUTATION #154

Closed Xiaoven closed 3 years ago

Xiaoven commented 3 years ago

需要限制最后不能以括号结尾,因为我们只检查 field 或者 local variable name

 player.world.playSound(null, player.getX(), player.getY(), player.getZ(), SoundEvents.ENTITY_ITEM_PICKUP, SoundCategory.PLAYERS, 0.2F, ((player.getRandom().nextFloat() - player.getRandom().nextFloat()) * 0.7F + 1.0F) * 2.0F);
Xiaoven commented 3 years ago
double second = requestMetrics.endDate.getTime() - requestMetrics.endDate.getTime();