nextPositionReport = positionReportsArray[i + 1];
}
final long maxTimespan = 10000L;
final long timespan = min(nextPositionReport != null ? nextPositionReport.getTimestamp()
- positionReport.getTimestamp() - 1 : maxTimespan, maxTimespan);
<BUG>createKmlShipShapePlacemark(targetShipShapeFolder, target.getMmsi(), target.getName(),
</BUG>
positionReport.getTimestamp(), positionReport.getTimestamp() + timespan,
positionReport.getLatitude(), positionReport.getLongitude(), positionReport.getCog(),
positionReport.getSog(), positionReport.getHeading(), target.getToBow(),

nextPositionReport = positionReportsArray[i + 1];
}
final long maxTimespan = 10000L;
final long timespan = min(nextPositionReport != null ? nextPositionReport.getTimestamp()
- positionReport.getTimestamp() - 1 : maxTimespan, maxTimespan);
createKmlShipShapePlacemark(targetShipShapeFolder, String.valueOf(target.getMmsi()), target.getName(),
positionReport.getTimestamp(), positionReport.getTimestamp() + timespan,
positionReport.getLatitude(), positionReport.getLongitude(), positionReport.getCog(),
positionReport.getSog(), positionReport.getHeading(), target.getToBow(),
