From: Roland Haeder Date: Mon, 27 Jul 2015 10:57:40 +0000 (+0200) Subject: Now much easier to handle X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=37fbe3d2cef69140391eb47b50b55dcaf6d5c564;p=addressbook-lib.git Now much easier to handle Signed-off-by:Roland Häder --- 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 3abb9da..c5f41e0 100644 --- a/Addressbook/src/org/mxchange/addressbook/database/backend/csv/CsvDatabaseBackend.java +++ b/Addressbook/src/org/mxchange/addressbook/database/backend/csv/CsvDatabaseBackend.java @@ -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