Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-25 04:34:52 +0000
committermkersten2007-06-25 04:34:52 +0000
commitf7a404b8ede6c91110f018877e8b7e2968581fc5 (patch)
tree232b23c16582edfa8f6adb8d21c6c3f7a7c5443b /org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model
parentb64809fc17bc58672536d8cb3c5bb1ea7fe41ad0 (diff)
downloadorg.eclipse.mylyn.tasks-f7a404b8ede6c91110f018877e8b7e2968581fc5.tar.gz
org.eclipse.mylyn.tasks-f7a404b8ede6c91110f018877e8b7e2968581fc5.tar.xz
org.eclipse.mylyn.tasks-f7a404b8ede6c91110f018877e8b7e2968581fc5.zip
RESOLVED - bug 194138: cleanup unnecesary casts and null checks
https://bugs.eclipse.org/bugs/show_bug.cgi?id=194138
Diffstat (limited to 'org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracTicket.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracTicket.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracTicket.java
index 6f72a3f80..77b229162 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracTicket.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracTicket.java
@@ -163,7 +163,7 @@ public class TracTicket {
return false;
}
putBuiltinValue(key, value);
- } else if (value instanceof String) {
+ } else if (value != null) {
putCustomValue(keyName, value);
} else {
throw new InvalidTicketException("Expected string value for custom key '" + keyName + "', got '" + value

Back to the top