Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 373 Bytes

StaticEJBFieldShouldBeFinal.md

File metadata and controls

8 lines (5 loc) · 373 Bytes

StaticEJBFieldShouldBeFinal

Category: pmd
Rule Key: pmd:StaticEJBFieldShouldBeFinal


According to the J2EE specification (p.494), an EJB should not have any static fields with write access. However, static read only fields are allowed. This ensures proper behavior especially when instances are distributed by the container on several JREs.