mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-29 15:37:59 +01:00
Use StringUtils. Longer method but seemingly better for performance. Though the change is pointlessly irrelevent.
This commit is contained in:
parent
31d7fdad0b
commit
843c8abbba
1 changed files with 2 additions and 3 deletions
|
@ -7,9 +7,8 @@ import java.io.File;
|
||||||
import javax.swing.JFileChooser;
|
import javax.swing.JFileChooser;
|
||||||
import javax.swing.filechooser.FileFilter;
|
import javax.swing.filechooser.FileFilter;
|
||||||
|
|
||||||
import org.apache.logging.log4j.util.Strings;
|
|
||||||
|
|
||||||
import com.voxelmodpack.hdskins.LiteModHDSkins;
|
import com.voxelmodpack.hdskins.LiteModHDSkins;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for "open file" dialog threads
|
* Base class for "open file" dialog threads
|
||||||
|
@ -40,7 +39,7 @@ public abstract class ThreadOpenFile extends Thread {
|
||||||
fileDialog.setDialogTitle(dialogTitle);
|
fileDialog.setDialogTitle(dialogTitle);
|
||||||
|
|
||||||
String last = LiteModHDSkins.instance().lastChosenFile;
|
String last = LiteModHDSkins.instance().lastChosenFile;
|
||||||
if (!Strings.isBlank(last)) {
|
if (!StringUtils.isBlank(last)) {
|
||||||
fileDialog.setSelectedFile(new File(last));
|
fileDialog.setSelectedFile(new File(last));
|
||||||
}
|
}
|
||||||
fileDialog.setFileFilter(getFileFilter());
|
fileDialog.setFileFilter(getFileFilter());
|
||||||
|
|
Loading…
Reference in a new issue