]> git.mxchange.org Git - jfinancials-swing.git/commitdiff
Some performance tuning...
authorRoland Haeder <roland@mxchange.org>
Mon, 27 Jul 2015 11:40:10 +0000 (13:40 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 27 Jul 2015 11:40:10 +0000 (13:40 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

Addressbook/src/org/mxchange/addressbook/database/backend/csv/CsvDatabaseBackend.java

index b109ad4cea4ec3ae214e81cb293dd66018e9c54d..b09fe8fed8648f6a72e3003497805e2d5007c31c 100644 (file)
@@ -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()) {