Merge branch 'messagescripttest' of ssh://kielweek.web4sap.com:22/home/trac/git into messagescripttest

This commit is contained in:
Benjamin Ebling committed 2011-11-16 16:04:45 +01:00
commit 7ef01a736a
1 file changed
+1 -3
@@ -127,10 +127,8 @@ public class MessageFileServiceImpl implements MessageFileService {
String boatID = fixSections[fixDetailIndex++]; String boatID = fixSections[fixDetailIndex++];
int trackerTypeInt = Integer.valueOf(fixSections[fixDetailIndex++]); int trackerTypeInt = Integer.valueOf(fixSections[fixDetailIndex++]);
Long ageOfDataInMilliseconds = 1000l * Long.valueOf(fixSections[fixDetailIndex++]); Long ageOfDataInMilliseconds = 1000l * Long.valueOf(fixSections[fixDetailIndex++]);
//double longitude = Double.valueOf(fixSections[fixDetailIndex++]);
double longitude = Double.parseDouble(fixSections[fixDetailIndex++]);
//double latitude = Double.valueOf(fixSections[fixDetailIndex++]);
double latitude = Double.parseDouble(fixSections[fixDetailIndex++]); double latitude = Double.parseDouble(fixSections[fixDetailIndex++]);
double longitude = Double.parseDouble(fixSections[fixDetailIndex++]);
Double speedOverGroundInKnots = Double.valueOf(fixSections[fixDetailIndex++]); Double speedOverGroundInKnots = Double.valueOf(fixSections[fixDetailIndex++]);
Speed averageSpeedOverGround = fixSections[fixDetailIndex].trim().length() == 0 ? null Speed averageSpeedOverGround = fixSections[fixDetailIndex].trim().length() == 0 ? null
: new KnotSpeedImpl(Double.valueOf(fixSections[fixDetailIndex])); : new KnotSpeedImpl(Double.valueOf(fixSections[fixDetailIndex]));