Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2019-12-16 21:18:26 +0000
committerAlexander Kurtakov2019-12-16 21:18:26 +0000
commitd3c0e1c1880fb0c689965a6dad85f9fed51467c8 (patch)
tree1b056ae393acf00ee86fea20514a5cd49d3b7831 /org.eclipse.m2e.editor
parentacf8703b40fd6aebecd9a00ef2c57536cdb55ac5 (diff)
downloadm2e-core-d3c0e1c1880fb0c689965a6dad85f9fed51467c8.tar.gz
m2e-core-d3c0e1c1880fb0c689965a6dad85f9fed51467c8.tar.xz
m2e-core-d3c0e1c1880fb0c689965a6dad85f9fed51467c8.zip
Silence some unnecessary else clause.
Change-Id: I2089cb4c5613c94335fe502bfac14433817e48d2 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'org.eclipse.m2e.editor')
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/FormUtils.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/FormUtils.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/FormUtils.java
index 6462f38a..543bc339 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/FormUtils.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/FormUtils.java
@@ -101,10 +101,9 @@ public abstract class FormUtils {
}
setMessageAndTTip(form, NLS.bind(Messages.FormUtils_click_for_details, truncMsg), message, severity);
return true;
- } else {
- setMessageAndTTip(form, message, message, severity);
- return false;
}
+ setMessageAndTTip(form, message, message, severity);
+ return false;
}
public static void setMessageAndTTip(final ScrolledForm form, final String message, final String ttip,
@@ -168,8 +167,8 @@ public abstract class FormUtils {
url = url.trim();
try {
IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench().getBrowserSupport();
- IWebBrowser browser = browserSupport.createBrowser(IWorkbenchBrowserSupport.NAVIGATION_BAR
- | IWorkbenchBrowserSupport.LOCATION_BAR, url, url, url);
+ IWebBrowser browser = browserSupport.createBrowser(
+ IWorkbenchBrowserSupport.NAVIGATION_BAR | IWorkbenchBrowserSupport.LOCATION_BAR, url, url, url);
browser.openURL(new URL(url));
} catch(PartInitException ex) {
log.error(ex.getMessage(), ex);
@@ -327,8 +326,8 @@ public abstract class FormUtils {
if(props != null) {
inter.addValueSource(new PropertiesBasedValueSource(props));
}
- inter.addValueSource(new PrefixedObjectValueSource(
- Arrays.asList(new String[] {"pom.", "project."}), project.getModel(), false)); //$NON-NLS-1$ //$NON-NLS-2$
+ inter.addValueSource(
+ new PrefixedObjectValueSource(Arrays.asList(new String[] {"pom.", "project."}), project.getModel(), false)); //$NON-NLS-1$ //$NON-NLS-2$
try {
text = inter.interpolate(text);
} catch(InterpolationException e) {

Back to the top