Checking String for emptiness with .lenght() is preferable since 1.6

This commit is contained in:
vraskulin 2017-02-28 11:46:51 +03:00
parent ad7d3c8078
commit 04973ea5aa
4 changed files with 5 additions and 5 deletions

View file

@ -636,7 +636,7 @@ public class TablesPanel extends javax.swing.JPanel {
List<RowFilter<Object, Object>> ignoreListFilterList = new ArrayList<>();
String serverAddress = SessionHandler.getSession().getServerHostname().orElseGet(() -> "");
final Set<String> ignoreListCopy = IgnoreList.ignoreList(serverAddress);
if (ignoreListCopy.size() > 0) {
if (!ignoreListCopy.isEmpty()) {
ignoreListFilterList.add(new RowFilter<Object, Object>() {
@Override
public boolean include(Entry<? extends Object, ? extends Object> entry) {