| package org.hamcrest; |
| |
| import java.lang.annotation.Retention; |
| import java.lang.annotation.Target; |
| |
| import static java.lang.annotation.ElementType.METHOD; |
| import static java.lang.annotation.RetentionPolicy.RUNTIME; |
| |
| /** |
| * Marks a Hamcrest static factory method so tools recognise them. |
| * A factory method is an equivalent to a named constructor. |
| * |
| * @deprecated The code generator is no longer maintained. Write classes of syntactic sugar by hand. |
| * @author Joe Walnes |
| */ |
| @Retention(RUNTIME) |
| @Target({METHOD}) |
| @Deprecated |
| public @interface Factory { |
| } |