Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-05-07 18:31:01 +0000
committerspingel2008-05-07 18:31:01 +0000
commitff3480c81e63968b71fd230090da0321fd995f0c (patch)
tree9ba1a319ea4283c3b6f80780a58b79e70d3804c1 /org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaImages.java
parentde870d7f0f9bf78df6f9aa3fbb072657d4abae44 (diff)
downloadorg.eclipse.mylyn.tasks-ff3480c81e63968b71fd230090da0321fd995f0c.tar.gz
org.eclipse.mylyn.tasks-ff3480c81e63968b71fd230090da0321fd995f0c.tar.xz
org.eclipse.mylyn.tasks-ff3480c81e63968b71fd230090da0321fd995f0c.zip
NEW - bug 221043: enable code cleanup for bugzilla plug-ins
https://bugs.eclipse.org/bugs/show_bug.cgi?id=221043
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaImages.java')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaImages.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaImages.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaImages.java
index 9ba54c306..64bbc3dac 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaImages.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaImages.java
@@ -51,7 +51,7 @@ public class BugzillaImages {
public static final ImageDescriptor OVERLAY_ENHANCEMENT = create(T_VIEW, "overlay-enhancement.gif");
public static final ImageDescriptor OVERLAY_MINOR = create(T_VIEW, "overlay-minor.gif");
-
+
private static ImageDescriptor create(String prefix, String name) {
try {
return ImageDescriptor.createFromURL(makeIconFileURL(prefix, name));
@@ -61,12 +61,14 @@ public class BugzillaImages {
}
private static URL makeIconFileURL(String prefix, String name) throws MalformedURLException {
- if (baseURL == null)
+ if (baseURL == null) {
throw new MalformedURLException();
+ }
StringBuffer buffer = new StringBuffer(prefix);
- if (prefix != "")
+ if (prefix != "") {
buffer.append('/');
+ }
buffer.append(name);
return new URL(baseURL, buffer.toString());
}

Back to the top