Remove P2 apidescription annotation

This commit is contained in:
dordsor21 2022-06-21 12:58:21 +01:00
parent c5073d79e7
commit 8b05738929
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -147,12 +147,13 @@ public enum FaweCache implements Trimable {
* internally-mutable and resettable classes such as {@link com.fastasyncworldedit.core.extent.filter.block.CharFilterBlock}
* from causing issues when used in edits on the main thread.
*
* This method is designed for specific internal use.
*
* @param withInitial The supplier used to determine the initial value if a thread cache is created, else to provide a new
* instance of the class being cached if on the main thread.
* @return a {@link Function} referencing a cache, or the given {@link Supplier}
* @since TODO
*/
@AnnotationHelper.ApiDescription(info = "Designed for specific internal use.")
public <V> LongFunction<V> createMainThreadSafeCache(Supplier<V> withInitial) {
return new LongFunction<>() {
private final LoadingCache<Long, V> loadingCache = Fawe.isMainThread() ? null : FaweCache.INSTANCE.createCache(