Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-06-05 01:09:47 -0400
committerspingel2010-06-05 01:09:47 -0400
commit21abf9fdd65afcabb35303a6796382cceb5d42c6 (patch)
treea22c178143fb8fd66c27a7b4b17ad7479f9f541d
parentc36194c3f0b1c32a84793d845bee91d465bf2464 (diff)
downloadorg.eclipse.mylyn.tasks-21abf9fdd65afcabb35303a6796382cceb5d42c6.tar.gz
org.eclipse.mylyn.tasks-21abf9fdd65afcabb35303a6796382cceb5d42c6.tar.xz
org.eclipse.mylyn.tasks-21abf9fdd65afcabb35303a6796382cceb5d42c6.zip
RESOLVED - bug 315513: [performance] reduce memory footprint
https://bugs.eclipse.org/bugs/show_bug.cgi?id=315513
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/AbstractTask.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/AbstractTask.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/AbstractTask.java
index d0f0bd38d..bc2f2d9fe 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/AbstractTask.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/AbstractTask.java
@@ -126,7 +126,7 @@ public abstract class AbstractTask extends AbstractTaskContainer implements ITas
@Deprecated
public void setLastReadTimeStamp(String lastReadTimeStamp) {
- this.lastReadTimeStamp = lastReadTimeStamp.intern();
+ this.lastReadTimeStamp = (lastReadTimeStamp != null) ? lastReadTimeStamp.intern() : null;
}
/**
@@ -167,7 +167,7 @@ public abstract class AbstractTask extends AbstractTaskContainer implements ITas
public void setOwner(String owner) {
if (!areEqual(this.owner, owner)) {
String oldValue = this.owner;
- this.owner = owner.intern();
+ this.owner = (owner != null) ? owner.intern() : null;
firePropertyChange("owner", oldValue, owner); //$NON-NLS-1$
}
}
@@ -197,7 +197,7 @@ public abstract class AbstractTask extends AbstractTaskContainer implements ITas
}
public final void setRepositoryUrl(String repositoryUrl) {
- this.repositoryUrl = repositoryUrl.intern();
+ this.repositoryUrl = (repositoryUrl != null) ? repositoryUrl.intern() : null;
super.setHandleIdentifier(RepositoryTaskHandleUtil.getHandle(repositoryUrl, taskId));
}
@@ -270,7 +270,7 @@ public abstract class AbstractTask extends AbstractTaskContainer implements ITas
public void setPriority(String priority) {
if (!areEqual(this.priority, priority)) {
String oldValue = this.priority;
- this.priority = priority.intern();
+ this.priority = (priority != null) ? priority.intern() : null;
firePropertyChange("priority", oldValue, priority); //$NON-NLS-1$
}
}
@@ -413,7 +413,7 @@ public abstract class AbstractTask extends AbstractTaskContainer implements ITas
public void setTaskKind(String taskKind) {
if (!areEqual(this.taskKind, taskKind)) {
String oldValue = this.taskKind;
- this.taskKind = taskKind.intern();
+ this.taskKind = (taskKind != null) ? taskKind.intern() : null;
firePropertyChange("taskKind", oldValue, taskKind); //$NON-NLS-1$
}
}

Back to the top