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

Constructor Summary
UnnecessaryMath(BugReporter bugReporter)

Constructor Detail

UnnecessaryMath

public UnnecessaryMath(BugReporter bugReporter)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.