mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 16:17:34 +00:00
Found ANOTHER javac bug.
This commit is contained in:
1 parent
6f9a776367
commit
97c6436fe6
1 file changed
+3
-1
@@ -67,5 +67,7 @@ import java.lang.annotation.Target;
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
public @interface SneakyThrows {
|
||||
/** The exception type(s) you want to sneakily throw onward. */
|
||||
Class<? extends Throwable>[] value() default Throwable.class;
|
||||
Class<? extends Throwable>[] value() default java.lang.Throwable.class;
|
||||
|
||||
//The package is mentioned in java.lang due to a bug in javac (presence of an annotation processor throws off the type resolver for some reason).
|
||||
}
|
||||
Reference in new issue
Block a user