Inspectopedia
 
2024.3

'assert' statement

Warning
New
Last modified: 03 December 2024

Reports assert statements. By default, assert statements are disabled during execution in the production environment. Consider using logger or exceptions instead.

The assert statements are not supported in Java 1.3 and earlier JVM.

This inspection depends on the Java feature 'Assertions', which is available since Java 1.4.