import/export: replace | with || allowing short circuiting if in extension check
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Fri, 3 Apr 2015 13:45:14 +0000 (09:45 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Fri, 3 Apr 2015 17:15:23 +0000 (13:15 -0400)
Change-Id: I1a446c92b289843dd6f1e88b0e3eb51080fd5085
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/45229
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/internal/tmf/ui/project/wizards/tracepkg/importexport/ExportTracePackageWizardPage.java

index 3d1de3b29129214e17a917647545232f29f0627d..e39508b42bd7be5052ff3a9eb9250af5216921c7 100644 (file)
@@ -393,7 +393,7 @@ public class ExportTracePackageWizardPage extends AbstractTracePackageWizardPage
             ret = ret.substring(0, ret.lastIndexOf('.'));
         }
 
-        if (ret.endsWith(ZIP_EXTENSION) | ret.endsWith(TAR_EXTENSION) | ret.endsWith(TGZ_EXTENSION)) {
+        if (ret.endsWith(ZIP_EXTENSION) || ret.endsWith(TAR_EXTENSION) || ret.endsWith(TGZ_EXTENSION)) {
             ret = ret.substring(0, ret.lastIndexOf('.'));
         }
 
This page took 0.025877 seconds and 5 git commands to generate.