Disabling auto-boxing for Java in IntelliJ IDEA -
is there way how disable auto-boxing java 5 , 6 in intellij idea, not allow developer use feature in ide?
i don't think can disable auto-boxing outright while maintaining target compile version - that's feature of specific java version.
what can in intellij change inspection level of auto-boxing "error". that:
- go settings > inspections, , type "boxing" search bar.
- click on "auto-boxing".
- set severity "error". cause inspections test report occurrence of auto-boxing error. should same auto-unboxing well.
further down line, can add code inspections run when testing code (pmd, findbugs, cobertura, et. al.) fail build if being auto-boxed or auto-unboxed.
Comments
Post a Comment