From e54cae33f1e0aec92e4fd5acc3a196a363398c1c Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Fri, 10 Jun 2022 23:34:05 +0200 Subject: [PATCH] build: Release 2.3.0 --- build.gradle.kts | 4 ++-- .../core/concurrent/ReentrantWrappedStampedLock.java | 8 ++++---- .../core/extent/clipboard/DiskOptimizedClipboard.java | 2 +- .../core/extent/filter/block/ArrayFilterBlock.java | 2 +- .../exception/FaweClipboardVersionMismatchException.java | 8 ++++---- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 683fa808d..e2d93e181 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -22,7 +22,7 @@ logger.lifecycle(""" ******************************************* """) -var rootVersion by extra("2.2.1") +var rootVersion by extra("2.3.0") var snapshot by extra("SNAPSHOT") var revision: String by extra("") var buildNumber by extra("") @@ -40,7 +40,7 @@ ext { } } -version = String.format("%s-%s", rootVersion, buildNumber) +version = String.format("%s", rootVersion) if (!project.hasProperty("gitCommitHash")) { apply(plugin = "org.ajoberstar.grgit") diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/concurrent/ReentrantWrappedStampedLock.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/concurrent/ReentrantWrappedStampedLock.java index a582a3981..b8e726620 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/concurrent/ReentrantWrappedStampedLock.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/concurrent/ReentrantWrappedStampedLock.java @@ -10,7 +10,7 @@ import java.util.concurrent.locks.StampedLock; /** * Allows for reentrant behaviour of a wrapped {@link StampedLock}. Will not count the number of times it is re-entered. * - * @since TODO + * @since 2.3.0 */ public class ReentrantWrappedStampedLock implements Lock { @@ -84,7 +84,7 @@ public class ReentrantWrappedStampedLock implements Lock { * * @return lock stam[ or 0 if not locked. * @throws IllegalCallerException if the {@link StampedLock} is write-locked and the calling thread is not the lock owner - * @since TODO + * @since 2.3.0 */ public long getStampChecked() { if (stamp != 0 && owner != Thread.currentThread()) { @@ -98,7 +98,7 @@ public class ReentrantWrappedStampedLock implements Lock { * * @param stamp Stamp to unlock with * @throws IllegalMonitorStateException if the given stamp does not match the lock's stamp - * @since TODO + * @since 2.3.0 */ public void unlock(final long stamp) { parent.unlockWrite(stamp); @@ -110,7 +110,7 @@ public class ReentrantWrappedStampedLock implements Lock { * Returns true if the lock is currently held. * * @return true if the lock is currently held. - * @since TODO + * @since 2.3.0 */ public boolean isLocked() { return owner == null && this.stamp == 0 && parent.isWriteLocked(); // Be verbose diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/DiskOptimizedClipboard.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/DiskOptimizedClipboard.java index 80c49754c..f13049801 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/DiskOptimizedClipboard.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/DiskOptimizedClipboard.java @@ -97,7 +97,7 @@ public class DiskOptimizedClipboard extends LinearClipboard { * {@link DiskOptimizedClipboard#DiskOptimizedClipboard(BlockVector3, File)} to avoid creating a large number of clipboard * files that won't be cleaned until `clipboard.delete-after-days` and a server restart. */ - @Deprecated(forRemoval = true, since = "TODO") + @Deprecated(forRemoval = true, since = "2.3.0") public DiskOptimizedClipboard(BlockVector3 dimensions) { this( dimensions, diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/filter/block/ArrayFilterBlock.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/filter/block/ArrayFilterBlock.java index ffc7dc499..4f73d5fa3 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/filter/block/ArrayFilterBlock.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/filter/block/ArrayFilterBlock.java @@ -14,7 +14,7 @@ import javax.annotation.Nullable; /** * @deprecated Unused internally */ -@Deprecated(forRemoval = true, since = "TODO") +@Deprecated(forRemoval = true, since = "2.3.0") public class ArrayFilterBlock extends AbstractExtentFilterBlock { private final char[] blocks; diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/internal/exception/FaweClipboardVersionMismatchException.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/internal/exception/FaweClipboardVersionMismatchException.java index a23db252d..b469f4b0e 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/internal/exception/FaweClipboardVersionMismatchException.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/internal/exception/FaweClipboardVersionMismatchException.java @@ -15,7 +15,7 @@ public class FaweClipboardVersionMismatchException extends FaweException { /** * @deprecated Use {@link FaweClipboardVersionMismatchException#FaweClipboardVersionMismatchException(int, int)} */ - @Deprecated(forRemoval = true, since = "TODO") + @Deprecated(forRemoval = true, since = "2.3.0") public FaweClipboardVersionMismatchException() { this(DiskOptimizedClipboard.VERSION, -1); } @@ -25,7 +25,7 @@ public class FaweClipboardVersionMismatchException extends FaweException { * * @param version version of clipboard attempting to be loaded * @param expected expected version of clipboard - * @since TODO + * @since 2.3.0 */ public FaweClipboardVersionMismatchException(int expected, int version) { super( @@ -44,7 +44,7 @@ public class FaweClipboardVersionMismatchException extends FaweException { /** * Get the version specified in the clipboard attempting to be loaded. * - * @since TODO + * @since 2.3.0 */ public int getClipboardVersion() { return version; @@ -53,7 +53,7 @@ public class FaweClipboardVersionMismatchException extends FaweException { /** * Get the version that was expected of the clipboard * - * @since TODO + * @since 2.3.0 */ public int getExpectedVersion() { return expected;