From: Roland Haeder Date: Mon, 31 Aug 2015 07:41:13 +0000 (+0200) Subject: @TODO is not valid, only use TODO X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3253eb90031a4b74ac6e2837a1c0af45c3cd470a;p=jaddressbook-lib.git @TODO is not valid, only use TODO Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/addressbook/application/AddressbookApplication.java b/src/org/mxchange/addressbook/application/AddressbookApplication.java index 4dbd1d0d..5a11c898 100644 --- a/src/org/mxchange/addressbook/application/AddressbookApplication.java +++ b/src/org/mxchange/addressbook/application/AddressbookApplication.java @@ -152,7 +152,7 @@ public class AddressbookApplication extends BaseAddressbookSystem implements App // Is the bundle initialized? if (!this.isBundledInitialized()) { // Temporary initialize default bundle - // @TODO The enum Gender uses this + // TODO The enum Gender uses this this.initBundle(); } } @@ -210,7 +210,7 @@ public class AddressbookApplication extends BaseAddressbookSystem implements App // Debug message this.getLogger().trace("CALLED!"); //NOI18N - // @TODO The application should be running now + // TODO The application should be running now // Output introduction this.showIntro(); diff --git a/src/org/mxchange/addressbook/client/BaseAddressbookClient.java b/src/org/mxchange/addressbook/client/BaseAddressbookClient.java index 2f2e2aa2..f14cd81c 100644 --- a/src/org/mxchange/addressbook/client/BaseAddressbookClient.java +++ b/src/org/mxchange/addressbook/client/BaseAddressbookClient.java @@ -117,7 +117,7 @@ public abstract class BaseAddressbookClient extends BaseClient { this.getLogger().debug("Initializing contact manager ..."); //NOI18N // Init contact manager with console client - // @TODO Static initial amount of contacts + // TODO Static initial amount of contacts ManageableDatabase manager = new AddressbookContactManager((Client) this); // Set it here @@ -144,7 +144,7 @@ public abstract class BaseAddressbookClient extends BaseClient { // Is the menu set? if (!(menu instanceof Menu)) { // Not found - // @todo Own exception? + // TODO Own exception? throw new NullPointerException(MessageFormat.format("Menu '{0}' not found.", menuType)); //NOI18N } diff --git a/src/org/mxchange/addressbook/client/console/ConsoleClient.java b/src/org/mxchange/addressbook/client/console/ConsoleClient.java index 92df18ac..0fbb66bb 100644 --- a/src/org/mxchange/addressbook/client/console/ConsoleClient.java +++ b/src/org/mxchange/addressbook/client/console/ConsoleClient.java @@ -120,7 +120,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC // If it is empty/null, then assume private contact if ((null == companyName) || (companyName.isEmpty())) { // Now put all together: gender, surname, family name - // @todo Use mask + // TODO Use mask this.outputMessage(MessageFormat.format("Anrede, Vorname, Name: {0} {1} {2}", gender, contact.getFirstName(), contact.getFamilyName())); } else { // Company contact @@ -325,7 +325,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC // Parent call super.doShutdown(); - // @TODO Add other shutdown stuff + // TODO Add other shutdown stuff // Trace message this.getLogger().trace("EXIT!"); //NOI18N @@ -347,7 +347,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC // Try it! try { - // @TODO Rewrite this ugly switch() block + // TODO Rewrite this ugly switch() block switch (choice) { case '1': try { @@ -393,7 +393,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC break; default: - // @TODO throw own exception + // TODO throw own exception throw new UnhandledUserChoiceException(MessageFormat.format("Choice '{0}' not handled yet.", choice)); //NOI18N } } catch (final IOException | BadTokenException | CorruptedDatabaseFileException | SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) { @@ -556,7 +556,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC * @param accessKey Key to access the menu * @param text Text to show to user * @return A SelectableMenuItem - * @todo Make sure the access key is unique + * TODO Make sure the access key is unique */ @Override public SelectableMenuItem getMenuItem (final char accessKey, final String text) { @@ -646,7 +646,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC // Get manager and cast it ManageableAddressbookContact manager = (ManageableAddressbookContact) this.getManager(); - // @TODO Get rid of this ugly switch block, too + // TODO Get rid of this ugly switch block, too switch (choice) { case 'n': // Name data manager.doChangeNameData(contact); @@ -665,7 +665,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC break; default: - // @TODO throw own exception + // TODO throw own exception throw new UnhandledUserChoiceException(MessageFormat.format("Choice '{0}' not handled yet.", choice)); //NOI18N } diff --git a/src/org/mxchange/addressbook/client/gui/AddressbookFrame.java b/src/org/mxchange/addressbook/client/gui/AddressbookFrame.java index 89b8df2c..c1f98747 100644 --- a/src/org/mxchange/addressbook/client/gui/AddressbookFrame.java +++ b/src/org/mxchange/addressbook/client/gui/AddressbookFrame.java @@ -456,7 +456,7 @@ public class AddressbookFrame extends BaseAddressbookSystem implements ClientFra * Add listener which asks for confirmation, if data has been entered * but not saved yet. The user may appriciate this ... ;-) * - * @TODO Unfinished + * TODO Unfinished */ this.addContact.addWindowListener(new WindowAdapter() { /** @@ -679,11 +679,11 @@ public class AddressbookFrame extends BaseAddressbookSystem implements ClientFra ((ManageableAddressbookContact) self.getClient().getManager()).doEnterOwnData(); } catch (final ContactAlreadyAddedException ex) { // Already added, log away - // @TODO maybe output message here? + // TODO maybe output message here? self.logException(ex); } catch (final IOException | BadTokenException ex) { // Somethind bad happened here - // @TODO Output error message here? + // TODO Output error message here? } } }); @@ -785,7 +785,7 @@ public class AddressbookFrame extends BaseAddressbookSystem implements ClientFra * Initializes "other" data panel * * @param dialog A JDialog instance to this components to - * @todo Fill this with life + * TODO Fill this with life */ private void initOtherDataPanel (final JDialog dialog) { // Trace message diff --git a/src/org/mxchange/addressbook/client/gui/SwingClient.java b/src/org/mxchange/addressbook/client/gui/SwingClient.java index 4c7cb13f..afab2fce 100644 --- a/src/org/mxchange/addressbook/client/gui/SwingClient.java +++ b/src/org/mxchange/addressbook/client/gui/SwingClient.java @@ -119,7 +119,7 @@ public class SwingClient extends BaseAddressbookClient implements AddressbookCli // Shutdown frame this.frame.doShutdown(); - // @TODO Add other shutdown stuff + // TODO Add other shutdown stuff // Debug message this.getLogger().trace("EXIT!"); //NOI18N } diff --git a/src/org/mxchange/addressbook/contact/user/UserContact.java b/src/org/mxchange/addressbook/contact/user/UserContact.java index 0b7af77b..eede361b 100644 --- a/src/org/mxchange/addressbook/contact/user/UserContact.java +++ b/src/org/mxchange/addressbook/contact/user/UserContact.java @@ -24,7 +24,7 @@ import org.mxchange.jcore.contact.Gender; /** * * @author Roland Haeder - * @todo After a Collection has been used in ContactManager, change to + * TODO After a Collection has been used in ContactManager, change to * BaseContact */ public class UserContact extends BookContact implements Contact { @@ -36,7 +36,7 @@ public class UserContact extends BookContact implements Contact { * @param firstName First name to be set * @param familyName Family name to be set * @param companyName Company name - * @todo Add validation of data + * TODO Add validation of data */ public UserContact (final Gender gender, final String firstName, final String familyName, final String companyName) { // Make sure all constructors are called diff --git a/src/org/mxchange/addressbook/database/frontend/contact/AddressbookContactDatabaseFrontend.java b/src/org/mxchange/addressbook/database/frontend/contact/AddressbookContactDatabaseFrontend.java index 55fa8586..24a0cf8d 100644 --- a/src/org/mxchange/addressbook/database/frontend/contact/AddressbookContactDatabaseFrontend.java +++ b/src/org/mxchange/addressbook/database/frontend/contact/AddressbookContactDatabaseFrontend.java @@ -117,7 +117,7 @@ public class AddressbookContactDatabaseFrontend extends BaseDatabaseFrontend imp } // Then add it - // @todo Nothing is done yet! + // TODO Nothing is done yet! Result result = this.doInsertDataSet(); // Debug message diff --git a/src/org/mxchange/addressbook/manager/contact/AddressbookContactManager.java b/src/org/mxchange/addressbook/manager/contact/AddressbookContactManager.java index 20e7b9c8..405aa2ec 100644 --- a/src/org/mxchange/addressbook/manager/contact/AddressbookContactManager.java +++ b/src/org/mxchange/addressbook/manager/contact/AddressbookContactManager.java @@ -206,7 +206,7 @@ public class AddressbookContactManager extends BaseManager implements Manageable * Let the user change other data * * @param contact Instance to change data - * @todo Didn't handle birthday + * TODO Didn't handle birthday */ @Override public void doChangeOtherData (final Contact contact) { @@ -669,7 +669,7 @@ public class AddressbookContactManager extends BaseManager implements Manageable * Adds given contact to address book and flushes all entries to database * * @param contact Contact being added - * @todo Add check for book size + * TODO Add check for book size */ @Override public void registerContact (final Contact contact) { @@ -688,10 +688,10 @@ public class AddressbookContactManager extends BaseManager implements Manageable // Check if contact is found if (((AddressbookContactFrontend) this.getFrontend()).isContactFound(contact)) { // Contact already added - // @todo Do something here + // TODO Do something here } else if ((contact.isOwnContact()) && (this.isOwnContactAdded())) { // Own contact already added - // @todo Do something + // TODO Do something } // Add contact to internal list diff --git a/src/org/mxchange/addressbook/manager/contact/ManageableAddressbookContact.java b/src/org/mxchange/addressbook/manager/contact/ManageableAddressbookContact.java index 6a9bb1e8..ee12842f 100644 --- a/src/org/mxchange/addressbook/manager/contact/ManageableAddressbookContact.java +++ b/src/org/mxchange/addressbook/manager/contact/ManageableAddressbookContact.java @@ -131,7 +131,7 @@ public interface ManageableAddressbookContact extends ManageableDatabase { * Adds given contact to address book * * @param contact Contact being added - * @todo Add check for book size + * TODO Add check for book size */ public void registerContact (final Contact contact); diff --git a/src/org/mxchange/addressbook/menu/Menu.java b/src/org/mxchange/addressbook/menu/Menu.java index 78a5fb17..6fe3c6a2 100644 --- a/src/org/mxchange/addressbook/menu/Menu.java +++ b/src/org/mxchange/addressbook/menu/Menu.java @@ -23,7 +23,7 @@ import org.mxchange.jcore.client.Client; /** * * @author Roland Haeder - * @todo find better name + * TODO find better name */ public interface Menu { diff --git a/src/org/mxchange/addressbook/menu/MenuTools.java b/src/org/mxchange/addressbook/menu/MenuTools.java index 30d81642..d5f46952 100644 --- a/src/org/mxchange/addressbook/menu/MenuTools.java +++ b/src/org/mxchange/addressbook/menu/MenuTools.java @@ -46,7 +46,7 @@ public class MenuTools extends BaseAddressbookSystem { // Is it there? if (!(menu instanceof Menu)) { // Not found - // @todo Rewrite to exception + // TODO Rewrite to exception logger.error("Menu '" + menuType + "' not found."); System.exit(1); }