blob: 7506803a3aa3e9d4baa095fd731dd71211f980c1 [file] [log] [blame]
<html>
<body>
Reports on allocations of arrays with known lengths of zero. Since array lengths in
Java are non-modifiable, it is almost always possible to share zero-length arrays, rather than repeatedly
allocating new zero-length arrays. Such sharing may provide useful optimizations in program runtime or
footprint. Note that this inspection does not report zero-length arrays allocated as static final fields,
as it is assumed that those arrays are being used to implement array sharing.
<!-- tooltip end -->
<p>
<small>Powered by InspectionGadgets</small>
</body>
</html>