We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51cb871 commit 9713fe8Copy full SHA for 9713fe8
1 file changed
src/main/java/cn/byhieg/annotationstutorial/AConstructor.java
@@ -0,0 +1,20 @@
1
+package cn.byhieg.annotationstutorial;
2
+
3
+import java.lang.annotation.ElementType;
4
+import java.lang.annotation.Retention;
5
+import java.lang.annotation.RetentionPolicy;
6
+import java.lang.annotation.Target;
7
8
+/**
9
+ * Created by byhieg on 17/2/14.
10
+ * Mail to byhieg@gmail.com
11
+ */
12
+@Retention(RetentionPolicy.RUNTIME)
13
+@Target(ElementType.CONSTRUCTOR)
14
+public @interface AConstructor {
15
16
+ public String initName() default "byhieg";
17
18
+ public int initAge() default 24;
19
20
+}
0 commit comments