tmf: Fix most Number unboxing problems
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / parsers / custom / CustomXmlTrace.java
index ff6326b93744c779add638949209d8c63a3390f2..5678e02356fa7ea14b0319d8c1dddd302b897b65 100644 (file)
@@ -199,7 +199,7 @@ public class CustomXmlTrace extends TmfTrace implements ITmfEventParser, ITmfPer
         }
         try {
             if (location.getLocationInfo() instanceof Long) {
-                return (double) ((Long) location.getLocationInfo()) / fFile.length();
+                return ((Long) location.getLocationInfo()).doubleValue() / fFile.length();
             }
         } catch (final IOException e) {
             Activator.logError("Error getting location ration. File: " + getPath(), e); //$NON-NLS-1$
This page took 0.026351 seconds and 5 git commands to generate.