You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2008/09/25 18:52:54 UTC

svn commit: r699018 - in /geronimo/gshell/trunk: gshell-api/src/main/java/org/apache/geronimo/gshell/command/CommandDocumenter.java gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandDocumenterImpl.java

Author: jdillon
Date: Thu Sep 25 09:52:54 2008
New Revision: 699018

URL: http://svn.apache.org/viewvc?rev=699018&view=rev
Log:
Removed getManual() only use renderManual()

Modified:
    geronimo/gshell/trunk/gshell-api/src/main/java/org/apache/geronimo/gshell/command/CommandDocumenter.java
    geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandDocumenterImpl.java

Modified: geronimo/gshell/trunk/gshell-api/src/main/java/org/apache/geronimo/gshell/command/CommandDocumenter.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-api/src/main/java/org/apache/geronimo/gshell/command/CommandDocumenter.java?rev=699018&r1=699017&r2=699018&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-api/src/main/java/org/apache/geronimo/gshell/command/CommandDocumenter.java (original)
+++ geronimo/gshell/trunk/gshell-api/src/main/java/org/apache/geronimo/gshell/command/CommandDocumenter.java Thu Sep 25 09:52:54 2008
@@ -47,13 +47,6 @@
     //
 
     /**
-     * Get the verbose documentation manual for the command.
-     *
-     * @return  The manual of the command.
-     */
-    String getManual();
-
-    /**
      * Render the command-line usage, as expected from <tt>--help</tt>.
      *
      * @param out   Write the usage to this writer.

Modified: geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandDocumenterImpl.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandDocumenterImpl.java?rev=699018&r1=699017&r2=699018&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandDocumenterImpl.java (original)
+++ geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandDocumenterImpl.java Thu Sep 25 09:52:54 2008
@@ -49,8 +49,6 @@
 
     private String description;
 
-    private String manual;
-
     private Renderer renderer = new Renderer();
 
     public String getName() {
@@ -75,15 +73,8 @@
         this.description = description;
     }
 
-    public String getManual() {
-        if (manual == null) {
-            manual = getCommand().getMessages().getMessage("command.manual");
-        }
-        return manual;
-    }
-
-    public void setManual(final String manual) {
-        this.manual = manual;
+    private String getManual() {
+        return getCommand().getMessages().getMessage("command.manual");
     }
 
     //