View Javadoc
1   /*
2    * Copyright 2020-2022 The OSHI Project Contributors
3    * SPDX-License-Identifier: MIT
4    */
5   package oshi.annotation.concurrent;
6   
7   import java.lang.annotation.Documented;
8   
9   /**
10   * The presence of this annotation indicates that the author believes the class to be thread-safe. As such, there should
11   * be no sequence of accessing the public methods or fields that could put an instance of this class into an invalid
12   * state, irrespective of any rearrangement of those operations by the Java Runtime and without introducing any
13   * requirements for synchronization or coordination by the caller/accessor.
14   * <p>
15   * This annotation is intended for internal use in OSHI as a temporary workaround until it is available in
16   * {@code jakarta.annotations}.
17   */
18  @Documented
19  public @interface ThreadSafe {
20  }