The class implements Serializable (indirectly because org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor does) and I was getting a warning that there was no serialVersionUID set. It's harmless to not have one since instances won't actually be serialized, but adding it makes the compiler happy.