
love.forte.simbot.mark.ThreadUnsafe Maven / Gradle / Ivy
/*
*
* * Copyright (c) 2021. ForteScarlet All rights reserved.
* * Project simple-robot
* * File MiraiAvatar.kt
* *
* * You can contact the author through the following channels:
* * github https://github.com/ForteScarlet
* * gitee https://gitee.com/ForteScarlet
* * email [email protected]
* * QQ 1149159218
*
*/
package love.forte.simbot.mark;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
/**
* 用于标记一个东西是线程不安全的,可能会标记一个类,或者一个方法。
*
* 此注解仅用作标记。
*
* @author ForteScarlet
*/
@SuppressWarnings("unused")
@Retention(RetentionPolicy.CLASS)
@Target({TYPE, FIELD, CONSTRUCTOR, METHOD, PARAMETER})
@Documented
@MarkOnly
public @interface ThreadUnsafe {
/**
* 可以有一些说明之类的东西。
*/
String value() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy