The aim of this query is to point out violations of the following rule: a message-bean class must be a top-level class.
Pre-packaged Query
Query name="Semmle/StyleChecks/J2EE/Message-Bean/All message-beans must be top-level"
Reports all Message-Bean types that are not top-level (i.e. are nested classes).
from MessageBean mbean
where mbean instanceof NestedClass
select mbean, mbean.toString() + " message-bean must be top-level"
References
Enterprise JavaBeans 2.1 - Specification, section 15.7.2
|