patterntesting.check.ct
Aspect StaticAspect

java.lang.Object
  extended by patterntesting.check.ct.AbstractStaticAspect
      extended by patterntesting.check.ct.StaticAspect

public aspect StaticAspect
extends AbstractStaticAspect

 

Pointcut Detail

applicationCode()

Only for classes marked with "@DamnStaticVars" a warning will be printed.

If you are in a web context or/and a cluster static variables are normally not a good idea. Use better final statics or at least transient static variables. This aspect together with AbstractStaticAspect will print a warning if it finds such variables.

Since:
17.11.2008
See Also:
AbstractStaticAspect

Pointcut Summary
public applicationCode()
            Only for classes marked with "@DamnStaticVars" a warning will be printed.

 

Constructor Summary
StaticAspect()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticAspect

public StaticAspect()