1 package org.pojomatic.annotations;
2
3 import java.lang.annotation.*;
4
5 import org.pojomatic.Pojomator;
6
7 /**
8 * Declares that a subclass of the annotated type cannot override the behavior of equals.
9 *
10 * Absent this annotation, it is assumed that subclasses cannot override {@code equals} for interface
11 * types, and can for other types.
12 *
13 * @see Pojomator#doEquals(Object, Object)
14 */
15 @Documented
16 @Target(ElementType.TYPE)
17 @Retention(RetentionPolicy.RUNTIME)
18 public @interface SubclassCannotOverrideEquals {
19 }