mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-20 22:17:09 +08:00
fix multiple annotations npe
Hints annotation needs add @Retention(RetentionPolicy.RUNTIME), otherwise it will throw npe.
This commit is contained in:
parent
6728674aaa
commit
0a38f722c1
@ -872,6 +872,7 @@ System.out.println(string); // Nov 03, 2014 - 07:13
|
||||
首先定义一个包装类Hints注解用来放置一组具体的Hint注解:
|
||||
|
||||
```java
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@interface Hints {
|
||||
Hint[] value();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user