1 package org.jgroups.annotations;2 3 import java.lang.annotation.Target ;4 import java.lang.annotation.ElementType ;5 import java.lang.annotation.Retention ;6 import java.lang.annotation.RetentionPolicy ;7 8 /**9 * Copyright (c) 2005 Brian Goetz and Tim Peierls10 * Released under the Creative Commons Attribution License11 * (http://creativecommons.org/licenses/by/2.5)12 * Official home: http://www.jcip.net13 * 14 * Adopted from Java Concurrency in Practice. This annotation defines an immutable class, ie. a class whose15 * instances cannot be modified after creation16 * @author Bela Ban17 * @version $Id: Immutable.java,v 1.2 2007/02/27 14:49:40 belaban Exp $18 */19 @Target ({ElementType.TYPE})20 @Retention (RetentionPolicy.SOURCE)21 public @interface Immutable {22 }23