From edfc299af2b7a0d80fb6725563e71240b4543754 Mon Sep 17 00:00:00 2001 From: Armenak Grigoryan Date: Fri, 27 May 2016 11:37:19 +0200 Subject: [PATCH] Use equals() to compare strings instead of '==' or '!='. --- .../com/strider/dataanonymizer/database/metadata/MetaData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/strider/dataanonymizer/database/metadata/MetaData.java b/src/main/java/com/strider/dataanonymizer/database/metadata/MetaData.java index f011e6d4..d7d1b8a6 100644 --- a/src/main/java/com/strider/dataanonymizer/database/metadata/MetaData.java +++ b/src/main/java/com/strider/dataanonymizer/database/metadata/MetaData.java @@ -90,7 +90,7 @@ public List getMetaData() { // Populate list of tables excluded from the analysis List excludeTablesList = new ArrayList<>(); String excludeTables = databaseProperties.getProperty("exclude-tables"); - if (excludeTables != null && excludeTables != "") { + if (excludeTables != null && !"".equals(excludeTables)) { String[] tempArr=excludeTables.split(","); excludeTablesList = Arrays.asList(tempArr); }