From 16f90962642a80146c0174ba75a7032f3fc40ebb Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 27 Jul 2015 13:40:10 +0200 Subject: [PATCH] =?utf8?q?Some=20performance=20tuning...=20Signed-off-by:R?= =?utf8?q?oland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../database/backend/csv/CsvDatabaseBackend.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Addressbook/src/org/mxchange/addressbook/database/backend/csv/CsvDatabaseBackend.java b/Addressbook/src/org/mxchange/addressbook/database/backend/csv/CsvDatabaseBackend.java index b109ad4c..b09fe8fe 100644 --- a/Addressbook/src/org/mxchange/addressbook/database/backend/csv/CsvDatabaseBackend.java +++ b/Addressbook/src/org/mxchange/addressbook/database/backend/csv/CsvDatabaseBackend.java @@ -266,10 +266,12 @@ public class CsvDatabaseBackend extends BaseDatabaseBackend implements CsvBacken StringTokenizer tokenizer; String line; - // Init number/string data values + // Init A lot variables Long num = null; Boolean bool = null; Gender gender = null; + int count = 0; + Contact contact = null; // Read all lines while (!this.isEndOfFile()) { @@ -283,11 +285,9 @@ public class CsvDatabaseBackend extends BaseDatabaseBackend implements CsvBacken // @TODO Move this into separate method tokenizer = new StringTokenizer(line, ";"); - // Count round - int count = 0; - - // Init contact object - Contact contact = null; + // Reset variables + count = 0; + contact = null; // The tokens are now available, so get all while (tokenizer.hasMoreElements()) { -- 2.39.5