edu.umd.cs.findbugs.detect
Class UnnecessaryMath
public
class
UnnecessaryMath
extends BytecodeScanningDetector
implements StatelessDetector
Find occurrences of Math using constants, where the result of the
calculation can be determined statically. Replacing the math formula
with the constant performs better, and sometimes is more accurate.
Author: Dave Brosius
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.