Fix some issues

This commit is contained in:
Golfing7 2024-03-01 15:07:11 -05:00
parent 07e5a350a9
commit 1ff56ffd1a
3 changed files with 3 additions and 10 deletions

View File

@ -37,14 +37,6 @@
<!-- https://checkstyle.org/config_imports.html#AvoidStarImport -->
<module name="AvoidStarImport"/>
<!-- https://checkstyle.org/config_misc.html#AvoidEscapedUnicodeCharacters -->
<module name="AvoidEscapedUnicodeCharacters">
<property name="allowByTailComment" value="true"/>
<property name="allowEscapesForControlCharacters" value="true"/>
<property name="allowNonPrintableEscapes" value="true"/>
<property name="severity" value="info"/>
</module>
<!-- https://checkstyle.org/config_misc.html#CommentsIndentation -->
<module name="CommentsIndentation"/>

View File

@ -12,6 +12,7 @@ import com.earth2me.essentials.utils.VersionUtil;
import com.google.common.base.Joiner;
import net.ess3.api.IEssentials;
import net.ess3.api.TranslatableException;
import org.bukkit.Bukkit;
import org.bukkit.Color;
import org.bukkit.DyeColor;
import org.bukkit.FireworkEffect;
@ -357,7 +358,7 @@ public class MetaItemStack {
}
private void transformItem(String key, String data){
PluginItemTransformer transformer = itemTransformers.get(key);
final PluginItemTransformer transformer = itemTransformers.get(key);
//Ignore, the plugin is disabled.
if(!transformer.getPlugin().isEnabled())

View File

@ -13,7 +13,7 @@ public final class StringUtil {
private static final Pattern INVALIDFILECHARS = Pattern.compile("[^a-z0-9-]");
private static final Pattern STRICTINVALIDCHARS = Pattern.compile("[^a-z0-9]");
@SuppressWarnings("CheckStyle")
private static final Pattern INVALIDCHARS = Pattern.compile("[^\t\n\r\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFC]");
private static final Pattern INVALIDCHARS = Pattern.compile("[^\t\n\r -~\u0085\u00A0-\uD7FF\uE000-\uFFFC]");
private StringUtil() {
}