diff options
author | Lars Vogel | 2021-02-03 10:22:20 +0000 |
---|---|---|
committer | Lars Vogel | 2021-02-03 10:22:20 +0000 |
commit | d8e056ddd680917bc58c8616e877aabe1fa63e35 (patch) | |
tree | acac56f4d5ec1faa7cb771fb03a865b7590dd128 | |
parent | 7a5be6b73ed0e729d3387e8bfd93ddf55d896d96 (diff) | |
download | eclipse.platform.text-d8e056ddd680917bc58c8616e877aabe1fa63e35.tar.gz eclipse.platform.text-d8e056ddd680917bc58c8616e877aabe1fa63e35.tar.xz eclipse.platform.text-d8e056ddd680917bc58c8616e877aabe1fa63e35.zip |
Field fPreservedRedoModificationStamp can be a local variable inY20210205-1200I20210206-0050I20210205-1800I20210204-2320I20210204-1800I20210204-1430I20210204-1300I20210204-1100I20210204-0900
DocumentUndoManager
Done during testing of JDT clean-up actions for "Convert fields into
local variables if the use is only local"
Change-Id: I11b17cffe370909f2b9caffc317a660c6fe444cd
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r-- | org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java b/org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java index 2e803c272a8..4aa59f9b860 100644 --- a/org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java +++ b/org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java @@ -606,7 +606,7 @@ public class DocumentUndoManager implements IDocumentUndoManager { @Override public void documentChanged(DocumentEvent event) { - fPreservedRedoModificationStamp= event.getModificationStamp(); + long fPreservedRedoModificationStamp= event.getModificationStamp(); // record the current valid state for the top operation in case it // remains the @@ -741,11 +741,6 @@ public class DocumentUndoManager implements IDocumentUndoManager { private UndoableTextChange fLastAddedTextEdit= null; /** - * The document modification stamp for redo. - */ - private long fPreservedRedoModificationStamp= IDocumentExtension4.UNKNOWN_MODIFICATION_STAMP; - - /** * Text buffer to collect viewer content which has been replaced */ private StringBuilder fPreservedTextBuffer; |