770e0d4fcff14d182ab0fd98d76e777a8789b258
mobile/com.sap.sailing.android.buoy.positioning.app/src/com/sap/sailing/android/buoy/positioning/app/util/DatabaseHelper.java
| ... | ... | @@ -20,6 +20,7 @@ import com.sap.sailing.android.shared.logging.ExLog; |
| 20 | 20 | import com.sap.sailing.domain.common.tracking.impl.GPSFixImpl; |
| 21 | 21 | import com.sap.sse.shared.util.impl.UUIDHelper; |
| 22 | 22 | |
| 23 | +import android.annotation.SuppressLint; |
|
| 23 | 24 | import android.content.ContentProviderOperation; |
| 24 | 25 | import android.content.ContentResolver; |
| 25 | 26 | import android.content.ContentValues; |
| ... | ... | @@ -82,10 +83,10 @@ public class DatabaseHelper { |
| 82 | 83 | if (mc != null) { |
| 83 | 84 | mc.moveToFirst(); |
| 84 | 85 | while (!mc.isAfterLast()) { |
| 85 | - final String markName = mc.getString((mc.getColumnIndex(Mark.MARK_NAME))); |
|
| 86 | + @SuppressLint("Range") final String markName = mc.getString((mc.getColumnIndex(Mark.MARK_NAME))); |
|
| 86 | 87 | final String markIdAsString = mc.getString(mc.getColumnIndexOrThrow(Mark.MARK_ID)); |
| 87 | 88 | final Serializable markId = UUIDHelper.tryUuidConversion(markIdAsString); |
| 88 | - MarkInfo markInfo = new MarkInfo(markId, markName, |
|
| 89 | + @SuppressLint("Range") MarkInfo markInfo = new MarkInfo(markId, markName, |
|
| 89 | 90 | mc.getString((mc.getColumnIndex(Mark.MARK_CLASS_NAME))), checkinDigest); |
| 90 | 91 | marks.add(markInfo); |
| 91 | 92 | mc.moveToNext(); |
| ... | ... | @@ -105,7 +106,7 @@ public class DatabaseHelper { |
| 105 | 106 | long timeStamp = mpc.getLong(mpc.getColumnIndexOrThrow(MarkPing.MARK_PING_TIMESTAMP)); |
| 106 | 107 | double longitude = mpc.getDouble(mpc.getColumnIndexOrThrow(MarkPing.MARK_PING_LONGITUDE)); |
| 107 | 108 | double latitude = mpc.getDouble(mpc.getColumnIndexOrThrow(MarkPing.MARK_PING_LATITUDE)); |
| 108 | - MarkPingInfo markPingInfo = new MarkPingInfo(markID, GPSFixImpl.create(longitude, latitude, timeStamp), |
|
| 109 | + @SuppressLint("Range") MarkPingInfo markPingInfo = new MarkPingInfo(markID, GPSFixImpl.create(longitude, latitude, timeStamp), |
|
| 109 | 110 | mpc.getDouble((mpc.getColumnIndex(MarkPing.MARK_PING_ACCURACY)))); |
| 110 | 111 | marks.add(markPingInfo); |
| 111 | 112 | mpc.moveToNext(); |