]> git.mxchange.org Git - jaddressbook-lib.git/blobdiff - src/org/mxchange/addressbook/menu/item/console/ConsoleMenuItem.java
Prepared for upcoming rewrite:
[jaddressbook-lib.git] / src / org / mxchange / addressbook / menu / item / console / ConsoleMenuItem.java
index 1090a63f6c84bb9883f6e15ebb146e186dfa2291..fd008a9bb0c1864fc595fa1a41bf66db3ce05159 100644 (file)
@@ -40,7 +40,7 @@ public class ConsoleMenuItem extends BaseMenuItem implements SelectableMenuItem
 
        /**
         * Constructor for building a console menu with access key and text
-        *
+        * <p>
         * @param accessKey Access key for this menu entry
         * @param text Text to show to user
         */
@@ -51,7 +51,7 @@ public class ConsoleMenuItem extends BaseMenuItem implements SelectableMenuItem
 
        /**
         * Access key
-        *
+        * <p>
         * @return the accessKey
         */
        @Override
@@ -61,7 +61,7 @@ public class ConsoleMenuItem extends BaseMenuItem implements SelectableMenuItem
 
        /**
         * Access key
-        *
+        * <p>
         * @param accessKey the accessKey to set
         */
        private void setAccessKey (char accessKey) {
@@ -70,7 +70,7 @@ public class ConsoleMenuItem extends BaseMenuItem implements SelectableMenuItem
 
        /**
         * Text to user
-        *
+        * <p>
         * @return the text
         */
        @Override
@@ -80,7 +80,7 @@ public class ConsoleMenuItem extends BaseMenuItem implements SelectableMenuItem
 
        /**
         * Text to user
-        *
+        * <p>
         * @param text the text to set
         */
        private void setText (String text) {
@@ -90,10 +90,10 @@ public class ConsoleMenuItem extends BaseMenuItem implements SelectableMenuItem
        @Override
        public void show (final Client client) {
                // Trace message
-               this.getLogger().trace(MessageFormat.format("client={0} - CALLED!", client)); //NOI18N
+               this.getLogger().logTrace(MessageFormat.format("client={0} - CALLED!", client)); //NOI18N
 
                // Client must not be null
-               if (client == null) {
+               if (null == client) {
                        // Abort here
                        throw new NullPointerException("client is null");
                } else if (!(client instanceof AddressbookClient)) {
@@ -108,7 +108,7 @@ public class ConsoleMenuItem extends BaseMenuItem implements SelectableMenuItem
                c.showEntry(this);
 
                // Trace message
-               this.getLogger().trace("EXIT!"); //NOI18N
+               this.getLogger().logTrace("EXIT!"); //NOI18N
        }
 
 }