MY Java代码的部分如下:
private static final double EPSILON = 0.0000001;
private boolean equals(double a, double b) {
return (Math.abs(a - b) < EPSILON);
}
但是当我编译它时,会收到以下警告:
[WARN] The numeric literal '0.0000001' appears to be unnecessary. [NumericLiteral]
我不知道如何解决此错误。