Remove some lint warnings

This commit is contained in:
Bennet Brunsen
2016-01-12 15:44:20 +01:00
parent 519b14d17d
commit 80efda3022
3 changed files with 12 additions and 14 deletions
@@ -190,14 +190,12 @@ public class DatabaseHelper {
/**
* When checking in, store info on the event, the competitor and the leaderboard in the database.
*
* @param context
* @param event
* @param competitor
* @param leaderboard
* @param context android context
* @param event event to be stored
* @param competitor competitor to be stored
* @param leaderboard leaderboard to be stored
* @return success or failure
* @throws GeneralDatabaseHelperException
* @throws OperationApplicationException
* @throws RemoteException
*/
public void storeCheckinRow(Context context, EventInfo event, CompetitorInfo competitor,
LeaderboardInfo leaderboard, CheckinUrlInfo checkinURL) throws GeneralDatabaseHelperException {
@@ -213,7 +211,7 @@ public class DatabaseHelper {
// now insert event
ArrayList<ContentProviderOperation> opList = new ArrayList<ContentProviderOperation>();
ArrayList<ContentProviderOperation> opList = new ArrayList<>();
ContentValues cev = new ContentValues();
cev.put(Event.EVENT_ID, event.id);
@@ -74,8 +74,7 @@ public class HomeFragment extends AbstractHomeFragment implements LoaderCallback
private void checkinWithApiAndStartRegattaActivity(CheckinData checkinData) {
try {
if (!DatabaseHelper.getInstance().markLeaderboardCombnationAvailable(getActivity(),
checkinData.checkinDigest)) {
if (!DatabaseHelper.getInstance().markLeaderboardCombinationAvailable(getActivity(), checkinData.checkinDigest)) {
DatabaseHelper.getInstance().deleteRegattaFromDatabase(getActivity(), checkinData.checkinDigest);
}
DatabaseHelper.getInstance().storeCheckinRow(getActivity(), checkinData.marks,
@@ -152,12 +152,13 @@ public class DatabaseHelper {
/**
* When checking in, store info on the event, the competitor and the leaderboard in the database.
*
* @param context
* @param leaderboard
* @param context android context
* @param markList the list of marks to be stored
* @param leaderboard leaderboard to be stored
* @param checkinURL the checkin url to be stored
* @param pings the list of mark pings to be stored
* @return success or failure
* @throws GeneralDatabaseHelperException
* @throws OperationApplicationException
* @throws RemoteException
*/
public void storeCheckinRow(Context context, List<MarkInfo> markList, LeaderboardInfo leaderboard,
CheckinUrlInfo checkinURL, List<MarkPingInfo> pings) throws GeneralDatabaseHelperException {
@@ -239,7 +240,7 @@ public class DatabaseHelper {
}
public boolean markLeaderboardCombnationAvailable(Context context, String checkinDigest) {
public boolean markLeaderboardCombinationAvailable(Context context, String checkinDigest) {
Cursor lc = context.getContentResolver().query(Leaderboard.CONTENT_URI, null,
Leaderboard.LEADERBOARD_CHECKIN_DIGEST + " = ?", new String[] { checkinDigest }, null);