From 287aa9dd8b71036fd817e76e9206fac26de03dd2 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Thu, 28 Jan 2021 14:23:00 +0000 Subject: [PATCH] Remove bad default copy method in AbstractMask --- .../worldedit/function/mask/AbstractMask.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/function/mask/AbstractMask.java b/worldedit-core/src/main/java/com/sk89q/worldedit/function/mask/AbstractMask.java index ee4ec6960..d22257c16 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/function/mask/AbstractMask.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/function/mask/AbstractMask.java @@ -19,21 +19,7 @@ package com.sk89q.worldedit.function.mask; -import org.jetbrains.annotations.Nullable; - /** * A base class of {@link Mask} that all masks should inherit from. */ -public abstract class AbstractMask implements Mask { - - @Override - @Nullable - public Mask copy() { - try { - return (Mask) super.clone(); - } catch (CloneNotSupportedException e) { - return null; - } - } - -} +public abstract class AbstractMask implements Mask {}