edu.umd.cs.findbugs.detect

Class InefficientToArray

public class InefficientToArray extends BytecodeScanningDetector implements StatelessDetector

Find occurrences of collection.toArray( new Foo[0] ); This causes another memory allocation through reflection Much better to do collection.toArray( new Foo[collection.size()] );

Author: Dave Brosius

Constructor Summary
InefficientToArray(BugReporter bugReporter)

Constructor Detail

InefficientToArray

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