1 package spoon.examples.stack.annotation; 2 3 import java.lang.annotation.ElementType; 4 import java.lang.annotation.Target; 5 6 /** 7 * This annotation is used to annotate our stack class to make it bounded. 8 */ 9 @Target(ElementType.TYPE) 10 public @interface Bound { 11 int max() default 10; 12 } 13