From 843c8abbbae17c542c0aeea2911268d0a66dc293 Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 31 Jul 2018 10:26:17 +0200 Subject: [PATCH] Use StringUtils. Longer method but seemingly better for performance. Though the change is pointlessly irrelevent. --- .../com/voxelmodpack/hdskins/upload/awt/ThreadOpenFile.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/upload/awt/ThreadOpenFile.java b/src/hdskins/java/com/voxelmodpack/hdskins/upload/awt/ThreadOpenFile.java index bb2d7492..01e2b175 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/upload/awt/ThreadOpenFile.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/upload/awt/ThreadOpenFile.java @@ -7,9 +7,8 @@ import java.io.File; import javax.swing.JFileChooser; import javax.swing.filechooser.FileFilter; -import org.apache.logging.log4j.util.Strings; - import com.voxelmodpack.hdskins.LiteModHDSkins; +import org.apache.commons.lang3.StringUtils; /** * Base class for "open file" dialog threads @@ -40,7 +39,7 @@ public abstract class ThreadOpenFile extends Thread { fileDialog.setDialogTitle(dialogTitle); String last = LiteModHDSkins.instance().lastChosenFile; - if (!Strings.isBlank(last)) { + if (!StringUtils.isBlank(last)) { fileDialog.setSelectedFile(new File(last)); } fileDialog.setFileFilter(getFileFilter());