]> git.mxchange.org Git - addressbook-swing.git/commitdiff
Now much easier to handle
authorRoland Haeder <roland@mxchange.org>
Mon, 27 Jul 2015 10:57:40 +0000 (12:57 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 27 Jul 2015 10:57:40 +0000 (12:57 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

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

index 3abb9da8c3a6511a4795d3bb1bfc87baa45b1d21..c5f41e0204a90055b1c426a076c2a3188ee4f858 100644 (file)
@@ -336,8 +336,7 @@ public class CsvDatabaseBackend extends BaseDatabaseBackend implements CsvBacken
                                // Now, let's try a boolean check, if no null
                                if ((strippedToken != null) && (num == null) && (bool == null) && ((strippedToken.equals("M")) || (strippedToken.equals("F")) || (strippedToken.equals("C")))) {
                                        // Get first character
-                                       //gender = strippedToken.charAt(0);
-                                       throw new UnsupportedOperationException("Gender dection is unifnished!");
+                                       gender = Gender.fromChar(strippedToken.charAt(0));
                                }
 
                                // Now it depends on the counter which position we need to check