blob: 61701a15789726cacf9ffa09ec124f117a48b4fc [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>
</body>
</html>