Community
Participate
Working Groups
The formatter only recognizes "pre" and not other capatilization like "Pre" or "PRE". If... /** * <pre> * public Object[] getChildren(Object parentElement) { * if (parentElement instanceof MovingBox) { * MovingBox box = (MovingBox) parentElement; * return concat(box.getBoxes().toArray(), box.getBooks().toArray(), box * .getGames().toArray()); * } * return EMPTY_ARRAY; * } * </pre> */ ...is changed into... /** * <Pre> * public Object[] getChildren(Object parentElement) { * if (parentElement instanceof MovingBox) { * MovingBox box = (MovingBox) parentElement; * return concat(box.getBoxes().toArray(), box.getBooks().toArray(), box * .getGames().toArray()); * } * return EMPTY_ARRAY; * } * </pre> */ The formatter turns it into: /** * <Pre> * * public Object[] getChildren(Object parentElement) { if (parentElement * instanceof MovingBox) { MovingBox box = (MovingBox) parentElement; return * concat(box.getBoxes().toArray(), box.getBooks().toArray(), box * .getGames().toArray()); } return EMPTY_ARRAY; } * * </pre> */
Ownership changed.
Released for 3.3M6. Regression tests added in org.eclipse.jdt.core.tests.formatter.comment.JavaDocTestCase #testMultiLineCommentCodeSnippet5/testMultiLineCommentCodeSnippet6
Verified for 3.3 M6 using build I20070320-0010