QDox
  1. QDox
  2. QDOX-156

Wrong whitespace in JavaField#getInitializationExpression()

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9.1
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      1

      Activity

      Hide
      Vincent Siveton added a comment -

      Small test case:

          public static final String TEST1 = "test1";
      
          // TODO: blabla
          public static final String TEST2 = "test2";
      
          public static final String TEST3 = "test3"; public static final String TEST4 = "test4";
      

      Result

      TEST1="test1"
      TEST2=
      
          // TODO: blabla
               "test2"
      TEST3=
      
               "test3"
      TEST4=      "test4"
      

      Workaround: using String#trim()

      Show
      Vincent Siveton added a comment - Small test case: public static final String TEST1 = "test1"; // TODO: blabla public static final String TEST2 = "test2"; public static final String TEST3 = "test3"; public static final String TEST4 = "test4"; Result TEST1="test1" TEST2= // TODO: blabla "test2" TEST3= "test3" TEST4= "test4" Workaround: using String#trim()
      Vincent Siveton made changes -
      Field Original Value New Value
      Attachment TestQDOX156.java [ 40801 ]
      Hide
      Robert Scholte added a comment -

      fix for QDOX-157 fixed this issue as well

      Show
      Robert Scholte added a comment - fix for QDOX-157 fixed this issue as well
      Robert Scholte made changes -
      Assignee Robert Scholte [ rfscholte ]
      Status Open [ 1 ] Closed [ 6 ]
      Fix Version/s 1.10 [ 15020 ]
      Resolution Fixed [ 1 ]
      Paul Hammant made changes -
      Resolution Fixed [ 1 ]
      Status Closed [ 6 ] Reopened [ 4 ]
      Paul Hammant made changes -
      Fix Version/s 1.9.1 [ 15252 ]
      Fix Version/s 1.10 [ 15020 ]
      Resolution Fixed [ 1 ]
      Status Reopened [ 4 ] Closed [ 6 ]

        People

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

          Dates

          • Created:
            Updated:
            Resolved: