Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Matela2015-04-29 08:10:47 +0000
committerJayaprakash Arthanareeswaran2015-04-29 08:10:47 +0000
commit871cac4ba4cecfc6322ce0af5777177652a514a9 (patch)
treeecb9bde48621e957e0ae15c95d476a62ece7f27d /org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java
parentbb7b9521196186c5be108c1f350a453c12233137 (diff)
downloadeclipse.jdt.core-871cac4ba4cecfc6322ce0af5777177652a514a9.tar.gz
eclipse.jdt.core-871cac4ba4cecfc6322ce0af5777177652a514a9.tar.xz
eclipse.jdt.core-871cac4ba4cecfc6322ce0af5777177652a514a9.zip
Change-Id: Ie6e26a4d13399b27584635d7293c8510e58c7ec2 Signed-off-by: Mateusz Matela <mateusz.matela@gmail.com>
Diffstat (limited to 'org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java')
-rw-r--r--org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java b/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java
index 7cceb885df..f7a3580824 100644
--- a/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java
+++ b/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java
@@ -11,6 +11,7 @@
* bug 404146 - [1.7][compiler] nested try-catch-finally-blocks leads to unrunnable Java byte code
* Harry Terkelsen (het@google.com) - Bug 449262 - Allow the use of third-party Java formatters
* Mateusz Matela <mateusz.matela@gmail.com> - [formatter] Formatter does not format Java code correctly, especially when max line width is set - https://bugs.eclipse.org/303519
+ * Mateusz Matela <mateusz.matela@gmail.com> - [formatter] follow up bug for comments - https://bugs.eclipse.org/458208
*******************************************************************************/
package org.eclipse.jdt.internal.formatter;
@@ -369,7 +370,7 @@ public class DefaultCodeFormatter extends CodeFormatter {
private void prepareWraps(int kind) {
WrapPreparator wrapPreparator = new WrapPreparator(this.tokenManager, this.workingOptions, kind);
this.astRoot.accept(wrapPreparator);
- wrapPreparator.finishUp();
+ wrapPreparator.finishUp(this.astRoot);
}
/**

Back to the top