We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9c906d commit 9c12e22Copy full SHA for 9c12e22
hamcrest-core/src/main/java/org/hamcrest/Factory.java
@@ -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