Summary: | Add Javadoc comment broken | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Dani Megert <daniel_megert> |
Component: | UI | Assignee: | Dani Megert <daniel_megert> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | P3 | CC: | paul.raby |
Version: | 2.0 | ||
Target Milestone: | 2.0 F3 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Dani Megert
2002-06-05 11:21:22 EDT
need to investigate fixed reveal problem > 20020607, reviewed by EG empty line comes from the code formatter move to JCore Pls investigate The problem comes from the method: org.eclipse.jdt.internal.corext.codemanipulation.StubUtility.codeFormat: Replace it with the following code and the empty line disappears. [public static String codeFormat(String sourceString, int initialIndentationLevel, String lineDelim) { ICodeFormatter formatter= ToolFactory.createDefaultCodeFormatter(null); return formatter.format(sourceString, initialIndentationLevel, null, lineDelim); }] The code formatter is not loosing anymore the last line delimiter, but this method always adds a line delimiter. Therefore we ended up with an extra blank line. (See bug 12159 for further details about this line delimiter at the end of the formatted source). Fix available in builds > 20020611 Reviewed by Dirk Bäumer Verified on F3 |