Error highlight: EJB should not pass 'this' as a method argument
Hi there,
What if my intention is to pass a reference to the java class, and not the
EJB (say I pass 'this' to a DAO that interacts with the database in a BMP
scenario and populates the entity bean's fields)? Could you make this
configurable, as there are cases when the code is not wrong even if 'this'
is used?
Thx,
Andrei
请先登录再写评论。
We use a logging utility which uses "this" to obtain a class name.
Maybe, this is a bad style, and we ought to pass this.getClass() as an
argument. But since this is not an error, I think IDEA should not
highlight it.
Thanks.
Andrei Oprea wrote: