Skip to content
Abnaxos edited this page Jan 14, 2013 · 3 revisions

This page keeps track of ideas.

@Equivalent

The @Equivalent annotation is currently a purely informational meta annotation. This could be extended to a way of defining new annotations:

@Equivalent(
    asEnsure = "@result()==42",
    onParameter = "@param()==42")
public @interface MustEqual42 {
}
Clone this wiki locally