From 15bc8210e431a80105f59143aed37cd285214260 Mon Sep 17 00:00:00 2001 From: KLC Date: Wed, 15 Jul 2015 15:27:03 +0200 Subject: [PATCH] =?utf8?q?Updated=20comment=20(minor)=20Signed-off-by:Rola?= =?utf8?q?nd=20H=C3=A4der=20=20Signed-off-by:KLC=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Addressbook/src/org/mxchange/addressbook/client/Client.java | 4 +++- .../mxchange/addressbook/manager/contact/ContactManager.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Addressbook/src/org/mxchange/addressbook/client/Client.java b/Addressbook/src/org/mxchange/addressbook/client/Client.java index ea748a54..4319a599 100644 --- a/Addressbook/src/org/mxchange/addressbook/client/Client.java +++ b/Addressbook/src/org/mxchange/addressbook/client/Client.java @@ -86,7 +86,9 @@ public interface Client extends FrameworkInterface { public char enterChar (final char[] validChars, final String message); /** - * Reads a string of minimum and maximum length from the user + * Reads a string of minimum and maximum length from the user. An empty + * string should be generally not allowed, but might be okay for e.g. + * company name. * * @param minLength Minimum length of the string to read * @param maxLength Maximum length of the string to read diff --git a/Addressbook/src/org/mxchange/addressbook/manager/contact/ContactManager.java b/Addressbook/src/org/mxchange/addressbook/manager/contact/ContactManager.java index befd9a6b..32706909 100644 --- a/Addressbook/src/org/mxchange/addressbook/manager/contact/ContactManager.java +++ b/Addressbook/src/org/mxchange/addressbook/manager/contact/ContactManager.java @@ -277,7 +277,7 @@ public class ContactManager extends BaseManager implements ManageableContact { * @return User's own country code */ private String enterOwnCountryCode () { - return this.getClient().enterString(2, 2, "Bitte geben Sie den zweistelligen Ländercode von Ihrem Land ein: ", false); + return this.getClient().enterString(2, 2, "Bitte geben Sie den zweistelligen Ländercode von Ihrem Land ein: ", false).toUpperCase(); } /** -- 2.39.5