Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-25 04:57:29 +0000
committermkersten2007-06-25 04:57:29 +0000
commitc0327370082f76161881bdb9ba6a6ff7559b3ab0 (patch)
treebb4da932dedca29c57a1bf372071ed2ef8a86706 /org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/history/AttachmentFlag.java
parent09f537e346aa5325d85c4afbc35e4ffe636af7a6 (diff)
downloadorg.eclipse.mylyn.tasks-c0327370082f76161881bdb9ba6a6ff7559b3ab0.tar.gz
org.eclipse.mylyn.tasks-c0327370082f76161881bdb9ba6a6ff7559b3ab0.tar.xz
org.eclipse.mylyn.tasks-c0327370082f76161881bdb9ba6a6ff7559b3ab0.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.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/history/AttachmentFlag.java')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/history/AttachmentFlag.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/history/AttachmentFlag.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/history/AttachmentFlag.java
index b9d1cc98d..e9e53d9fa 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/history/AttachmentFlag.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/history/AttachmentFlag.java
@@ -13,18 +13,19 @@ package org.eclipse.mylyn.internal.bugzilla.core.history;
import java.io.Serializable;
/**
- * @author John Anvik
+ * @author John Anvik
*/
public class AttachmentFlag implements Serializable {
-
+
/**
*
*/
private static final long serialVersionUID = 1L;
-
+
private final AttachmentFlagStatus status;
+
private final AttachmentFlagState state;
-
+
public AttachmentFlag(AttachmentFlagStatus status, AttachmentFlagState state) {
this.status = status;
this.state = state;
@@ -40,6 +41,7 @@ public class AttachmentFlag implements Serializable {
@Override
public String toString() {
- return this.status.name() + "[" + (this.state.equals(AttachmentFlagState.UNKNOWN) ? "" : this.state.name()) + "]";
+ return this.status.name() + "[" + (this.state.equals(AttachmentFlagState.UNKNOWN) ? "" : this.state.name())
+ + "]";
}
} \ No newline at end of file

Back to the top