commit | 0fa439b2ed9e74421fb8bf3f2c23be2dad2d10cf | [log] [tgz] |
---|---|---|
author | Carsten Hammer <carsten.hammer@t-online.de> | Fri Jan 22 22:01:51 2021 +0100 |
committer | Jeff Johnston <jjohnstn@redhat.com> | Thu Mar 18 17:39:38 2021 -0400 |
tree | 486681749495d54ca71fc9e5bae4d38aa8752a55 | |
parent | ac631da2bb5fa30712d3ec8f47e433ab0a87e50b [diff] |
Bug 570587 - Increase performance of refactorings Unnecessary loss of performance caused by Bug 436581. With change https://git.eclipse.org/r/c/equinox/rt.equinox.bundles/+/175187 there is another option available how to fix this. Change-Id: I66d75c4d516447735a05d76ef16b7edd5c4b6566 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
diff --git a/org.eclipse.jdt.core.manipulation/refactoring/org/eclipse/jdt/core/refactoring/CompilationUnitChange.java b/org.eclipse.jdt.core.manipulation/refactoring/org/eclipse/jdt/core/refactoring/CompilationUnitChange.java index 78bb13d..604e31b 100644 --- a/org.eclipse.jdt.core.manipulation/refactoring/org/eclipse/jdt/core/refactoring/CompilationUnitChange.java +++ b/org.eclipse.jdt.core.manipulation/refactoring/org/eclipse/jdt/core/refactoring/CompilationUnitChange.java
@@ -81,7 +81,7 @@ protected IDocument acquireDocument(IProgressMonitor pm) throws CoreException { SubMonitor subMonitor= SubMonitor.convert(pm, 2); fCUnit.becomeWorkingCopy(subMonitor.split(1)); - Assert.isTrue(fCUnit.isWorkingCopy(), fCUnit.toString()); + Assert.isTrue(fCUnit.isWorkingCopy(), !fCUnit.isWorkingCopy()?fCUnit.toString():""); //$NON-NLS-1$ return super.acquireDocument(subMonitor.split(1)); }