From 37fbe3d2cef69140391eb47b50b55dcaf6d5c564 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 27 Jul 2015 12:57:40 +0200 Subject: [PATCH] =?utf8?q?Now=20much=20easier=20to=20handle=20Signed-off-b?= =?utf8?q?y:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../addressbook/database/backend/csv/CsvDatabaseBackend.java | 3 +-- 1 file changed, 1 insertion(+), 2 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 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 -- 2.39.5