Skip to content

Commit 9c12e22

Browse files
committed
Revert deletion of Factory so that third-party code continues to compile against the latest Hamcrest version
1 parent b9c906d commit 9c12e22

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package org.hamcrest;
2+
3+
import java.lang.annotation.Retention;
4+
import java.lang.annotation.Target;
5+
6+
import static java.lang.annotation.ElementType.METHOD;
7+
import static java.lang.annotation.RetentionPolicy.RUNTIME;
8+
9+
/**
10+
* Marks a Hamcrest static factory method so tools recognise them.
11+
* A factory method is an equivalent to a named constructor.
12+
*
13+
* @deprecated The code generator is no longer maintained. Write classes of syntactic sugar by hand.
14+
* @author Joe Walnes
15+
*/
16+
@Retention(RUNTIME)
17+
@Target({METHOD})
18+
@Deprecated
19+
public @interface Factory {
20+
}

0 commit comments

Comments
 (0)