Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-01-10 23:48:36 -0500
committerspingel2010-01-10 23:48:36 -0500
commit577f849ce4af4c3d6855310e52e43468bdcc10e8 (patch)
treece605d6ddfbd2c65bb5e9b21ef22e32686ef67df /org.eclipse.mylyn.tasks.core
parentd08e5656b504c0f5cd322f341767e570439ad477 (diff)
downloadorg.eclipse.mylyn.tasks-577f849ce4af4c3d6855310e52e43468bdcc10e8.tar.gz
org.eclipse.mylyn.tasks-577f849ce4af4c3d6855310e52e43468bdcc10e8.tar.xz
org.eclipse.mylyn.tasks-577f849ce4af4c3d6855310e52e43468bdcc10e8.zip
REOPENED - bug 296894: [releng] fix failing tests for 3.4
https://bugs.eclipse.org/bugs/show_bug.cgi?id=296894
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java
index d1c7f535a..259ee8ede 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java
@@ -290,7 +290,7 @@ public final class TaskRepository extends PlatformObject {
}
}
- @SuppressWarnings( { "unchecked" })
+ @SuppressWarnings({ "unchecked" })
private Map<String, String> getAuthInfo() {
synchronized (LOCK) {
if (Platform.isRunning()) {
@@ -340,10 +340,12 @@ public final class TaskRepository extends PlatformObject {
setProperty(getKeyPrefix(AuthenticationType.PROXY) + ENABLED, null);
setProperty(getKeyPrefix(AuthenticationType.REPOSITORY) + ENABLED, null);
- synchronized (LOCK) {
- isCachedUserName = false;
+ synchronized (this) {
transientProperties.clear();
+ isCachedUserName = false;
+ }
+ synchronized (LOCK) {
if (Platform.isRunning()) {
if (useSecureStorage()) {
if (Platform.isRunning()) {

Back to the top