ust: Simplify conditional in equals()
authorSonia Farrah <sonia.farrah@ericsson.com>
Tue, 3 May 2016 21:54:12 +0000 (17:54 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Tue, 7 Jun 2016 15:06:22 +0000 (11:06 -0400)
Change-Id: I66add0ec275904fdc25df899d440041b7fa78882
Signed-off-by: Sonia Farrah <sonia.farrah@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/71962
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
lttng/org.eclipse.tracecompass.lttng2.ust.core/src/org/eclipse/tracecompass/internal/lttng2/ust/core/analysis/debuginfo/UstDebugInfoBinaryFile.java

index 617c577d8d2702799a158f66a62751bd1862fa1b..dd603c7e2c7a5e8e0e3b641b78af2a3e24351956 100644 (file)
@@ -64,7 +64,7 @@ public class UstDebugInfoBinaryFile implements Comparable<UstDebugInfoBinaryFile
 
     @Override
     public boolean equals(@Nullable Object obj) {
-        if (obj == null || !(obj instanceof UstDebugInfoBinaryFile)) {
+        if (!(obj instanceof UstDebugInfoBinaryFile)) {
             return false;
         }
         UstDebugInfoBinaryFile other = (UstDebugInfoBinaryFile) obj;
This page took 0.025855 seconds and 5 git commands to generate.