enofex/taikai

Enforce variable declaration using var

Closed this issue · 1 comments

I think it can be shoud be a good feature.

Using ArchUnit to check for the usage of var in Java is not feasible directly since var is a feature of the Java language syntax and not something that is represented distinctly in the bytecode. When the Java compiler processes var declarations, it infers the type and converts them into explicit type declarations in the bytecode, making it impossible for bytecode analysis tools like ArchUnit to detect them.