Skip to content

Instantly share code, notes, and snippets.

@agentgt
Created July 13, 2011 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agentgt/1081574 to your computer and use it in GitHub Desktop.
Save agentgt/1081574 to your computer and use it in GitHub Desktop.
AspectJ to make appendable easier to use
package com.evocatus.aop;
import java.io.IOException;
import java.lang.Appendable;
public aspect AppendableAspect {
pointcut appendCall(): call(* Appendable.append(..));
declare soft : IOException : appendCall();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment