All Downloads are FREE. Search and download functionalities are using the official Maven repository.

love.forte.simbot.mark.ThreadSafe Maven / Gradle / Ivy

There is a newer version: 3.0.0.preview.0.4
Show newest version
/*
 *
 *  * 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 ThreadSafe { /** * 可以有一些说明之类的东西。 */ String value() default ""; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy