Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2013-04-04 14:18:24 +0000
committerDani Megert2013-04-04 14:18:24 +0000
commita85862630e6f8e05dcb90b7ec5a6c1c8108de73a (patch)
tree34702743e034936d16f650c6ec46af6d3cee52fc
parentf8c10c8bd860e32193fe576f0bcb59ba2a238db9 (diff)
downloadeclipse.platform.text-a85862630e6f8e05dcb90b7ec5a6c1c8108de73a.tar.gz
eclipse.platform.text-a85862630e6f8e05dcb90b7ec5a6c1c8108de73a.tar.xz
eclipse.platform.text-a85862630e6f8e05dcb90b7ec5a6c1c8108de73a.zip
Fixed bug 161737: [quick diff] Show Annotations in QuickDiff ruler is wrong when server revision newer than localI20130409-0900I20130409-0800
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/internal/text/revisions/RevisionPainter.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/revisions/RevisionPainter.java b/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/revisions/RevisionPainter.java
index f7364107b..18d22eb23 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/revisions/RevisionPainter.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/revisions/RevisionPainter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2009 IBM Corporation and others.
+ * Copyright (c) 2006, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -986,7 +986,7 @@ public final class RevisionPainter {
*
* @return the list of all change regions, with diff information applied
*/
- private List getRangeCache() {
+ private synchronized List getRangeCache() {
if (fRevisionRanges == null) {
if (fRevisionInfo == null) {
fRevisionRanges= Collections.EMPTY_LIST;
@@ -1007,7 +1007,7 @@ public final class RevisionPainter {
*
* @since 3.3
*/
- private void clearRangeCache() {
+ private synchronized void clearRangeCache() {
fRevisionRanges= null;
}

Back to the top