View by Classes

Findings - Overview

info Method uses toArray() with zero-length array argument (Findbugs)

Further info on the wiki.

This method uses the toArray() method of a collection derived class, and passes in a zero-length prototype array argument. It is more efficient to use myCollection.toArray(new Foo[myCollection.size()]) If the array passed in is big enough to store all of the elements of the collection, then it is populated and returned directly. This avoids the need to create a second array (by reflection) to return as the result.

3org.jcoderz.phoenix.chart2d.Chart2DHandlerImpl
Method org.jcoderz.phoenix.chart2d.Chart2DHandlerImpl.endGraphChart2DProperties() uses Collection.toArray() with zero-length array argument [558],
Method org.jcoderz.phoenix.chart2d.Chart2DHandlerImpl.endLegendProperties() uses Collection.toArray() with zero-length array argument [975],
Method org.jcoderz.phoenix.chart2d.Chart2DHandlerImpl.endMultiColorsProperties() uses Collection.toArray() with zero-length array argument [393]
1org.jcoderz.phoenix.jcoverage.Instrumenter
Method org.jcoderz.phoenix.jcoverage.Instrumenter.instrument(List, File, File) uses Collection.toArray() with zero-length array argument [262]
1org.jcoderz.phoenix.report.StatisticCollector
Method org.jcoderz.phoenix.report.StatisticCollector.createLocChart(Map, Map, String) uses Collection.toArray() with zero-length array argument [406]
1org.jcoderz.phoenix.report.FindingsSummary
Method org.jcoderz.phoenix.report.FindingsSummary$FindingSummary.createFindingTypeContent(Writer) uses Collection.toArray() with zero-length array argument [400]