checkstyle/src/test/java/com/puppycrawl/tools
Michal Kordas a13ebd482c Use constant for arrays with zero length. #1555
Fixes `ZeroLengthArrayInitialization` inspection violations in test code.

Description:
>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.
2015-08-22 14:38:41 +03:00
..
checkstyle Use constant for arrays with zero length. #1555 2015-08-22 14:38:41 +03:00