spring-framework/src
Sam Brannen c989cba963 Add Checkstyle rule to enforce use of class literals for primitives & void
This commit introduces a globally applied Checkstyle rule which
enforces the use of class literals for primitive types and void by
forbidding the use of the TYPE constants in Boolean, Character, Byte,
Short, Integer, Long, Float, Double, and Void.

For example, if MyClass uses one of the TYPE constants, the build will
now fail with a message similar to the following.

[ERROR] <...>/MyClass.java:39: Please use class literals for primitives and void -- for example, int.class instead of Integer.TYPE.
2024-02-01 12:51:35 +01:00
..
checkstyle Add Checkstyle rule to enforce use of class literals for primitives & void 2024-02-01 12:51:35 +01:00
eclipse Merge branch '5.3.x' 2022-07-03 18:05:36 +02:00
idea Fix static imports handling in IntelliJ IDEA configuration 2019-09-05 14:35:54 +02:00
nohttp Merge branch '5.3.x' 2022-09-30 14:42:00 +02:00