QDox
  1. QDox
  2. QDOX-171

AbstractJavaEntity#getCodeBlock() skips Javadoc separator

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.1, 1.9.2
    • Fix Version/s: 1.10
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      1

      Activity

      Hide
      Vincent Siveton added a comment -

      The getCodeBlock() removes Javadoc separator i.e. "spacestarspace"

      Here is a small sample:

          /**
           * bla
           *
           * bla
           *
           * bla
           *
           *
           * @param s a string
           * @return a string
           * @throws Exception
           */
          public String myMethod( String s )
              throws Exception
          {
              return null;
          }
      

      The result is the following:

      /**
       * bla
      
      bla
      
      bla
       *
       * @param s a string
       * @return a string
       * @throws Exception
       */
      public java.lang.String myMethod(java.lang.String s) throws java.lang.Exception {
      
              return null;
          }
      
      Show
      Vincent Siveton added a comment - The getCodeBlock() removes Javadoc separator i.e. "spacestarspace" Here is a small sample: /** * bla * * bla * * bla * * * @param s a string * @return a string * @throws Exception */ public String myMethod( String s ) throws Exception { return null; } The result is the following: /** * bla bla bla * * @param s a string * @return a string * @throws Exception */ public java.lang.String myMethod(java.lang.String s) throws java.lang.Exception { return null; }
      Vincent Siveton made changes -
      Field Original Value New Value
      Attachment TestQDOX171.java [ 43102 ]
      Hide
      Robert Scholte added a comment -

      When building the comments, all "\n" will be replaced by "\n * ". I've added a test as well, so I guess this should be enough, right?

      Show
      Robert Scholte added a comment - When building the comments, all "\n" will be replaced by "\n * ". I've added a test as well, so I guess this should be enough, right?
      Robert Scholte made changes -
      Status Open [ 1 ] Resolved [ 5 ]
      Fix Version/s 1.10 [ 15020 ]
      Assignee Robert Scholte [ rfscholte ]
      Resolution Fixed [ 1 ]
      Hide
      Vincent Siveton added a comment -

      ok for the javadoc separator
      What about the indentation?

      Show
      Vincent Siveton added a comment - ok for the javadoc separator What about the indentation?

        People

        • Assignee:
          Robert Scholte
          Reporter:
          Vincent Siveton
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: