diff options
author | Steffen Pingel | 2013-07-05 17:24:33 +0000 |
---|---|---|
committer | Steffen Pingel | 2013-07-12 08:54:44 +0000 |
commit | aed46f10dc9d5f0b55c6872404b8ecf4cb02b1be (patch) | |
tree | 04d5dbd2f7400b0b755f9035bd8690d8f50a601a /org.eclipse.mylyn.tasks.core/src | |
parent | bf84d4172d0336587513377471bb12a86eb9966e (diff) | |
download | org.eclipse.mylyn.tasks-aed46f10dc9d5f0b55c6872404b8ecf4cb02b1be.tar.gz org.eclipse.mylyn.tasks-aed46f10dc9d5f0b55c6872404b8ecf4cb02b1be.tar.xz org.eclipse.mylyn.tasks-aed46f10dc9d5f0b55c6872404b8ecf4cb02b1be.zip |
386764: return null instead of throwing exception for getTaskData()
Change-Id: Iad409821c9fd799e704b831f8006a136724cf144
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=386764
Also-By: Frank Becker <frank@frank-becker.de>
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src')
-rw-r--r-- | org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskInitializationData.java | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskInitializationData.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskInitializationData.java index 6f8e4ea05..39c3f1f51 100644 --- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskInitializationData.java +++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskInitializationData.java @@ -7,6 +7,7 @@ * * Contributors: * Tasktop Technologies - initial API and implementation + * Frank Becker - improvements *******************************************************************************/ package org.eclipse.mylyn.tasks.core; @@ -42,19 +43,19 @@ public class TaskInitializationData implements ITaskMapping { } /** - * Throws {@link UnsupportedOperationException}. + * Returns <code>null</code>. */ @Nullable public List<String> getCc() { - throw new UnsupportedOperationException(); + return null; } /** - * Throws {@link UnsupportedOperationException}. + * Returns <code>null</code>. */ @Nullable public Date getCompletionDate() { - throw new UnsupportedOperationException(); + return null; } @Nullable @@ -63,11 +64,11 @@ public class TaskInitializationData implements ITaskMapping { } /** - * Throws {@link UnsupportedOperationException}. + * Returns <code>null</code>. */ @Nullable public Date getCreationDate() { - throw new UnsupportedOperationException(); + return null; } @Nullable @@ -76,35 +77,36 @@ public class TaskInitializationData implements ITaskMapping { } /** - * Throws {@link UnsupportedOperationException}. + * Returns <code>null</code>. */ @Nullable public Date getDueDate() { - throw new UnsupportedOperationException(); + return null; } /** - * Throws {@link UnsupportedOperationException}. + * Returns <code>null</code>. */ @Nullable public List<String> getKeywords() { - throw new UnsupportedOperationException(); + return null; } /** - * Throws {@link UnsupportedOperationException}. + * Returns <code>null</code>. */ @Nullable public Date getModificationDate() { - throw new UnsupportedOperationException(); + return null; } /** - * Throws {@link UnsupportedOperationException}. + * Returns <code>null</code>. */ @Nullable public String getOwner() { - throw new UnsupportedOperationException(); + return null; + } @Nullable @@ -113,11 +115,11 @@ public class TaskInitializationData implements ITaskMapping { } /** - * Throws {@link UnsupportedOperationException}. + * Returns <code>null</code>. */ @Nullable public PriorityLevel getPriorityLevel() { - throw new UnsupportedOperationException(); + return null; } @Nullable @@ -151,11 +153,11 @@ public class TaskInitializationData implements ITaskMapping { } /** - * Throws {@link UnsupportedOperationException}. + * Returns <code>null</code>. */ @Nullable public TaskData getTaskData() { - throw new UnsupportedOperationException(); + return null; } @Nullable @@ -169,11 +171,11 @@ public class TaskInitializationData implements ITaskMapping { } /** - * Does not map to a common attribute and hence throws {@link UnsupportedOperationException}. + * Does not map to a common attribute and hence Returns <code>null</code>. */ @Nullable public String getTaskStatus() { - throw new UnsupportedOperationException(); + return null; } @Nullable @@ -246,4 +248,4 @@ public class TaskInitializationData implements ITaskMapping { attributesById.setAttribute(TaskAttribute.VERSION, version); } -} +}
\ No newline at end of file |